Differential Equation


Introduction

The differential equation is a tool for solving problems in the field of science, engineering, computer applications, social sciences, etc. This is because of the rates of change of the quantities involved in each phenomenon.

Here is an example: We know that, a cup of hot coffee cools down over time. This cooling process can be mathematically described using a differential equation. The rate at which the coffee's temperature changes depends on the temperature difference between the coffee and its surroundings. By solving this equation, we can predict how quickly the coffee will cool down and decide when it's the best time to enjoy it.




Differential Equation

A differential equation is an equation involving derivatives
The two examples of differential equations are given below.

  1. dydx=2y
  2. d2ydx2+6xdydx+9x2y=sin(2x)
NOTE
  1. an equation that involves differentials with the dependent and independent variable, is called the differential equation.
  2. an equation involving derivative with respect to single independent variable is called ordinary differential equation (ODE)
  3. an equation that involves two or more variables then it is said to be partial differential equation (PDE)

Some additional examples of differential equations are given below.

  1. dydx=x+tanx
  2. d3ydx3=xd2ydx2+(dydx)2
  3. (x+y+3)dx+(x+y2)dy=0
  4. xzx+yzy=nz

Here (i), (ii) and (iii) have y as dependent variable and x as independent variable, so these are ordinary differential equation (ODE).
and,
(iv) has z as dependent variable and x and y as independent variables, so it is partial differential equation (PDE).




Order: Differential Equation

The order of a differential equation is the order of the highest derivative that appears in the equation.
Some examples are given below.

  1. dydx=2y
    This is first order differential equation
  2. d2ydx2+6xdydx+9x2y=sin(2x)
    This is second order differential equation
  3. d3ydx3+(d2ydx2)4+dydx=xsinx
    This is third order differential equation
  4. d2ydx2=1+(dydx)2
    This is second order differential equation
  5. (dydx)2=0
    This is first order differential equation
  6. y4y=x23x+4
    The highest derivative in the equation is y′, so the order is 1
  7. x2y3xy+xy3y=sinx
    The highest derivative in the equation is y, so the order is 3
  8. 4xy(4)6x2y+12x4y=x33x2+4x12
    The highest derivative in the equation is y(4), so the order is 4



Degree: Differential Equation

The Degree of a differential equation (if it is a polynomial equation) is the highest power (positive integer only) of the highest order derivative in it (if applicable, after it has been made free from radicals.)
Some examples are given below.

  1. (d2ydx2)2+(dydx)3+3y=logx.
    This is a second degree differential equation (It is a second order differential equation also).
  2. d3ydx3+(d2ydx2)4+xy=sinx.
    This is a first degree differential equation. (Also, it is a third order differential equation).
  3. d2ydx2=1+(dydx)2(d2ydx2)2=1+(dydx)2 .
    This is a second degree differential equation.



Solution: Differential Equation

A relation free from derivatives and satisft the given DE (differential equation) is called solution of DE.

There are threeypes of solutions

  1. General Solution

    Let y=2x, then general solutions is y=x2+c.
    A graph of some of these solutions is given in figure below

  2. Particular Solution
    Let y=2x, and if we take y=x23 as a solution, it is called a particular solution . This kind of solution is obtained by giving particular values to the arbitrary constant(s) in the general solution.
    It is a solution free from arbitrary constant(s)

  3. Complete solution

    The solution which contains as many arbitrary constants as the order of the differential equation is called complete solution




Solved Examples

  1. Example 1
    Let y=3x2
    1. Start with some function y=f(x) and take its derivative.
    2. The answer must be equal to 3x2
    3. What function has a derivative that is equal to 3x2?
    4. One such function is y=x3
    So, y=x3 is considered a solution to a differential equation y=3x2
  2. Example 2
    y=2x
    a solution is y=x2
  3. Example 3
    y+3y=6x+11
    a solution is y=e3x+2x+3
  4. Example 4
    y3y+2y=24e2x
    a solution is y=3ex4e2x+2e2x
  5. Example 5
    y=2y
    a solution is y=e2x
  6. Example 6
    y=e3x
    a solution is y=e3x313
  7. Example 7

    Show that y=Acosx+sinx is a solution of cosxdydx+ysinx=1
    Solution
    Let,
    y=Acosx+sinx
    Differentiating w. r. to x then
    dydx=Asinx+cosx
    or cosxdydx=Asinxcosx+cos2x
    or cosxdydx=sinx(Acosx)+cos2x
    or cosxdydx=sinx(Acosx+sinxsinx)+cos2x
    or cosxdydx=sinx(ysinx)+cos2x
    or cosxdydx=ysinx+(sin2x+cos2x)
    or cosxdydx=ysinx+1
    or cosxdydx+ysinx=1
    This means
    y=Acosx+sinx
    is a solution of
    cosxdydx+ysinx=1




