Topic 9: Ordinary Differential Equation: 9.1 Basic Concepts and Ideas
Topic 9: Ordinary Differential Equation: 9.1 Basic Concepts and Ideas
________________________________________________________________________________________________________________
Definition:
d2y dy
(iv) 2
− 5 + 6y = 0 y′′ − 5 y′ + 6 y = 0
dx dx or
A partial differential equation (or briefly a PDE) is a mathematical equation that involves
two or more independent variables, an unknown function (dependent on those variables), and
partial derivatives of the unknown function with respect to the independent variables.
Example 2: Here u = u (t , x) is the unknown function with two independent variables t and x.
∂u ∂ 2 u
= (heat equation)
∂t ∂x 2
∂ 2u ∂ 2 u
+ = 0 (Laplace’s equation)
∂x 2 ∂t 2
Classification by Order
The order of the highest-order derivative in a differential equation is called the order of the
equation.
Page 1 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
Example 3:
d2y dy
3
dn y dn−1y dy
an (x) n + an−1(x) n−1 +L+ a1(x) + a0 (x) y = g(x).
dx dx dx
It is characterized by two properties:
(i) The dependent variable y and all its derivatives are of the first degree; that is, the
power of each term involving y is 1.
(ii) Each coefficient depends on only the independent variable x.
Example 4:
d3y d2y dy
x3 − x2 + 3x + 5y = e x Linear third-order ordinary differential equation
dx 3 dx 2 dx
Concept of Solution
Definition: Any function f defined on some interval I, which when substituted into a
differential equation reduces the equation to an identity, is said to be a solution
of the equation on the interval.
Example 5:
Verify that y = x2 is a solution of the differential equation (DE) xy' = 2y for all x.
Page 2 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
Solution:
To show that y = x2 is a solution of the DE, we have to show that the LHS of the DE is equal
to the RHS. Differentiating y = x2 with respect to x and substituting y’ = 2x into the LHS of
the DE ,we obtain
A solution of an ordinary differential equation that can be written in the form y = f(x) is said
to be an explicit solution. It is also a solution in which the dependent variable is expressed
solely in terms of the independent variable and constant.
Example 6:
For -1 < x < 1, show that the relation x2 + y2 - 1 = 0 is an implicit solution of the
dy x
differential equation =− .
dx y
Solution: We are going to show by differentiating x2 + y2 - 1 = 0 with respect to x, we
dy x
arrive at the DE =−
dx y
d 2 d d
( x ) + ( y 2 ) − (1) = 0
dx dx dx
dy
2x + 2 y =0
dx
dy x
=− .
dx y
Example 7:
Show that the function y =3xex is a solution of the linear (differential) equation
y'' - 2y' + y = 0
Page 3 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
Therefore
y'' - 2y' + y = (3xex + 6ex) - 2(3xex + 3ex) + 3xex = 0
The most general function that will satisfy the differential equation contains one or more
arbitrary constants; it is known as the general solution of the differential equation. Giving
particular numerical values to one or more of the constants in the general solution results in a
particular solution of the equation.
Example 8:
Solve y’ = cos x.
Solution:
y = sin x + c with arbitrary c.
Initial-Value Problem
An initial value problem is an ordinary differential equation
dy d n y
F x , y , ,..., = 0 (which is an nth-order differential equation)
dx dx n
together with the initial condition
Example 9 :
1. The initial value problem. y'(x) = y ; y(0) = 3
2
d y
2. The initial value problem + y = 0 ; y ( 0 ) = − 1, y ' ( 0 ) = 1 .
dx 2
Page 4 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
Definition:
A first-order differential equation that can be expressed in the form
g ( y)
dy
= f ( x) or g ( y )dy = f ( x)dx (1)
dx
is said to be separable or to have separable variables where f(x) is a function that depends
only on x and g(y) is a function that depends only on y.
dy
Example 10: Show that = xe ( x + 2 y ) is separable.
dx
Solution:
dy
= xe x e 2 y ; dy = xe x e 2 y dx ;
dx
e −2 y dy = xe x dx
dy
Example 10a: The differential equation = 3 x − y is not separable because it cannot be
dx
expressed in the form g ( y)dy = f ( x)dx
∫ g ( y ) dy = ∫ f ( x ) dx + c .
Example 11:
dy
Solve the differential equation =1 + y
dx
Solution: We note that the DE is separable because it can be expressed in the form
g ( y)dy = f ( x)dx
1
dy = dx
1+ y
1
∫ 1 + y dy = ∫ dx
ln 1 + y = x + c
This is an implicit solution of the DE. It can be converted into an explicit solution of the
form y = f (x) . How?
Page 5 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
Example 12:
Solve the differential equation 9yy' + 4x = 0.
Solution:
dy − 4 x
=
dx 9y
∫ 9 ydy = − ∫ 4 xdx
9 y 2 = − 2 x 2 + c*
2
2
x2 + y = c
9 4
The solution represents a family of ellipses.
For example,
dy
x − 4 y = x 6e x
dx
is a first order linear DE.
Here a1 ( x ) = x, a0 ( x ) = −4, and g ( x) = x 6 e x
Page 6 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
Example 13:
dy
Solve x − 4 y = x 6e x .
dx
Solution:
dy 4
1. Rewrite the DE as − y = x 5e x .
dx x
4
2 We then note that P ( x) = − . Hence, the integrating factor is given by
x
(− 4x )dx
µ ( x) = e ∫
−4
= e − 4 ln x = e ln( x )
= 1
x4
because e ln f ( x ) = f ( x)
1 dy 4 1
3. ∴ 4
− 5 y = 4 ( x 5e x )
x dx x x
d 1
4. y = xe x
dx x 4
1
4
y = ∫ xe x dx = xe x − e x + c
5. x
y = x 5 e x − x 4 e x + cx 4
Example 14:
Solve the initial value problem: y’ + 2xy = x, y(0) = 1.
Solution:
Here P(x) = 2x,
x2 dy
e + 2 xy = xe x2
Multiplying into the equation,
dx
d x2
dx
( )
e y = xe x
2
1 2
e x y = ∫ xe x dx = e x + c
2 2
2
1
∴ y ( x) = + ce − x .
2
Page 7 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
Example:
∂f ∂f
if f ( x, y ) = x + 3 xy + y − 1 .
2
Find and
∂x ∂y
Solution: Regarding y as a constant and differentiating f(x,y) with respect to x, we obtain
∂f ∂
= ( x 2 + 3xy + y − 1) = 2 x + 3 y
∂x ∂x
Regarding x as a constant and differentiating f(x,y) with respect to y, we obtain
∂f ∂
= ( x 2 + 3 xy + y − 1) = 3 x + 1
∂y ∂y
Example:
∂f ∂f
Find and if f ( x, y ) = y sin xy
∂x ∂y
Solution:
∂f ∂ ∂
= ( y sin xy ) = y (sin xy ) = y 2 cos xy
∂x ∂x ∂x
∂f ∂ ∂ ∂
= ( y sin xy ) = y ( sin xy ) + (sin xy ) ( y )
∂y ∂y ∂y ∂y
∂
= y cos xy ( xy ) + sin xy = xy cos xy + sin xy
∂y
1
Example: Let F = F ( x, y ) = x 3 y 3 . Then
3
∂F ∂F ∂ 1 ∂ 1
dF = dx + dy = ( x 3 y 3 ) dx + ( x 3 y 3 ) dy
∂x ∂y ∂x 3 ∂y 3
dF= x 2 y 3 dx + x 3 y 2 dy
Page 8 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
A differential equation
M ( x, y)dx + N ( x, y )dy = 0
is said to be exact in a region R of the xy-plane if there is a function F(x, y) such that
∂F ( x , y ) ∂F ( x, y )
= M ( x, y ) and = N ( x, y ) .
∂x ∂y
Solution: To show that the DE is exact we have to find a function F(x,y) such that its
differential
∂F ∂F
dF = dx + dy = x 2 y 3 dx + x 3 y 2 dy
∂x ∂y
1 ∂F ∂F
We claim that F ( x, y ) = x 3 y 3 is such a function because = x 2 y 3 and = x3 y 2
3 ∂x ∂y
To solve the DE we would have to produce a function F(x,y) such that the LHS of the
above DE is dF(x,y), the total differential of F(x,y). We can verify that such a function is
Page 9 of 10
TMA1101Calculus, Trimester1, 2016/2017 Topic 9a: Ordinary Differential Equations (1st order)
________________________________________________________________________________________________________________
M ( x , y ) dx + N ( x , y ) dy
∂M ∂N
be an exact differential is = .
∂y ∂x
2. To determine g(y), take the partial derivative with respect to y of both sides of
∂F
equation (2) and substitute N for . We can now solve for g’(y).
∂y
Example 16:
Solve (e2y - y cos xy)dx + (2xe2y - x cos xy + 2y)dy = 0.
Solution:
Here M ( x, y ) = (e2y - y cos xy) and N ( x, y ) = (2xe2y - x cos xy + 2y).
∂M ∂N
Therefore = 2e 2 y + xy sin xy − cos xy = , the equation is exact.
∂y ∂x
∂F ∂F .
Hence, a function F ( x, y ) exists for which M ( x, y ) = and N ( x, y ) =
∂x ∂y
∂F
∴ = e 2 y − y cos xy
∂x
F ( x, y ) = ∫ e 2 y dx − y ∫ cos xydx = xe 2 y − sin xy + g ( y )
∂F
= 2 xe 2 y − x cos xy + g '( y ) = N = 2 xe 2 y − x cos xy + 2 y
∂y
so that g’(y) = 2y and g(y) = y2+ c.
Hence, a one parameter family of solutions is given by
xe2y – sin xy + y2 + C = 0.
THE END
(nby, July 2016)
Page 10 of 10