Professional Documents
Culture Documents
(cos )=
√
(tan )= ∫ = tan +
Techniques of differentiation:
Let = ( ) and = ( ) be functions of .
1. Product rule: ( )= + .
2. Quotient rule: = .
Let = ( ) be a function of , and = ( ) be a function of .
3. Chain rule: ( ( )) = ∙
Examples:
(a) ( cos 2 ) = ∙ (cos 2 ) + cos 2 ∙ ( ) (Product rule)
= ∙ (−2 sin 2 ) + cos 2 ∙ 3 = −2 sin 2 + 3 cos 2
Dr. Emily Chan Page 3
Semester A, 2015-16 MA2177 Engineering Mathematics and Statistics Chapter 1
Techniques of integration:
1. General results
If ∫ ( ) = ( ) + , then ∫ ( + ) = ( + )+ .
2. Partial fraction
( )
Example: ∫ ( )
=∫ ( )
=∫ − = ln| | − ln| + 1| +
3. Integration by substitution
∫ ( ( )) ′( ) =∫ ( ) by letting = ( ) so that = ′( ) .
Example: ∫ 2 .
Let = + 1. Then =2 and thus
∫2 =∫ 2 =∫ = + = + .
4. Integration by parts ∫ = −∫
Example: ∫ cos .
Take = and = cos .
Then = and =∫ = ∫ cos = sin .
Thus, ∫ cos = ∫ ⏟ (sin ) = ⏟ sin − ∫ sin = sin + cos + .
∫
Solving the differential equation means finding the unknown function (or every
such function) that satisfies the differential equation.
If the differential equation contains more than one independent variable, we call this
The order of a differential equation is the order of the highest derivative of the
dependent variable with respect to the independent variable appearing in the
equation.
and all its derivatives (i.e. , , etc.). In other words, products of the unknown
function and its derivatives are not allowed if the differential equation is linear
(though products of independent variable are allowed). A differential equation that is
not linear is said to be non-linear.
Dr. Emily Chan Page 7
Semester A, 2015-16 MA2177 Engineering Mathematics and Statistics Chapter 1
(c) − 27 =0
(d) ( − 1) =2
A simple example:
= − 3 is a first order linear ordinary differential equation, where is an
independent variable and is a dependent variable.
is an arbitrary constant.
If the initial condition (or boundary condition), e.g. (0) = 1, is given, the value of the
constant can be determined.
In the above example, putting = 0 and = 1 into the general solution gives
1= − 3(0) + = 1.
dny
f (x )
dx n
Note that this is a differential equation with order n, and ( ) is a function in . To solve
this type of differential equations, we integrate both sides of the differential equation n
times with respect to . Each time when an integration is performed, a constant of
integration should be added. Therefore, the general solution of the differential equation of
order should contain arbitrary constants.
Examples:
1. Solve the differential equation = sin( ).
Solution: (Since the R.H.S. of the differential equation is a function of only, one can
obtain the general solution of the DE by integrating both sides once with respect to .)
The general solution is
=∫ sin( ) = ∫ sin( )∙ ( ) = − cos( )+ ,
where is an arbitrary constant.
=∫ − + =− ( )
+ + = + + ,
=∫ + + = + + + ,
In the rest of this chapter, we will only consider first order differential equations.
the denominator.
= (−3 ) ( ),
(Since “integration” is the reverse operation of “differentiation”, one may check whether
the above answer is correct or not by differentiating the answer and see if the original
differential equation can be obtained.)
CHECK: Differentiate = with respect to and substitute into the DE.
Since =( )
, then
y 2 e x x eC1
Exercise:
Solve the differential equation (4 − ) − = 0.
The initial condition (or boundary condition), e.g. ( )= , can be used to determine
the particular solution once the general solution is obtained.
(Recall: ( )= means that = when = , where and are given
numbers.)
Example:
Solve = 2( + 1) subject to the initial condition (0) = .
Solution:
First note that it is a separable equation. Rewrite the differential equation as
= 2( + 1) .
LHS = ∫ =− + .
RHS = ∫ 2( + 1) = −2 ∫( + 1) ( )
= −2[( + 1)( )−∫ ( + 1)], using integration by parts
= −2[( + 1) −∫ ]
= −2[( + 1) + ]+
= −2( + 2) + .
Exercise:
Solve =1+ + + subject to the initial condition (0) = 1.
+ = ( ) = ( )− ( )
= (a separable equation)
Then we integrate both sides of the above equation and finally substitute back = .
Don’t forget to add a constant immediately after integration is performed.
Example:
Solve = +2 subject to the boundary condition (1) = 4.
Solution:
RHS = ∫ = ln | | +
Hence, we have ln | | − ln| + 1| = ln| | + ln where ln = −
ln = ln | |.
By taking exponentials on both sides, we obtain = where is an arbitrary
constant.
= 5 =4 ( + ) (5 − 4 ) = 4 = .
Exercise:
(2) = 4.
where a1, a2 , b1, b2 , c1, c2 are given constants and at least one of c1 and c2 must be
non-zero. Clearly, due to the existence of the non-zero constants c1 and/or c2 , the
above differential equation is non-homogeneous, and so we cannot apply the method
described in Section 1.5 to solve this type of differential equation. However, we can solve
this type of ODE by using a suitable change of variables to transform the differential
equation into a separable or homogeneous equation.
Explanation: Assume ≠ 0.
If − = 0, i.e. = , then + = + = ( + ).
( )
= = . The term ( + ) appears in both the
( )
Note: Similarly, one can also show that + appears in both the numerator and
denominator of the original DE, so we may take = + .
For case (ii), we use the change of variables x X h, y Y k and choose ℎ and
ℎ+ + =0
so that to transform the differential equation into a
ℎ+ + =0
homogeneous equation and then use the change of variables = to reduce it to a
separable equation.
Remember to substitute back the variables after integrations so that your final solution
should be in terms of and .
Explanation:
If − ≠ 0, we cannot find any common term of and in both numerator
and denominator.
Let = + ℎ and = + . Then we have = and = , and therefore
= .
The original DE
+ +
=
+ +
could be written as
( + )+ ( + )+ + +( + + )
= = .
( + )+ ( + )+ + +( + + )
In order to eliminate the terms + + and + + , we choose ℎ and
+ + =
so that .
+ + =
Then the DE becomes
+ +
= =
+ +
Example 1
Solution
For this differential equation, we have a1b2 a2b1 ( 4)(1) ( 2)(2) 0 [case (i)]. Then
( )
we write the differential equation as = ( )
---------------- (*).
(2 x y ) 2
( 2 x y ) 3 x C1 ( 2 x y ) 2 2 y 2 x C where C 2C1 .
2
Example 2
Solution
First note that a1b2 a 2b1 (1)( 4) (1)(1) 5 0 [case (ii)].
Let = + ℎ, = + and choose ℎ, so that
h k 1 0 (1)
h 4k 4 0 (2)
(1) ( 2) gives 5k 5 0 k 1 . Substituting k 1 into (1) gives h 1 1 0 h 0 .
dy dY
Also, note that dx dX . Then the original differential equation becomes
Y
1
dY X Y X
dX X 4Y Y , which is a homogeneous equation of degree 0.
1 4
X
Y dY dv
Let Y vX , i.e. v v X
X . Then dX dX by product rule, and the differential
dv 1 v dv 1 v 1 4v 2
equation becomes v X dX 1 4v X dX 1 4v v 1 4v , which is separable.
Separating the variables and then integrating both sides of the equation, we have
1 4v 1
1 4v 2 dv dX .
X
1 4v 1 4v
LHS 2
dv 2
dv 2
dv
1 4v 1 4v 1 4v
1 1 8v
2
dv 2
dv
1 (2v) 2 1 4v
1 1 1
tan 1 (2v) 2
d (1 4 v 2
)
2 2 1 4v
1 1
tan 1 (2v) ln(1 4v 2 ) constant
2 2
1
RHS dX ln X constant
X
Dr. Emily Chan Page 29
Semester A, 2015-16 MA2177 Engineering Mathematics and Statistics Chapter 1
1 1 1
Thus, we have 2 tan ( 2 v ) ln(1 4v 2 ) ln X C1 ,
2
1 2 2
tan (2v) ln(1 4v ) 2 ln X 2C1 ln( X ) C , where C 2C1 is a constant.
Y
Replacing v X x h x and Y y k y 1 , we obtain the general
X , where
solution
2( y 1)
tan 1 x
ln1 4
ln( x ) C ,
y 1 2
x
2
i.e. tan 1
2( y 1)
x
ln x 2
4 y 12 C .
Consider the first order linear ODE which can be written in the form
dy
P( x) y Q( x) ,
dx
where P (x ) and Q(x) are any integrable functions of x .
Step 1: Make sure you have rearranged the first order linear ODE so that it is written in
dy
the form dx P( x) y Q( x) ----------- (**).
P ( x ) dx
Step 2: Find the integrating factor: I ( x) e .
(Note: The constant of integration can be omitted when calculating I (x ) .)
Step 3: Multiply both sides of equation (**) by the integrating factor I (x ) :
dy
I ( x) I ( x) P( x) y I ( x) Q ( x) .
dx
d
The LHS of the above equation is dx I ( x ) y . Then we have
d
I ( x ) y I ( x ) Q ( x) .
dx
Step 4: Integrate both sides of the above equation with respect to :
Why is ( ) = ∫ ( ) ?
If we multiply both sides of equation (**) by ( ), the equation becomes
( ) + ( ) ( ) = ( ) ( ).
We want to find a function ( ) so that the LHS of the above equation can be expressed
as [ ( ) ].
[ ( )]
By using product rule, [ ( ) ] = ( ) + .
Therefore, ( ) must be a function which satisfies
[ ( )]
( ) + = ( ) + ( ) ( )
[ ( )]
= ( ) ( ) which is separable.
[ ( )]
∫ =∫ ( )
( )
ln | ( )| = ∫ ( )
i.e. ( ) = ∫ ( ) .
Example
dy
Solve dx y (sin x ) e cos x
subject to y 2 .
Solution
dy cos x
y (sin x) e is a first order linear ODE.
First note that dx
P( x) Q( x)
P ( x ) dx sin x dx
The integrating factor is I ( x) e e ecos x .
cos x
Multiplying both sides of the differential equation by e , we obtain
dy
e cos x e cos x (sin x ) y e cos x e cos x 1.
dx
d
dx
I ( x ) y d e cos x y
dx
d cos x
Thus, we have dx e y 1.
Exercise:
Solve the differential equation =2 + .
dy n
The Bernoulli’s equation has the form dx P ( x ) y Q ( x ) y ,
where ( ) and ( ) are functions of and (≠ 0, 1) is a constant.
Example
dy
Solve 2
dx
y cot x y 3 cos x subject to the boundary condition y 1 .
2
Solution
Multiplying both sides of the differential equation by y 3 , we have
dy
2 y 3 y 2 cot x cos x
dx
let this
------------- (1).
be v
2 dv 3 dy 3 dy dv
Use the substitution v y . Then we have dx 2 y 2 y
dx and the
dx
dx
differential equation (1) becomes
dv dv
v cot x cos x v cot x cos x , --------------- (2)
dx dx
which is a first order linear ODE.
cos x d (sin x )
Multiplying both sides of equation (2) by the integrating factor sin x , we obtain
dv
sin x v cot x sin x cos x sin x .
dx
d
(sin x ) v
dx
d
That is, dx (sin x) v cos x sin x .
Integrating both sides with respect to , we get
1 sin x C
(sin x ) v cos x sin x dx sin 2 x C v
2 2 sin x
2
Replace v y . Therefore, the general solution is
sin x C
y 2
2 sin x .
Applying the boundary condition y 2 1 :
12
sin
2 C 3
C
2 sin 2
2.
Exercise:
Solve the differential equation 3 = (1 − 2 ) − with initial condition (0) = .