Direct Integrable : Differential Equation

The differential equation of the form
dydx=f(x)
Here the right-hand side is an expression in the independent variable x and contains no terms involving the dependent variable y.
We call differential equations of this type directly integrable.

  1. dydx=4
  2. dydx=x2
  3. dydx=sinx
  4. dydx=1x
  5. dydx=x35
  6. dydx=2x+3
  7. dydx=e2x
are dirrect integrable differential equations
But
  1. dydx=2xy
  2. dydx=xy
are NOT dirrect integrable.


First Order First Degree: Differential Equation

The differential equation of the form
dydx=f(x,y) and f(x,y)dx+g(x,y)dy=0
is called a first order and first degree differential equation.
Some examples of first order first degree differential equation are given below.

  1. dydx=x2+x+1y2+y+1
  2. 1x2dy+1y2dx=0dydx=1y21x2
  3. dydx=x3+1y3+1
  4. (1+cosx)dy=(1cosx)dxdydx=1cosx1+cosx
  5. x2dyy2dx=0dydx=y2x2



Method of Solving First Order First Degree ODE

  1. Direct Integrable
  2. Seperable Variable
  3. Reducible to seperable variable
  4. Homogeneous equation
  5. Reducible to homogeneous equation
  6. Linerar differential equation
  7. Reducible to linear differential equation
  8. Exact differential equation
  9. Reducible to exact differential equation



Separable of Variables

If differential equations is of the form
dydx=f(x)g(y).
Then, the differential equations of this form is called separable.

Some examples are
  1. dydx=xy2
  2. dydx=sinxcosy
  3. dydx=xy2
  4. dydx=sinycosx
Some Non examples are
  1. dydx=x+y
  2. dydx=xy2+1
  3. dydx=log(xy)
because the right-hand sides cannot be written in terms of f(x)g( y )
If the differential equation is in the form of
dydx=f(x)g(y).
or
f(x)dx=f(y)dy (i)
Then, we can obtain its solution by integrating both sides.
Thus, the solution of differential equation (i) is
f(x)dx=f(y)dy+c (ii)
NOTE
  1. Remember a formula:
    f(x)f(x)dx=logf(x)+c
    For example,
    (2ax+bax2+bx+c)dx=log(ax2+bx+c)
  2. Remember a formula:
    f(x)f(x)ndx=f(x)1n1n+c for n1
    For example,
    (2ax+b(ax2+bx+c)n)dx=(ax2+bx+c)1n1n for n1



