ODE Section
ODE Section
Partial differential equation(PDE) involves two or more independent variables, and one or more de-
pendent variables.In other words it contains partial derivatives. For example,
Example 1.1
dy
= cos(x), (1)
dx
d2 y
+ 8y = e−2x , (2)
dx2
2
dy d3 y dy
− 4 = 2, (3)
dx dx3 dx
are ordinary differential equations.
∂u ∂u
+ =0 (4)
∂x ∂y
∂u ∂2u
= 2 (5)
∂t ∂ x
are partial differential equations.
PDE’s have important engineering applications, and are more complicated than ODE’s.
Definition 1.3 (Linear and Nonlinear ) • A linear differential equation is a differential equa-
tion that is defined by a linear polynomial in the unknown function (dependant variable) and its
derivatives, that is an equation of the form
Where, P0 (x), ..., Pn (x), and Q(x) are either zero, constant or depends only on x, not on y. They are
differentiable functions that do not need to be linear. y 0 , ...y (n) are the successive derivatives of the
unknown function y of the independent variable x.
• Nonlinear differential equations are any equations that cannot be written in the above form. In
particular, these include all equations that include y, y 0 , y 00 , etc., raised to any power such as y 2 , y 03 ,
nonlinear functions of y or any derivative to any order (such as sin(y) or ety ) or any product or
function of these.
1
Example 1.1 Determine whether linear or nonlinear
2
dy
a. dx + y = cos x
d5 y
b. dx5 + (cos2 x)y = tan3 x
c. y 00 + y 3 = cos(x)
Definition 1.4 The order of a differential equation is determine by the highest order derivative which
occurs in it after the equation has been rationalized, i.e., made free from radicals and fractions so far as
derivatives are concerned. (polynomial form) The degree of a differential equation is determined by the
exponent of the highest derivative in it.
∂2u
b. ∂x2 + u2 = sin x
c. y 000 − 3xy 3 = cos(x)
Here in this module we mainly discuss first and second order differential equations and their solutions.
Definition 1.5 (Standard Form) A differential equation is said to be in standard form if we can solve
dy
for dx , i.e,
dy
= f (x, y)
dx
We will often write a given equation in standard form so that we can identify the form of the function
f (x, y).
Definition 1.6 (Solution, ODE) A function y(x) = φ(x) is called a solution of y 0 = f (x, y), if it satis-
fies,
φ0 (x) = f (x, φ(x)).
To verify that a function y = f (x) is a solution of the ODE, we substitute the function into both sides of
the differential equation.
x3
y= +1
3
is also a solution of y 0 = x2 . We say the solution is not unique.
x3
y= + C.
3
where C is any arbitrary constant.
3
The solution y = x3 + C with the arbitrary constant is called the general solution of the differential equation.
A constant like C that is allowed to take on multiple values in an equation sometimes called a parameter.
3
Sometimes we will say y = x3 + C represents the one-parameter family of solutions, integral curves or
solution curves of the differential equation, with parameter C.
2
Definition 1.7 (Initial Value Problem (IVP)) An initial value problem is given by
dy
= f (x, y)
dx
y(x0 ) = y0
where (x0 , y0 ) be a point in the domain of f (x, y). Equation (28) is called an initial condition for the initial
value problem.
Definition 1.8 (Solution, IVP) The function y(x) is called a solution of the initial value problem
dy
= f (x, y) (7)
dx
y(x0 ) = y0 (8)
if y(x) satisfies both the ODE and the Initial Condition (IC).
Theorem 1.1 (Picard’s Existence and Uniqueness Theorem) Consider the Initial Value Problem
dy
= f (x, y) (11)
dx
y(x0 ) = y0 . (12)
3
2 Solving First Order Ordinary differential Equations
2.1 Separable Equations
An ODE is said to be separable if the parts that depends on x and y can be separated into different sides of
the equation. This makes it possible to integrate both side separately.
b. dy
dx = cot(x)
c. xdy + ydx = 0
d. (1 + x2 )ydy = (1 + y 2 )dx
Example 2.2 Solve
dy ex
= , x 6= 0
dx x
Answer: Z t
e
y(x) = dt + C
t
Definition 2.1 For real non-zero values of x, the exponential integral Ei(x) is defined as
Z ∞ −t
e
Ei(x) = − dt
−x t
Example 2.1 Find and illustrate the one-parameter family of solutions for the ODE
dy x
=−
dx y
Method of solving
• Determine whether the equation homogeneous or not
4
Example 2.2 Solve
x2 +y 2
a. dy
dx = x2 ; y(1) =1
b. (x2 + y 2 )dy = 2xydx
c. (x3 + 2xy 2 )dy = y 3 dx
b. dy
dx = x+2y+3
2x+3y+6
4 Linear Equations
Definition 4.1 (Linear Equation) A first order differential equation of the standard form,
dy
+ P (x)y = Q(x), (16)
dx
is said to be a linear equation in the dependant variable y.
If Q(x) = 0 then equation (16) called homogeneous linear differential equation, and if Q(x) 6= 0 equation
(16) called nonhomogeneous linear differential equation
Method of solving
1. Put a linear equation in to the standard form (16)
R
P (x)dx
2. Identify P (x) and then find the integrating factor: e .
3. Multiply both sides of the standard form of the equation by integrating factor. The left hand side of
the resulting equation is automatically the derivative of the integrating factor and y, i.e.
R
P (x)dx
d ye R
P (x)dx
=e Q(x).
dx
b. (x2 − 4) dx
dy
+ xy = 0
c. dy
dx + y = x, y(0) = 4
5
5 Bernoulli Equation
The differential equation
dy
+ P (x)y = f (x)y n , (17)
dx
where n is any real number, is called Bernoulli’s equation.
When n = 0 and n = 1, this equation [17] is linear. For n 6= 0, 1, we use the substitution v = y 1−n to reduces
any equation of the form [17] to a linear equation.
1. y 0 + xy = xy 2
2. dy
dx + ln(x)y = x2 y 3
3. dy
dx − x3 y = x4 y 1/3
4. y 00 + xy = y −2
6
6 Second Order Linear Differential Equations
6.1 Linear Differential Equations
The general linear ODE of order n is defined by,
dn y dn−1 y
+ p 1 (x) + ... + pn (x)y = q(x) (18)
dxn dxn−1
• If q(x) = 0, this equation is called homogeneous equation or reduced equation of [18].
• If q(x) 6= 0, this equation is called Nonhomogeneous.
The general solution to the associated homogeneous equation is called the complementary function/solution
or fundamental solution, and it has the form
yc = c1 y1 + ... + cn yn ,
where c0i s are constants, and yi0 s are, ith solutions of homogeneous equation, which are linearly independent (
i.e. c1 y1 + ... + cn yn = 0 => ∀c0i s = 0)
Once finding n independent solutions from the associated homogeneous equation the general solution to the
original ODE [18] can be expressed as,
y = yp + yc ,
where yp is called a particular solution to [18].
y = emx ,
d2 y
then dy
dx = memx and dx2 = m2 emx . Substituting values to equation,
This eq n (22) is called Auxiliary equation or Characteristic equation. Now, the general solution of ODE is de-
pends on the nature of the two roots of Characteristic equation.
7
Case I: Two distinct real roots:
If the roots are m1 and m2 , the general solution of the ODE is given by
y = Aem1 x + Bem2 x ,
c. 2y 00 − 5y − 3y = 0
y 00 + p1 (x)y 0 + p2 (x)y = 0.
The term yc = C1 y1 + C2 y2 is called the complementary solution (or the homogeneous solution) of the non
homogeneous equation. The term yp is called the particular solution (or the non homogeneous solution) of the
same equation.
We find yp (x) by substitution, and this substitution depends on the nature of f (x).
• If f (x) = k is a constant, we try to find a particular solution of the form yp = c where c is a (possibly)
different constant.
• If f (x) = kx, we try yp = ax + b where a and b are constants.
• If f (x) = kx2 , we try yp = ax2 + bx + c where a, b and c are constants. And so on. . .
• If f (x) = ksinx or kcosx, we try yp = asinx + bcosx.
• If f (x) = ekx we try yp = cekx . This works only if k is not a root of the auxiliary equation
8
Problem Solving: Method of undetermined coefficient
• Solve the complementary equation and write down the general solution.
• Based on the form of f (x) , make an initial guess for yp (x) .
• Check whether any term in the guess for yp (x) is a solution to the complementary equation. If so, multiply
the guess by x. Repeat this step until there are no terms in yp (x) that solve the complementary equation.
• Substitute yp (x) into the differential equation and equate like terms to find values for the unknown
coefficients in yp (x).
• Add the general solution to the complementary equation and the particular solution you just found to
obtain the general solution to the nonhomogeneous equation.
7 Wronskian
Consider differential equation
y 00 + P y 0 + Qy = 0 (28)
where P, Q are functions of x alone.
Definition 7.1 Two solutions u(x), v(x) of differential equation said to be linearly dependent, if there exist
constants c1 and c2 , not both zero, such that
c1 u(x) + c2 v(x) = 0
Definition 7.2 The Wronskian of two solutions u(x), v(x) of differential equation, is defined to be the deter-
minant,
u(x) v(x)
w(x) = 0 = u(x)v 0 (x) − v(x)u0 (x)
u (x) v 0 (x)
Theorem 7.1 The Wronskian of two solutions of the differential equation (28) is identically zero or never zero.
Again let u and v are solutions of the second order linear differential equation
y 00 + P (x)y 0 + Q(x)y = 0.
Then R R
− P (x)dx − P (x)dx
W (u, v) = ce = W (u, v)(x0 )e .
Theorem 7.2 The solutions of differential equation (28) are linearly dependent if and only if their Wronskian
vanish identically.
Example 7.1 a. Show that u = sin 3x and v = cos 3x linear independent solutions
y 00 + 9y = 0
9
b. Prove that sin 2x and cos 2x are solutions of
y 00 + 4y = 0
y 00 − 5y 0 + 6y = 0.
Find the solution y(x) with the property that y(0) = 0 and y 0 (0) = 1.
Now, let y1 (x) and y2 (x) be linearly independent solutions of the reduced equation
y 00 + p(x)y 0 + q(x)y = 0.
Then
y = C1 y1 (x) + C2 y2 (x)
is the general solution. We replace the arbitrary constants C1 and C2 by functions u = u(x) and v = v(x),
which are to be determined so that
yp (x) = u(x)y1 (x) + v(x)y2 (x)
is a particular solution of the nonhomogeneous equation (27). The replacement of the parameters C1 and C2
by the “variables” u and v is the basis for the term “variation of parameters.” Since there are two unknowns u
and v to be determined we shall impose two conditions on these unknowns. One condition is that yp (x) should
solve the differential equation (27). The second condition is at our disposal and we shall choose it in a manner
that will simplify our calculations.
Differentiating yp we get
yp0 = uy10 + y1 u0 + vy20 + y2 v 0
For our second condition on u and v, we set
y1 u0 + y2 v 0 = 0. (29)
This condition is chosen because it simplifies the first derivative yp0 and because it will lead to a simple pair of
equations in the unknowns u and v. With this condition the equation for yp0 becomes
and
yp00 = uy100 + y10 u0 + vy200 + y20 v 0
Now substitute yp , yp0 (given by (b)), and yp00 into the left side of equation (27. This gives,
yp00 + pyp0 + qyp = (uy100 + y10 u0 + vy200 + y20 v 0 ) + p(uy10 + vy20 ) + q(uy1 + vy2 ) (30)
= u(y100 + py10 + qy1 ) + v(y200 + py20 + qy2 ) + y10 u0 + y20 v 0 . (31)
and
y200 + py20 + qy2 = 0
10
and so
yp00 + pyp0 + qyp = y10 u0 + y20 v 0 .
The condition that yp should satisfy (27) is
Equations ( 29) and (32) constitute a system of two equations in the two unknowns u and v:
y1 u0 + y2 v 0 = 0 (33)
y10 u0 + y20 v 0 = f (x) (34)
Obviously this system involves u0 and v 0 not u and v, but if we can solve for u0 and v 0 ,then we can integrate to
find u and v. Solving for u0 and v 0 , we find that
y2 f
u0 =
y1 y20 − y2 y10
and
y1 f
v0 =
y1 y20 − y2 y10
We know that the denominators here are non-zero because the expression
is the Wronskian of y1 and y2 , and y1 , y2 are linearly independent solutions of the homogeneous equation. We
can now get u and v by integrating:
y2 (x)f (x)
Z
u=− dx
W (x)
and
y1 (x)f (x)
Z
v= dx.
W (x)
Finally
y2 (x)f (x) y1 (x)f (x)
Z Z
yp (x) = −y1 (x) dx + y2 (x) dx
W (x) W (x)
is a particular solution of the nonhomogeneous equation (27)
Example 7.1 Find a particular solution of the nonhomogeneous equation using Wronskian
y 00 − 5y 0 + 6y = 4e2x ,
11