Professional Documents
Culture Documents
Engineering - Analysis - Munther PDF
Engineering - Analysis - Munther PDF
Mr.Munther 2015
ENVIRONMENTAL ENGINEERING DEPARTMENT
Engineering Analysis Differential Equation 1
2 y 2 y
4 0
t 2 x 2
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 2
Standard form fora First-order differential equation in the unknown function y(x) is:
y ' f x , y
(b) y ln y dx 1 x 2 dy 0 y 0 e
1 x
(a) dx 2 dy 0
y y
(c) e x 2 y dy e y 2x dx 0 (d) H.W. x 2 y 3 dx 1 x 2 dy 0
1 x
Solution : (a) dx 2 dy 0
y y
1 x 1 x 1 y
dx 2 dy 0 dx 2 dy dx 2 dy
y y y y x y
1 1
dx dy 0
x y
1 1
dx dy C ln x ln y C
x y
y C 1x Ans.
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 3
Solution : (b) y ln y dx 1 x 2 dy 0 y 0 e
y ln y dx 1 x 2 dy 0
1
1 x 2 dy
1
y ln y dx dx dy
1 x y ln y
2
1 1
dx dy 0
1 x y ln y
2
1 1
dx dy C tan 1 x ln ln y C
1 x 2 y ln y
y 0 e tan 1 0 ln ln e C
0 ln 1 C C 0
tan 1 x ln ln y 0
tan 1 x
y ee Ans.
e 3 x
dx e y dy C
3 x
e
e y C
3
e 3x
y ln C Ans.
3
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 4
Certain first order differential equations are not of the ‘variable-separable’ type, but can
be made separable by changing the variable.
An equation of the form
dy
N x , y M x , y
dx
Where N and M are functions of both x and y of the same degree throughout, is said to
be Homogeneous in y and x.
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 5
4. Solve
Note:
If the form of a Homogenous (F-ODE) is , the steps are:
4. Solve
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 6
dx dy
Solution : (a) 2
xy x y 2
dx dy
2
xy x y 2
x 2 y 2 dy dy x 2 y 2
xy dx dx xy xy
dy x y
dx y x
y 1
Let v F v v
x v
dx dv dx dv
C C
x v F v x 1
v v
v
2
y
v2
ln x C
dx x
vdv C ln x C
x 2 2
y x 2 ln x C 1 C 1 2C Ans.
dy dx
Solution : (b) 2
xy x y 2
dy dx
2
xy x y 2
x 2 y 2 dx dx x 2 y 2
xy dy dy xy xy
dx x y
dy y x
y 1
Let u F u u
x u
dy du dy du
C C
y u F u y 1
u u
u
2
x
y
u2
ln y C
dy
udu C ln y C
y 2 2
2
x
2 ln y 2C Ans.
y
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 7
y y y
Solution : (c) x sin y cos dx x cos dy 0 , y 2
x x x
y y y
x sin x y cos x x cos x
dx dy 0 x cos y
x cos y x cos y x cos y x
x x x
y y dy y y
tan x x dx dy 0 dx x tan x
y
Let v F v v tan v
x
dx dv dx dv
C C
x v F v x v v tan v
x
ln x ln sin v C
dx
cot v dv C y x sin 1
x C
2
y 2 2 sin 1 C 2
C
x
y x sin 1 Ans.
2
y
Solution : (d) xe x y dx xdy 0
y y
y
dy xe y x
dy xe y x
dy y
y
xe y dx xdy 0 e
x x
dx x dx x x dx x
y
Let v F v e v v
x
dx dv dx dv
C C
x v F v x v e v v
x e
y
dx
v
dv C ln x e v
C ln x e x
C
y x ln C ln x Ans.
dy x 2 y 2 x dy
(a) (b) x y x2y2
dx y dx
dy e y e x
(c) x 2 y 2 dy y 2dx 0 (d) 1
dx e y e x
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 8
M N
y x
General Solution
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 9
y x
(a) e x ln y dx ln x sin y dy 0
x y
(b) x 1 y 2 dx y
xy
dy 0
1 y 2
y x
Solution : (a) e x ln y dx ln x sin y dy 0
x y
y x
M e x ln y & N ln x sin y
x y
M 1 1 N 1 1
& exact
y y x x y x
x y
f x , y e ln y dx k y
x
y constant
f x , y e x x ln y y ln x k y
f x x
N ln x sin y ln x k y k y sin y
y y y
k y cos y
e x x ln y y ln x cos y C Ans.
Solution : (b) x 1 y 2 dx y
xy
1 y 2
dy 0
xy
M x 1 y 2 & N y
1 y 2
M y N y
& Exact
y 1 y 2 x 1 y 2
R
M dx
x 1 y 2 dx
x2
2
x 1 y 2
y cons tan t y cons tan t
R xy
y 1 y 2
R
y xy xy y2
K N dy dy y dy
y 1 y 2 1 y 2
2
x cons tan t x cons tan t x cons tan t
x2 y2
R K C x 1 y 2 C Ans.
2 2
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 11
I x , y M x , y dx I x , y N x , y dy 0
N y x
1 M N
Case [2] If h y I x , y e
h y dy
M y x
I x , y
1
Case [3] If M y f xy and N x g xy
xM yN
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 11
1
Integtation factor I
x2
y 1
IM dx IN dy 0 2 dx dy 0
x x
IM 1 IN 1
& 2 exact
y x2 x x
y y
R IM dx 2 dx
x x
y cons tan t y cons tan t
R 1
y x
R 1 1
K
x cons tan t
IN
y
dy
x cons tan t
dy
x x
x cons tan t
0 dy C 1
y y
R K C C1 C C 2 Ans.
x x
f x , y
y constant
x 3
3x 2 y dx k y
x4
f x , y x 3y k y
4
f
IN x 3 x 3 k y k y 0
y
k y C1
x4
x 3y C1 C
4
4
x
x 3y C 2 Ans.
4
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 12
R
y cons tan t
IM dx
y cons tan t
2xy dx x
3 2
y3
R
3x 2 y 2
y
x cons tan t
0 dy C1
R K C x y C1 C x y C 2
2 3 2 3
Ans.
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 13
2. Find
3. Find
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 14
x e e
P x dx tanh x dx
e
ln cosh x
cosh x
x Q x dx
1
y x
x
cosh x
1
y x cosh x e sech x dx x
e C e e x C
1 1 1
y x e dx x x
cosh x cosh x x
e
x
2
C 1e 2
x
y x Ans.
e 2x 1
dy
Solution : (b) 1 x 2 y x , y 0 1
dx
dy
1 x 2y x
dx
dy 2 x
y
dx 1 x 1 x
2 x
P x & Q x
1 x 1 x
2
x e e 1 x e 2 ln 1 x 1 x
P x dx dx 2
x x dx
1 x 1 1
y x 1 x dx x 1 x dx
2 2
1 x 1 x 1 x 1 x
2 2 2
x2 x3 0 2 03
C C
y x 2 3
1
2 3
C 0
1 x 1 0
2 2
2
x 1 x
y x Ans.
1 x 2 3
dx
d 2 y dy dy
(e) x 2
x2 (f) x 2 y 1 x 2 , y 1 1
dx dx dx
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 15
y ' P x y Q x y n
y'
P x n 1 Q x
1
n
y y
1 dz y' y' 1 dz
Let z 1 n n
y n 1
dx y y n
1 n dx
P x z Q x
1 dz
1 n dx
1 n P x z 1 n Q x
dz
dx
2. Find
3. Find
Then
Mr.Munther 2015
Engineering Analysis First Order Differential Equations 16
P* x
3
x
Q* x
3cos x
x3
3
x e P x dx
*
dx
e x x 3
1
z x x Q * x dx
x
1 3 3cos x 1
z x 3 x 3 dx 3 3 sin x C
x x x
1 1
3 sin x C
y 3
x3
x3
3 sin x C Ans.
y3
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 17
Many physical laws and relations can be expressed mathematically in the form of
differential equations. If we want to solve an engineering problem, we first have to formulate
the problem as a mathematical expression in terms of variables, functions, and equations.
Such an expression is known as a mathematical model of the given problem. Such a model is
called a differential equation.
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 18
Discharge is the volume of a fluid passed per unit time. If water (or other liquid) drains
from a tank, we expect that the flow will be greatest at first (when the water depth is greatest)
and will gradually decrease as the water level decreases. But we need a more precise
mathematical description of how the flow decreases in order to answer the kinds of questions
that engineers ask: How long does it take for a tank to drain completely?
V
Q A
t
Q Q in Qout
Qout r 2 2 gy Gravity Flow Torricelli Law
dA y * dy
Q in Qout
dt
dA y A y R 22
dy
R2 Q in r 2 2 gy
dt
2
dy Q r
in2 2g y
dt R R
dy
2
dt
Q in r
R 2 R
2g y
Case [1] Q in 0
Case [2] Q in Constant
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 19
Example 7: The 1.5-m-diameter tank is initially filled with water. There is a 2-cm-diameter hole in
the bottom. If the water level is 5 m and the hole is suddenly opened. Estimate the water
level at time 10 min and, when will the tank be empty?
Q Q in Qout
Q in 0
Qout r 2 2 gy Gravity Flow
dA y * dy
Q in Qout
dt
dA y A y R 2
dy
R2 r 2 2 gy
dt
dy r
2g y
dt R
R 2 dy
2
dy
dt dt
2
r r g 2 y
2g y
R
R 2
2
y t C
r g
B .C at t 0 y H
R 2
2
C H
r g
2
r g
2
y H t
R 2
R 2H
2
t when y 0
r g
2
0.02 / 2 9.81
2
y 5
10 60 4 m
1.5 / 2 2
1.5 / 2 2 *5
2
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 21
H.W1: The cylindrical tank (1m) diameter is initially filled with water and inside flow is (5 L/sec).
There is a (2cm) diameter hole in the bottom. If the water level is (2m) and the hole is
suddenly opened. Estimate the water level at time (15 min) and, when will the tank be
empty?
H.W2: The frustum tank with (1m) top diameter and (0.25m) bottom diameter, the tank is initially
filled with water. There is a (1.5cm) diameter hole in the bottom. If the water level is
(2.5m) and the hole is suddenly opened. Estimate the water level at time (25 min) and,
when will the tank be empty?
H.W3: The conical tank (1.5m) top diameter is initially filled with water and inside flow is (2 L/sec).
There is a (1cm) diameter hole in the bottom. If the water level is (1.8m) and the hole is
suddenly opened. Estimate the water level at time (30 min) and, when will the tank be
empty?
Consider a tank which initially holds (Vo unit of volume) of brine that contains (Co unit of
weight) of salt. Another brine solution, containing (Cin unit of weight) of salt per unit of volume,
is poured into the tank at the rate of (Qin unit of discharge) while, at the same time, the well-
stirred solution leaves the tank at the rate of (Qout unit of discharge) (Fig.). The problem is to
find the amount of salt in the tank at any time t. Let (W) denote the amount of salt in the tank
at any time t. The time rate of change of W, dWIdt, equals the rate at which salt enters the
tank minus the rate at which salt leaves the tank. Salt enters the tank at the rate of (CinQin unit
of weight per unit of time). To determine the rate at which salt leaves the tank, we first
calculate the volume of brine in the tank at any time t, which is the initial volume Vo plus the
volume of brine added Qint minus the volume of brine removed Qout t.
Thus, the volume of brine at any time is
V o Qin Qout t .
The concentration of salt in the tank at any time is W / V o Qin Qout t , from which it
follows that salt leaves the tank at the rate of
Qout
W out W t
V o Q in Qout t
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 21
volume unit V
Q Discharge
time unit t
V Volume volume unit Q t
t Time time unit
weight unit W
C Concentration
volume unit V
W Weight weight unit C V
V t V o V in V out
V in Q int
V out Qout t
W t
C t
V t
W t
C
V o Q in Qout t
C out C
W t W o W in W out W o C inQ in C outQout t
dW
C inQ in C outQout
dt
dW Qout
C inQ in W t
dt V o Q in Q out t
dW Qout
W C inQ in
dt V o Q in Q out t
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 22
Example 8: A tank initially holds (400 L) of a brine solution containing (10 kg) of salt. At t = 0, fresh
water is poured into the tank at the rate of (20 L/min), while the well-stirred mixture
leaves the tank at the same rate. Find the amount of salt in the tank at any time t.
Solution
dW Qout
W C inQ in
dt V o Q in Qout t
dW 20
W 0 20
dt 400 20 20 t
dW 1
W 0
dt 20
dW 1 1 1
W
dt
20 W
dw dt
20
t
ln W c
20
B .C at t 0 W 10
0
ln 10 c c ln 10
20
t t W t
ln W ln 10 ln W ln 10 ln
20 20 10 20
t
W 10e 20
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 23
Example 9: A tank contains 20 kg of salt dissolved in 5000 L of water. Brine that contains 0.03 kg
of salt per liter of water enters the tank at a rate of 25 L/min. The solution is kept
thoroughly mixed and drains from the tank at the same rate. How much salt remains in
the tank after half an hour?
Solution
dW Qout
W C inQ in
dt V o Q in Qout t
dW 25
W 0.03 25
dt 5000 25 25 t
dW 1 dW W dW
W 0.75 0.75 200 150 W
dt 200 dt 200 dt
dW 1
200 dt 200 dw dt
150 W 150 W
200ln 150 W t c
t
ln 150 W c1
200
B .C at t 0 W 20
0
ln 150 20 c1 c1 ln 130
200
t t 150 W t
ln 150 W ln 130 ln 150 W ln 130 ln
200 200 130 200
t
W 150 130e 200
30
W t 30 min
150 130e 200
38.1 kg
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 24
Example 10: A tank initially holds (250 L) of a brine solution containing (5 kg) of salt. At (t = 0)
fresh water is poured into the tank at the rate of (15 L/min), while the well-stirred mixture
leaves the tank at the same rate. Find:
(a) The amount of salt in the tank at any time t and
(b) The time at which the mixture in the tank contains (1 kg) of salt.
(c) The amount of salt in the tank after 20 minutes.
Solution (a)
dW Qout
W C inQ in
dt V o Q in Qout t
dW 15
W 0 15
dt 250 15 15 t
dW
0.06W 0
dt
dW 1
W
0.06dt W dw 0.06 dt
ln W 0.06t c
B .C at t 0 W 10
ln 5 0.06 0 c c ln 5
W
ln W 0.06t ln 10 ln W ln 5 0.06t ln 0.06t
10
W 5e 0.06t
Solution (b)
1 5e 0.06t
1 1
t ln 27 min
0.06 5
Solution (c)
W 5e 0.06t 5e 0.06(20) 1.5 kg
Mr.Munther 2015
Engineering Analysis Application of First Order Differential Equation 25
H.W1: A 150-L tank initially contains (30 L) of fresh water. At (t = 0), a brine solution containing
(0.5 kg) of salt per liter is poured into the tank at the rate of (10 L/min), while the well-
stirred mixture leaves the tank at the rate of (4 L/min). Find:
(a) The amount of time required for overflow to occur and
(b) The amount of salt in the tank at the moment of overflow.
H.W2: A tank contains (400 L) of brine made by dissolving (20 kg) of salt in water. Salt water
containing (0.75 kg) of salt per liter runs in at the rate of (2 L/min) and the well-stirred
mixture runs out at the same rate of (5 L/min). Find the amount of salt in the tank after
15 minutes.
H.W3: A tank contains (100 gal) of brine made by dissolving (80 Ib) of salt in water. Pure water runs
into the tank at the rate of (4 gal/min), and the well-stirred mixture runs out at the same
rate. Find:
(a) The amount of salt in the tank at any time t.
(b) The time required for half the salt to leave the tank.
Mr.Munther 2015
Engineering Analysis Second Order Linear Homogeneous Equations 26
d 2y dy
Solution of 2
2a by 0
dx dx
Roots of r 2 2a r b 0 Solution
r1 , r2 real and unequal y C 1 e r1 x C 2 e r2 x
r1 , r2 real and equal y C 1 x C 2 e r2 x
r1 , r2 complex conjugate , i y e x C1 cos x C 2 sin x
Solution : (a) y 2 y 0
y 2 y 0
D 2D y 0
2
r 2r 0
2
r r 2 0
r1 0 & r2 2 r1 & r2 real and unequal
y C 1 e 0 x C 2 e 2 x y C 1 C 2 e 2 x Ans.
Solution : (b) y 4 y 4 y 0
y 4 y 4 y 0
D 4D 4 y 0
2
r 4r 4 0
2
r 2 0
2
Mr.Munther 2015
Engineering Analysis Second Order Linear Homogeneous Equations 27
Solution : (c) y 2 y 4 y 0
y 2 y 4 y 0
D 2D 4 y 0
2
r 2r 4 0
2
2 2 4 1 4
2
r
2 1
r1 1 3 i r1 & r2 complex conjugate
1 , 3
y e x C 1 cos x C 2 sin x
y e x C 1 cos 3 x C 2 sin 3 x Ans.
Mr.Munther 2015
Engineering Analysis Second Order Linear Nonhomogeneous Equations 28
d 2y dy
2
2a by F x
dx dx
is called second order linear nonhomogeneous equation
The general solution of the nonhomogeneous equation is
y yh yp
Where
y h = homogeneous solution
y p = particular solution
1. Find
2. Calculate
3. Find and
1. Mr.Munther 2015
Engineering Analysis Second Order Linear Nonhomogeneous Equations 29
Solution : (a) y y e x
y y e x
First , find y h
D 2
1 y 0
r2 1 0 r1 1 & r2 1
y C1 e x C 2 e x
u1 e x , u2 e x , F x ex
u1 e x , u2 e x
u1 u2 ex ex
D D e x e x e x e x 1 1 2
u1 u2 e x
e x
u2 F x e x e x 1 x
v 1 v 1 v1 C1
D 2 2 2
u1 F x ex ex 1 1
v 2 v 2 e 2x v 2 C2 e 2x
D 2 2 4
y v 1 u1 v 2 u2
x 1 x 1
y C1 e x C 2 e 2 x e where C3 C1
2 4 4
1
y xe x C3e x C 2e x Ans.
2
y y e x cos x
First , find y h
D 2
Dy 0
r2 r 0 r r 1 0 r1 0 & r2 1
y C1 C 2 e x
u1 1 , u2 e x , F x e x cos x
u1 0 , u2 e x
u u 1 ex
D 1 2 D e x 0 D ex
u1 u2 0 e x
u2 F x e x e x cos x 1
v 1 v 1 e x cos x v 1 C1 e x cos x sin x
D ex 2
u F x 1 e x cos x
v 2 1
v2 cos x v 2 C 2 sin x
D ex
Mr.Munther 2015
Engineering Analysis Second Order Linear Nonhomogeneous Equations 31
1
y C1 e x cos x sin x 1 C2 sin x e x
2
1
y C1 C2 e x e x cos x sin x Ans.
2
y y sec x tan x
First , find y h
y y 0
D 2
1 y 0
r2 1 0 r i 0, 0
y C1 cos x C 2 sin x
u1 cos x , u2 sin x , F x sec x tan x
u1 sin x , u2 cos x
u1 u2 cos x sin x
D D cos2 x sin2 x D 1
u1 u2 sin x cos x
u2 F x sin x sec x tan x
v 1 v 1 tan2 x v 1 x tan x C1
D 1
u F x cos x sec x tan x
v 2 1 v 2 tan x v 2 ln sec x C 2
D 1
y x tan x C1 cos x ln sec x C 2 sin x C3 C 2 1
y x cos x sin x ln sec x C1 cos x C 3 sin x Ans.
Mr.Munther 2015
Engineering Analysis Second Order Linear Nonhomogeneous Equations 31
2. Find
3. Find
F x Condition yp
e kx k r1 and k r2 Ae kx
k r1 or k r2 Axe kx
k r1 and k r2 Ax 2e kx
sin kx ,cos kx k r1 and k r2 B cos kx C sin kx
k r1 and k r2 Bx cos kx Cx sin kx
ax 2 bx c 0 r1 and 0 r2 Dx 2 Ex F
0 r1 or 0 r2 Dx 3 Ex 2 Fx
0 r1 and 0 r2 Dx 4 Ex 3 Fx 2
Solution : (a) y y e x x 2
y y e x x 2
First , find y h
y y 0
D 2
1 y 0
r2 1 0 r1 1 & r2 1
x
y C1 e C 2 e
x
Second , find y p
F x 1 e x , k 1 r1 y p 1 A xe x
F x 2 x 2 , r1 & r2 0 y p 2 Bx 2 Cx D
Mr.Munther 2015
Engineering Analysis Second Order Linear Nonhomogeneous Equations 32
y p y p 1 y p 2
y p A xe x Bx 2 Cx D
y p A xe x e x 2 Bx C
y p A xe x 2e x 2 B A xe x 2A e x 2 B
y p y p e x x 2
A xe x
2A e x 2 B A xe x Bx 2 Cx D e x x 2
2A e x Bx 2 Cx 2 B D e x x 2
1
2A e x e x A
2
Bx x
2 2
B 1
Cx 0x C 0
2B D 0 D 2 B 2
1 x
yp xe x 2 2
2
1
y yh y p y C1 e x C 2 e x xe x x 2 2 Ans.
2
y y 6 y e x 7 cos x
First , find y h
D 2
D 6 y 0
r2 r 6 0 r 3 r 2 0 r1 3 & r2 2
y C1 e 3x C 2 e 2 x
Second , find y p
F x 1 e x , k 1 r1 & r2 k y p 1 A e x
F x 2 cos x , k 1 r1 & r2 k y p 2 B cos x C sin x
y p y p 1 y p 2 y p A e x B cos x C sin x
y p A e x B sin x C cos x
y p A e x B cos x C sin x
y p y p 6 y p e x 7 cos x
A e x
B cos x C sin x A e x B sin x C cos x 6 A e x B cos x C sin x e x 7cos x
1 1 6 A e x B C 6B cos x C B 6C sin x e x 7 cos x
Mr.Munther 2015
Engineering Analysis Second Order Linear Nonhomogeneous Equations 33
1
4A e x e x A
4
7 B C cos x 7 cos x 7B C 7 ..... 1
B 7C sin x 0 sin x B 7C 0 ..... 2
49 7
B , C
50 50
1 49 7
y p e x cos x sin x
4 50 50
1 49 7
y yh y p y C1 e 3x C 2 e 2 x e x cos x sin x Ans.
4 50 50
Mr.Munther 2015
Engineering Analysis Second Order Linear Nonhomogeneous Equations 34
Differential Equation yp
c
y 2a y b y c
b
c
y 2a y c x
2a
c bd 2ac
y 2a y b y cx d x
b b2
c 2 2ad c
y 2a y cx d x x
4a 4a 2
c 3 d 2
y cx d x x
6 2
c
y 2a y b y ce k x ek x
k 2ak b
2
c
y 2a y b y ce k x k r1 or r2 x ek x
2a 2k
c 2 kx
y 2a y b y ce k x k r1 r2 x e
2
b k 2 cos k x 2ak sin k x
c
y 2a y b y c cos k x k r1 r2 2
b k 2ak
2 2
c
y 2a y b y c cos k x k r1 r2 2 sin k x
2k
c
y k 2 y c cos k x x sin k x
2k
2ak cos k x b k 2 sin k x
c
y 2a y b y c sin k x k r1 r2 2
b k 2ak
2 2
c
y 2a y b y c sin k x k r1 r2 cos k x
2k 2
c
y k 2 y c sin k x x cos k x
2k
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 35
r rk y k C k e rk x
Real and equal r r1 r2 r3 .... rk y 1 C1 e r x
y 2 C 2 xe r x
y 3 C 3 x 2e r x
y k C k x k 1e r x
Complex r1 1 1 i y 1 y 2 e 1 x C 1 cos 1x C 2 sin 1x
conjugate r2 2 2 i
y 3 y 4 e 2 x C 3 cos 2 x C 4 sin 2 x
r3 3 3 i
y 5 y 6 e 3 x C 5 cos 3x C 6 sin 3x
rk k k i
y 2 k 1 y 2 k e k x C 2 k 1 cos k x C 2 k sin k x
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 36
y 2 k 1 y 2 k x k 1 e x C 2 k 1 cos x C 2 k sin x
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 37
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 38
B B x B x ..... B x sin kx
x m cos kx 2 m
0 1 2 m
x B B x B x ..... B x sin kx
s
0 1 2
2
m
m
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 41
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 41
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 42
y p u1 y 1 u 2 y 2 u 3 y 3 u 4 y 4 ..... u n y n
y1 y2 y3 y4 yn
y 1' y 2' y 3' y 4' y n'
y 1'' y 2'' y 3'' y 4'' y n ''
W y 1''' y 2''' y 3''' y 4''' y n '''
y 1
n 2
y 2
n 2
y 3
n 2
y 4
n 2
y n
n 2
0 y2 y3 y4 yn
y2 y3 y4 yn
0 y 2' y 3' y 4' y n'
y 2' y 3' y 4' y n'
0 y 2'' y 3'' y 4'' y n ''
y 2'' y 3'' y 4'' y n ''
1 f x
n 1
W1 0 y 2''' y 3''' y 4''' y n '''
y 2''' y 3''' y 4''' y n '''
y 1 n 2 y 2 n 2 y 3 n 2 y 4 n 2 y n n 2
y 2 n 2 y 3 n 1 y 4 n 1 y n n 1
f x y2 n 1
y3 n 1
y4 n 1
yn n 1
y1 0 y3 y4 yn
y1 y3 y4 yn
y 1' 0 y 3' y 4' y n'
y 1' y 3' y 4' y n'
y 1'' 0 y 3'' y 4'' y n ''
y 1'' y 3'' y 4'' y n ''
1 f x
n 2
W 2 y 1''' 0 y 3''' y 4''' y n '''
y 1''' y 3''' y 4''' y n '''
y 1
n 2
y 3
n 2
y 4
n 2
y n
n 2
0
y 1
n 2
y 3
n 2
y 4
n 2
y n
n 2
y1 n 1
f x y3 n 1
y4 n 1
yn n 1
y1 y2 y3 0 yn
y1 y2 y3 yn
y 1' y 2' y 3' 0 y n'
y 1' y 2' y 3' y n'
y 1'' y 2'' y 3'' 0 y n ''
y 1'' y 2'' y 3'' y n ''
1 f x
n i
W i y 1''' y 2''' y 3''' 0 y n '''
y 1''' y 2''' y 3''' y n '''
y 1
n 2
y 2
n 2
y 3
n 2
y n
n 2
0
y 1
n 2
y 2
n 2
y 3
n 2
y n
n 2
y1 n 1
y2 n 1
y3 n 1
f x yn n 1
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 43
W1 W2 Wi Wn
u1 dx , u 2 dx .... ui dx .... un dx
W W W W
y p u1 y 1 u 2 y 2 u 3 y 3 u 4 y 4 ..... u n y n
y y h y p
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 44
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 45
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 46
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 47
F x Differential Operator D
xm D m 1
D k
m 1
x me kx
x me kx cos cx D 2
2kD k 2 c 2
m 1
x me kx sin cx
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 48
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 49
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 51
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 51
dky
ak x k ak D D 1 D 2 D 3 ... ... D k 1 y where k n Order of D .E
dx k
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 52
Mr.Munther 2015
Engineering Analysis Higher Order Differential Equations 53
Mr.Munther 2015
Engineering Analysis :System Linear Differential Equations 54
x g x aDx bDy F1 x
d
y f x D cDx aDy F2 x
dt
F1 x bD aD F1 x
aD bD x F1 x F2 x dD cD F2 x
x y
cD dD y F2 x aD bD aD bD
cD dD cD dD
Mr.Munther 2015
Engineering Analysis :System Linear Differential Equations 55
Mr.Munther 2015
Engineering Analysis :System Linear Differential Equations 56
2D 2
3D 9 x D 2 7 D 14 y 4
D 1 x D 2 y 8e 2t
Mr.Munther 2015
Engineering Analysis :System Linear Differential Equations 57
D 1 x D 2 y D 3 z e t
D 2 x D 3 y 2D 3 z e t
4D 6 x 5D 4 y 20D 12 z 7e t
Mr.Munther 2015
Engineering Analysis :System Linear Differential Equations 58
Mr.Munther 2015
Engineering Analysis Partial differential equation 59
The simplest form of partial differential equation is such that a solution can be determined
by partial integration.
Example 17 : Solve the partial differential equation
2u
12x 2 t 1 u x 0 cos 2t , u x sin t
x 2 x 0
Solution :
B .C . ux sin t
2u x 0
12x 2 t 1
sin t 4 0 t 1 k 1 t
3
x 2
u xx dx 12x 2 t 1 dx k 1 t sin t
4x 3 t 1 sin t dx
t is constant
u x 4x 3
t 1 k 1 t u dx x
t is constant
u x 4 t 1 x sin t k 2 t
B .C . u x 0
cos 2t
cos 2t 0 t 1 0 sin t k 2 t
4
k 2 t cos 2t
u x ,t x 4 t 1 x sin t cos 2t
Mr.Munther 2015
Engineering Analysis Partial differential equation 61
A partial differential equation is an equation that contains one or more partial derivatives.
Examples include:
u u
i- a b c
x y
2u 1 u
ii- 2
x 2
c t
2u 2u
iii- 0
x 2 y 2
Equation (i) is a first-order partial differential equation, and equations (ii) and (iii) are
second-order partial differential equations since the highest power of the differential is 2.
Let u(x, y)= F(x)G(y), where F(x) is a function of x only and G(y) is a function of y only, then
u x , y F x G y
u FG
u x F' G u xx F'' G
uy F G' u yy F G''
Solution : (a) y u x u y
Mr.Munther 2015
Engineering Analysis Partial differential equation 61
Solution : (b) 3u x 2u y x u x , y 1
Solution : (c) u x u u y u 0 u 0, y 1 y
Mr.Munther 2015
Engineering Analysis Partial differential equation 62
2u 1 2u
Solution : (d)
x 2 c 2 t 2
Mr.Munther 2015
Engineering Analysis Partial differential equation 63
2u 2u
Solution : (e) 0
x 2 y 2
A function f(x) is said to be periodic if f(x +T )= f(x) for all values of x, where T is some
positive number. T is the interval between two successive repetitions and is called the period
of the functions f(x).
Mr.Munther 2015
Engineering Analysis FOURIER SERIES 65
Let the function f(x) be defined on the interval { −L ≤ x ≤ L } .Then the Fourier coefficients
an and bn in the Fourier series representation of f(x) :
F x ao
a cos nLx b sin nLx
n 1
n n
f x dx
1
ao
2L
L
L
1 n x
an f x cos dx
L L
L
L
1 n x
bn f x sin dx
L L
L
A function f(x) is said to be even if f(-x) = f(x) for all values of x. Graphs of even functions
are always symmetrical about the y-axis (i.e. a mirror image).
Fourier series of even functions
F x ao
n 1
an cos
n x
L
1
ao f x dx
L
0
L
2 n x
an f x cos dx
L L
0
A function f(x) is said to be odd if f(-x) = -f(x) for all values of x. Graphs of even functions
are always symmetrical about the origin point.
Fourier series of odd functions
F x
n 1
bn sin
n x
L
2 n x
bn f x sin dx
L L
0
Mr.Munther 2015
Engineering Analysis FOURIER SERIES 66
Example 19 : Find the Fourier series for the periodic function defined by :
(a) f t t 0t 3
x 0 x
(b) f x
0 x 2
(c) f 2 0 2
x 2 x 0
(d) f x
x 0x 2
(e) f x x 2 x 2
0 2 x 1
(f) f x 5 1 x 1
0 1 x 2
Mr.Munther 2015
Engineering Analysis FOURIER SERIES 67
x 0 x
Solution: (b) f x
0 x 2
Mr.Munther 2015
Engineering Analysis FOURIER SERIES 68
Solution: (c) f 2 0 2
Mr.Munther 2015
Engineering Analysis FOURIER SERIES 69
x 2 x 0
Solution: (d) f x
x 0x 2
Mr.Munther 2015
Engineering Analysis FOURIER SERIES 71
Solution: (e) f x x 2 x 2
Mr.Munther 2015
Engineering Analysis FOURIER SERIES 71
0 2 x 1
Solution: (f) f x 5 1 x 1
0 1 x 2
Mr.Munther 2015
Engineering Analysis FOURIER SERIES 72
H.W 14 : Find the Fourier series for the periodic function defined by :
0 2 x 0
(a) f x 1 0 x 1
2 1 x 2
0 x 0
(b) f x
x
2
0 x
x 2 0 x
(c) f x
x 2
x 5 x 0
(d) f x
1 x 0x 5
2
2x 3 x 2
(e) f x 0 2 x 1
x 2 1 x 3
cos x 2 x 0
(f) f x
sin x 0x 2
1 0 x 1
(g) f x 0 1 x 3
1 3 x 5
2 4 x 2
(h) f x 1 x 2
2 x 2
0 2x 4
e x x x 0
(i) f x
e x
x
0 x
0 x
2
2x x 0
(j) f x
2
2x 0x
2
0 x
2
Mr.Munther 2015
Engineering Analysis Numerical Analysis 73
Numerical analysis is the study of algorithms that use numerical for the problems of
mathematical analysis
Plot of the data with polynomial interpolation applied Polynomial curves fitting points generated with a sine
function. Red line is a first degree polynomial, green line
is second degree, orange line is third degree and blue is
fourth degree
y 2 y1 y y1
x 2 x1 x x1
y 2 y1
y y1 x x 1
x 2 x1
f x f 1 11f x x1
Mr.Munther 2015
Engineering Analysis Numerical Analysis 74
x 1 ,f x 1 , x 2 ,f x 2 ,................ x n ,f x n
n n
x xk
f x f x i Li Where Li
xi xk
i 1 k 1
i k
x 1 ,f x 1 , x 2 ,f x 2 ,................ x n ,f x n
f N x x
k
f x f 1 k
1 k Where Nk i
k 1 i 1
1 x1 f1
f 2 f1
2 x2 f2 x 2 x1 12f 11f
f3 f2 x 3 x1 22f 12f
3 x3 f3 x3 x2 13f 12f x 4 x1 32f 13f
f4 f3 x4 x2 32f 22f x 5 x1 42f 14f
4 x4 f4 x4 x3 14f 13f x5 x2 33f 32f x 6 x1 52f 15f
f5 f4 x5 x3 24f 32f x6 x2 34f 42f x 7 x1
x5 f5 x5 x4 x6 x3 x7 x2
5 15f 14f 34f 33f
f6 f5 x6 x4 x7 x3
52f 24f
x6 x5
6 x6 f6 16f 15f x7 x4
f7 f6
x7 x5
7 x7 f7 x7 x6
Mr.Munther 2015
Engineering Analysis Numerical Analysis 75
n n
x xk
f x f x i Li Where Li
xi xk
i 1 k 1
i k
f x f 1
x x 2 x x 3 x x 4 x x 5
f2
x x 1 x x 3 x x 4 x x 5
x 1 x 2 x 1 x 3 x 1 x 4 x 1 x 5 x 2 x 1 x 2 x 3 x 2 x 4 x 2 x 5
f 3
x x 1 x x 2 x x 4 x x 5
f4
x x 1 x x 2 x x 3 x x 5
x 3 x 1 x 3 x 2 x 3 x 4 x 3 x 5 x 4 x 1 x 4 x 2 x 4 x 3 x 4 x 5
f 5
x x 1 x x 2 x x 3 x x 4
x 5 x 1 x 5 x 2 x 5 x 3 x 5 x 4
f x 52
x 2 x 4 x 5 x 7 5 x 1 x 4 x 5 x 7 5 x 1 x 2 x 5 x 7
1 2 1 4 1 51 7 2 1 2 4 2 5 2 7 4 1 4 2 4 5 4 7
40
x 1 x 2 x 4 x 7 10 x 1 x 2 x 4 x 5
5 15 2 5 4 5 7 7 17 2 7 4 7 5
13 1 5 5 1
18
f x x 1 x 2 x 4 x 5 x 7 6 18 3 18
x 1 x 2 x 4 x 5 x 7
1 13 3 5 30 1
f x x 1 x 2 x 4 x 5 x 7
18 x 1 x 2 x 4 x 5 x 7
Mr.Munther 2015
Engineering Analysis Numerical Analysis 76
1 1 52
5 52
47
2 2 5
2 1 5 47 14
5 5 5 4 1 10 14
6
5
42 35 5 10 5 1 6 6
3 4
40 5 35 20 10 2
52 7 1
6
54 25 35 72
4 5 40 10 40 20
25 74
75
5 7 10
n 1
f N x x
k
f x f 1 k
1 k Where Nk i
k 1 i 1
1 13 3 5 30 1
f x 3 1 3 2 3 4 3 5 3 7 6 Ans.
18 3 1 3 2 3 4 3 5 3 7
Mr.Munther 2015