Solved Examples

  1. dydx=x2y
    Solution
    This is of the form
    dydx=f(x)g(y) with f(x)=x2 and g(y)=1y
    or ydy=x2dx
    Now integrate both sides , we get
    y22=x33+c.
    or y=±23x3+c
  2. dydx=x2+x+1y2+y+1
    Solution
    dydx=x2+x+1y2+y+1
    or (y2+y+1)dy=(x2+x+1)dx
    Taking integration on both sides, we get
    (y2+y+1)dy=(x2+x+1)dx
    or y33+y22+y=x33+x22+x+c
    or 2(x3y3)+3(x2y2)+6(xy)=c
  3. dydx=x3+1y3+1
    Solution
    dydx=x3+1y3+1
    or (y3+1)dy=(x3+1)dx
    Taking integration on both sides
    (y3+1)dy=(x3+1)dx
    ory44+y=x44+x+c
    or y4+4y=x4+4x+4c
    or y4+4y=x4+4x+c
    This is the solution of given equation.
  4. y(1+x)dx+x(1+y)dy=0.
    Solution
    y(1+x)dx+x(1+y)dy=0
    or (1+xx)dx+(1+yy)dy=0
    or (1x+1)dx+(1y+1)dy=0
    Taking integration on both sides,
    (1x+1)dx+(1y+1)dy=c
    or ln(x)+x+ln(y)+y=c
  5. dxdy=exy.
    Solution
    dxdy=exy
    or dxdy=exey
    or eydy=exdx
    Taking integration on both sides
    eydy=exdx
    or ey=ex+C
  6. (1x2)dy+(1y2)dx=0
    Solution
    (1x2)dy+(1y2)dx=0
    or (1x2)dy=(1y2)dx
    or dy(1y2)=dx(1x2)
    Taking integration on both sides
    dy(1y2)=dx(1x2)
    or sin1y=sin1x+C
    or sin1y+sin1x=C
  7. Find the particular solution of (x+xy2)dx+(y+x2y)dy=0;y(0)=2.
    Solution
    (x+xy2)dx+(y+x2y)dy=0
    or x(1+y2)dx+y(1+x2)dy=0
    or y(1+x2)dy=x(1+y2)dx
    or (y1+y2)dy=(x1+x2)dx
    Taking integration on both sides
    2(y1+y2)dy=2(x1+x2)dx+c
    or log(1+y2)=log(1+x2)+c
    or log(1+y2)+log(1+x2)=c
    or (1+y2)(1+x2)=c (i)
    or(1+y2)(1+x2)=c
    This is the general solution of the given differential equation.
    Given that y(0) = 2. So, the equation (i) gives
    (1+22)(1+0)=cc=5
    Therefore, (i) becomes,
    ((1+y2)(1+x2))=5
    This is the particular solution of the equation.



Exercise

Solve following differential equation

  1. dydx=ysinxy+1
  2. dydx=xy
  3. dydx=1+ex1+cosy



Homogeneous DE

A differential equation is said to be homogeneous differential equation if it can be put in the form of
dydx=f(yx)
For example

  1. A equation dydx=yx+sin(yx) which can be writen in the form of dydx=f(yx) is homogeneous.
  2. A equation dydx=xyx2y2 which can be writen in the form of dydx=yx1(yx)2=f(yx) is homogeneous.

Solution Process

To find the solution of such homogeneous differential equation, we put
yx=v
i.e. y=vx (i)
Differentiating both sides with respect to x,
dydx=v+xdvdx (ii)
Then
dydx=f(yx)
or v+xdvdx=f(v)
or xdvdx=f(v)v
or dvf(v)v=dxx
Taking integration on both sides
dvf(v)v=dxx
or dvf(v)v=log(x)+C
After integrating L.H.S, we substitute
yx for v
which gives the required general solution.




Solved Examples

  1. dydx=yx+sin(yx)
    Solution:
    dydx=yx+sin(yx)

    ordydx=f(yx) (i)
    Here, (i) is homogeneous differential equation.
    So, put
    y=vx .
    Then
    dydx=v+xdvdx.

    or yx+sin(yx)=v+xdvdx

    or v+sin(v)=v+xdvdx

    or xdvdx=sin(v)

    or dxx=csc(v)dv

    Taking integration on both sides
    dxx=cscvdv

    or log(x)+log(c)=log(cscvcotv)

    or cx=1sinvcosvsinv

    or cx=1cosvsinv

    or cx=2sin2(v2)2sin(v2)cos(v2)

    or cx=tan(v2)

    or cx=tan(y2x)

    This is the general solution of the given equation.
  2. (x2+y2)dydx=xy.
    Solution:
    (x2+y2)dydx=xy

    or dydx=xyx2+y2

    or dydx=yx1+(yx)2

    or dydx=f(yx) (i)

    Here, (i) is homogeneous differential equation. So, put
    y=vx.
    Then

    dydx=v+xdvdx .

    or xyx2+y2=v+xdvdx .

    or x(vx)x2+(v2x2)=v+xdvdx

    or v1+v2=v+xdvdx

    or v1+v2v+xdvdx

    or xdvdx=vvv31+v2

    or xdvdx=v31+v2

    or (1+v2v3)dv=dxx
    Taking integration on both sides

    (1+v2v3)dv=dxx

    or 1v3dv+1vdv=dxx

    or v3+13+1+log(v)+log(c)=log(x)

    or log(v)log(x)log(c)=v3+13+1

    or log(cvx)=12v2
    or log(cy)=12(x2y2)

    or x22y2log(cy)=0
    This is the general solution of the equation.



Equation Reducible to Homogeneous Form

A differential equation of the form
dydx=ax+by+cAx+By+C (i)
with
aAbB
then (i) can be reduced to a homogenous form by changing the variables x, y to X, Y related by the equations
x=X+h,y=Y+k
where h, k are constants to be chosen so as to make the given equation is homogenous.
Therefore,
dxdX=1dx=dX and dydY=1dy=dY
Then (i) becomes,
dYdX=dydx=aX+bY+(ah+bk+c)AX+BY+(Ah+Bk+C) (ii)
Choose h and k so that
ah+bk+c=0
Ah+Bk+C=0
Then (ii) becomes,
dYdX=aX+bYAX+BY
which is a homogenous differential equation; it can be solved by means of substitution,
YX=v i.e. Y=vX
Exceptional case:
If aA=bB=P(let) then such type of problem is solved by using method of variables separable, which we discussed earlier.




Linear DE

A first-order differential equation involving the independent variable x and the dependent variable y is linear if it can be expressed in the form
dydx+g(x)y=h(x) (1)
where g(x) and h(x) are given functions.

The term linear in (1) refers to the dependent variable y. So, any functions g(x) and h(x) are allowed , but the only occurrences of y is allowed .
This means that terms involving y2,y3,siny, and so on, are not allowed.

For example,
dydxx2y=x3 is linear, with g(x)=x2 and h(x)=x3
whereas the differential equation
dydx=xy2 is not linear, due to the presence of the term y2.

Note that if g(x) = 0, then equation (1) reduces to
dydx=h(x)
which is the directly integrable type. So, directly integrable differential equations are also linear differential equations.




Solution of dydx+ky=0

Let a first-order differential equation is
dydxky=0 (1)
Then
y=ekx
is a solution of the differential equation (1)
because with y=ekx the left-hand side of the differential equation equals
dydx=ddxekx=kekx=ky
which is the same as
dydx+ky=0



Constant-coefficient linear differential equations: case 1

In a linear differential equation
dydx+g(x)y=h(x)
if
h(x) = 0 (so the equation is homogeneous) and g(x) = A, where A is a constant, then
we have
dydx+g(x)y=h(x)
or dydx+Ay=0
It is equivalent to the form
dydx+Ay=0
It has solution
y=eAx




Constant-coefficient linear differential equations: case 2

In a linear differential equation
dydx+g(x)y=h(x)
if h(x)0 (that is, the differential equation is inhomogeneous) and g(x) = A, where A is a constant. This gives the form
dydx+g(x)y=h(x)
or dydx+Ay=h(x)
which is called a constant-coefficient first-order linear differential equation.

The solution of this equation can be done as follows..
First multiply both sides by eAx
eAxdydx+eAxAy=eAxh(x)
Now, by the product rule for differentiation
deAxydx=eAxh(x)
This equation can be solved by integrating both sides with respect to x, which gives
eAxy=eAxh(x)dx
Hence the general solution of differential equation is
y=eAx(eAxh(x)dx)
So, if we can find the integral on the right-hand side, then we can solve
differential equation

Solved Examples

  1. dydx+2y=x
    The differential equation has the form
    dydx+Ay=h(x)
    with A = 2 and h(x) = x.
    So the solution is given by equation
    y=eAx(eAxh(x)dx)
    or y=e2x(e2xxdx)
    Integrating by parts gives
    y=e2x(12xe2x12e2xdx)
    or y=12e2x(xe2xe2xdx)
    or y=12e2x(xe2x12e2x+c)
    or y=12(x12+ce2x)
    this is a general solution
  2. dydx+y=e2x



The integrating factor method

The key to solving the constant-coefficient linear differential equation was to multiply both sides by
eAx.
This allowed us to integrate the left-hand side of the equation.

For this reason, eAx is called an integrating factor for the differential equation.
We now generalize this trick to solve the general linear first-order differential equation




Linear differential equation: The integrating factor method

The general solution of a differential equation of the form
dydx+g(x)y=h(x)
is
y=1p(x)(p(x)h(x)dx)
where
p(x)=eg(x)dx

Proof

Let p(x)=eu, where u=g(x)dx and then
dpdx=deudududx=eug(x)=p(x)g(x)
Now, given DE is
dydx+g(x)y=h(x)
Multiplying both sides of equation by p(x) , we get
p(x)dydx+p(x)g(x)y=p(x)h(x)
or ddxP(x)y=p(x)h(x)
It follows that
p(x)y=p(x)h(x)dx
Dividing both sides by p(x) gives the general solution as
y=1p(x)p(x)h(x)dx




Note that, if
g(x) = A,
then the integrating factor given by equation is
p(x)=eg(x)dx
or p(x)=eAdx
or p(x)=eAx
This is exactly the integrating factor that was used in Constant-coefficient
The general solution given by equation is therefore
y=eAx(eAxh(x)dx)
exactly the same as equation Constant-coefficient




Solved Examples

  1. dydxy=exsinx
    Solution
    The differential equation has the form
    dydx+g(x)y=h(x)
    with g(x) = -1 and h(x)=exsinx. so we use the integrating factor method
    First calculate an integrating factor, without including a constant of integration the integrating factor is
    p(x)=eg(x)dx
    or p(x)=e(1)dx
    or p(x)=ex
    Calculate the general solution, including the constant of integration inside the brackets The general solution is
    y=1p(x)(p(x)h(x)dx)
    or y=1ex(exexsinxdx)
    or y=exsinxdx
    or y=ex(cosx+c)
    where c is an arbitrary constant
  2. dydx=y1x
  3. dydx=y+x
  4. xdydx3y=x



Exact Differential Equation

Partial Derivative

Let f(x, y) be a function of two independent variables x and y. Then the partial derivative of f with respect to x is the differentiation of f with keeping y as constant and x as variable. Also, the partial derivative of f with respect to y is the differentiation of f with keeping x as constant and y as variable.
That is,
fx=limΔx0f(x+Δx,y)f(x,y)Δx and
fy=limΔy0f(x,y+Δy)f(x,y)Δy.

Total Derivative

Let f(x, y) be a function of two independent variables x and y.
Let
fx and fy exist.
Then the total derivative of f(x, y) with respect to x is
dfdx=fxdx+fydy.

Mixed Derivative Theorem for Partial Derivative

Let f(x, y) be function of two variables x and y and has continuous partial derivatives
i.e. 2fxy and 2yxy exist
Then
2fxy=2yxy

Example 1

Find the partial derivative of f(x,y)=x3+2x2y+3x+4y with respect to y.
Solution:
Given function is,
f(x,y)=x3+2x2y+3x+4y
Then the partial derivative of f w.r. to y is
fy=0+2x2+0+4=2x2+4 (being x as constant)

Example 2

Find the partial derivative of u(x,y)=2sinx+4xy2+exy with respect to x.
Solution:
Given function is
u(x,y)=2sinx+4xy2+exy
Then the partial derivative of u w.r. to x is,
ux=2cosx+4y2+yexy.

Exact Differential Equation

A differential equation of the form
Mdx+Ndy=0
where M and N are functions of x and y or constants, is called exact differential equation if there is a function f(x, y) such that
Mdx+Ndy=d(f(x,y))
That is
M=fx and N=fy
This implies
My=Nx
Note that
if the differential equation
Mdx+Ndy=0
is exact then we must have
My=Nx

Solution Process to an Exact Differential Equation

If Mdx+Ndy=0 is exact then the solution of the equation can be obtained by solving
Mdx+(term of N free from x)dy=C (Constant)

Example 1

Solve the differential equation:xdx+ydx=0
Solution:
Given equation is
xdx+ydx=0 (i)
Comparing (i) with Mdx+Ndy=0 then
M=y,N=x.
Then,
My=1 and Nx=1
This means (i) is exact. Therefore, the solution of (i) is,
yconstant0Mdx+(term of N free from x)dy=C
or ydx+0dy=C
or xy=C
This is the required solution of the exact differential equation (i).

Example 2

Solve the differential equation: x2dx+y2dy=0
Solution:
Given equation is
x2dx+y2dy=0 (i)
Comparing (i) with Mdx+Ndy=0 then,
M=x2,N=y2
Then,
My=0 and Nx=0
This means (i) is exact.
Therefore, the solution of (i) is,
yconstant0Mdx+(term of N free from x)dy=C
or x33+y2dy=C3
or x3+y3=C
This is the required solution of the exact differential equation (i).




Initial Value Problem

Let us consider a differential equation
dydx=x2
which has the general solution
y=13x3+c
where c is an arbitrary constant.

Different values for c give different particular solutions, and graphs of the particular solutions corresponding to c=13,23,1,43 are shown in Figure below.

1234−1−2−3−41234−1−2−3
1234−1−2−3−41234−1−2−3

Now, we might need a particular solution whose graph passes through the point (1, 1).
As shown in Figure below, the particular solution with this property is
y=13x3+23
So choosing a point through which the graph of the solution must pass is equivalent to picking a particular solution.

If a particular solution is specified in this way, by requiring that its graph passes through a given point, then this requirement is called an initial condition. In the example above, the particular solution
y=13x3+23
satisfies the initial condition y = 1 when x = 1.

Definition

A differential equation together with initial condition, is called initial value problems. The solution of the nth order differential equation includes n arbitrary constants which will be determined by given n-initial conditions. Thus, the solution of an initial value problem is the particular solution of the problem.

Example 1

Consider a differential equation
cosxdydx+ysinx=1,y(0)=3 (i)
Then y(0) is initial condition of the problem and the value of y is 3 when x is 0.
From above problem we observe the general solution of the problem is
y=Acosx+sinx (ii)
Using y(0)=3 to (ii) we get
3=Acos0+sin0A=3
Therefore (ii) becomes
y=3cosx+sinx
which is the particular solution of given differential equation satisfying initial condition y(0)=3.

Exercise

Solve the following differential equation

  1. dydx=x35.
    Find the particular solution of this differential equation that satisfies the initial condition y = −1 when x = 2.
  2. dydx=52x.
    Find the particular solution of this differential equation that satisfies the initial condition y = 7 when x = 1; that is, y(1) = 7
  3. dydx=x.
    Find the particular solution of this differential equation that satisfies the initial condition where y = 5 when x = 4
  4. dydx=cos(2x).
    Find the particular solution of this differential equation that satisfies the initial condition where y = -2 when x=14π



Second-Order Linear Differential Equations

Consider the second-order differential equation
xy''+2x2y′+5x3y=0
Notice that y and its derivatives appear in a relatively simple form. They are multiplied by functions of x, but are not raised to any powers themselves, nor are they multiplied together.

As we know, the First-order equations with similar characteristics are said to be linear. The same is true of second-order equations.

Please note that all the terms in this differential equation involve either y or one of its derivatives. There are no terms involving only functions of x. Equations like this, in which every term contains y or one of its derivatives, are called homogeneous.

Alos nothe that, Not all differential equations are homogeneous. Consider the differential equation
xy''+2x2y′+5x3y=x2
The x2 term on the right side of the equal sign does not contain y or any of its derivatives. Therefore, this differential equation is non-homogeneous.

Definition

A second-order differential equation is linear if it can be written in the form
a2(x)y''+a1(x)y′+a0(x)y=r(x)
where a2(x), a1(x), a0(x), and r(x) are real-valued functions and a2(x) is not identically zero.
If r(x)≡0—in other words, if r(x)=0 for every value of x—the equation is said to be a homogeneous linear equation.
If r(x)≠0 for some value of x, the equation is said to be a non-homogeneous linear equation.

Important NOTES

In linear differential equations, y and its derivatives can be raised only to the first power and they may not be multiplied by one another. Terms involving y2 or y make the equation nonlinear. Functions of y and its derivatives, such as siny or ey, are similarly prohibited in linear differential equations.

Note that equations may not always be given in standard form (the form shown in the definition). It can be helpful to rewrite them in that form to decide whether they are linear, or whether a linear equation is homogeneous.

Classify each of the following equations as linear or nonlinear. If the equation is linear, determine further whether it is homogeneous or nonhomogeneous.

  1. y+3x4y+x2y2=x3
  2. (sinx)y+(cosx)y+3y=0
  3. 4t2x+3txx+4x=0
  4. 5y+y=4x5
  5. (cosx)ysiny+(sinx)ycosx=0
  6. 8ty''−6t2y′+4ty−3t2=0
  7. sin(x2)y''−(cosx)y′+x2y=y′−3
  8. y''+5xy′−3y=cosy

No comments:

Post a Comment