رياضيات مرحله ثانيه
رياضيات مرحله ثانيه
رياضيات مرحله ثانيه
Stage: Third
(1)
Or
linear
Where d = a + b and e = b - c
2y
y for all values of x
x
y 2y
c1 2 , y 2c1 x
x x
y 2y
c2 2 , y 2c2 x
x x
2y
Also y for y cx 2
x
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Any solution found from the general solution by assigning particular
values to the constants is called a particular solution.
y a cos x b sin x general solution
a 1 and b 0
y cos x particular solution
0a 0b 0 o.k.
Note:
x
y1 ae or y2 be 2x
y1 y1 y1 0
Satisfies 2
yy y 0
2
y2 y2 y2 0
2
Is not solution of
yy y 0
2
yy y 0
Since 2
Is not linear, while;
y y 2 y 0 Is linear
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Example: Given y ae x b cos x (1)
Find second-order differential equation.
Solution:
If the given function has n constants, differentiate nth
times and then eliminate the constants.
y ae x b sin x (2)
y y x y y
y x
e sin x
2e 2 cos x
2 y y y y tan x y tan x
ae b sin x y 0
x (2)
ae b cos x y 0
x (3)
1 cos x y
1 sin x y 0
1 cos x y
y ae b cos x
iv x
Satisfied
y y
iv for all values of a, b, c and d.
dy
N ( y)
M ( x )dx C
( y 1)dy xdx
2 2
y x
y c
2 2
x y 2 y 2c
2 2
x ( y 2 y 1) 2c 1
2 2
x ( y 1) R
2 2 2
R
y
x
x
-
x
k
x
2 2 2
(x-k) +(y-h) = R h
y+1=ax
(2 xy 6 x)dx ( xy 2 y)dy 0
2 x( y 3)dx y( x 2)dy 0
2x y
dx dy 0
x2 y 3
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
4 3
(2 )dx (1 )dy 0
x2 y 3
2 x 4 ln( x 2) y 3 ln( y 3) c
ln ( x 2) ( y 3) c 2 x y
4 3
c 2 x y c 2 x y
( x 2) ( y 3) e
4 3
e e
2 x y
( x 2) ( y 3) ke
4 3
(4 y )dx (1 x )dy 0
2 2
Solution:
dx dy
0
1 x 2
4 y 2
1 1 1 y
tan x tan c1
2 2
1 y 1
2 tan x tan 2c1
2
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
In simpler form: y 1 1
tan(2 tan x tan ) tan 2c1
2
1 y
tan 2 tan x
2 c
2
y 1
1 tan 2 tan x 2x y
2
1 x 2 C 2
y 2x
1
2 1 x 2
4 x y (1 x ) 2
C
2(1 x ) 2 xy
2
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Example: Solve
dx xydy y dx ydy 2
Solution:
Best first step:
(1 y )dx y(1 x)dy
2
dx y
dy
1 x 1 y 2
1
ln(1 x) ln(1 y ) c
2
ln(1 x) ln(1 y ) C
2 2
(1 x)
2
ln C
Tikrit University -Civil Engineering
(1 y )
2
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
(1 x)2
e k
C 2
e kC 2
is necessarily +ve
(1 y )
2
(1 x) k (1 y )
2 2 2
(1 x)2
(1 y ) k
2 2
2
k
(1 x) 2
(1 y ) 2
0
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
The general solution defines the family of conics:
( x 1) 2
y 1
2
(a) general solution
If =1 , ( x 1) y 1
2 2
, the solution is a circle
y 1 ( x 1)
2 2
(b)
x
( x 1) 2
General, y 1 2
0
Particular,
y 1 ( x 1)
2 2
D.E., dx ydy
x 1 y 1
(1 x) (1 y )
2
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
x=1
y (1, y )
o
x
y=-1 (xo ,-1)
M ( x, y)dx N ( x, y)dy
are all of the same degree in x and y then either of
the substitution of y ux or x vy will reduce
the D.E. to a separable equation.
But, generally if the substitution of
x x and y y
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
will convert M ( x, y) int o n M ( x, y) and
N ( x, y) int o n N ( x, y) , then M(x,y) and N(x,y)
are called homogeneous function of n
degree.
The D.E. M ( x, y)dx N ( x, y)dy is said
homogeneous when M(x,y) and N(x,y) are
homogeneous functions of the same degree.
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Example:
x
Solution:
Substitute x x and y y
x
[ x(ln x y ln y) ye ]
2 2 y
F ( x, y)
Hence, homogeneous, degree (1)
or x vy F ( x, y) y F (v)
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Example: Solve ( x 3 y )dx 2 xydy 0
2 2
Solution:
Is not separable
Is homogeneous of degree (2)
M and N both are of degree (2)
Substitute y vx dy vdx xdv
( x 3v x )dx 2 x vx(vdx xdv) 0
2 2 2
(1 v )dx 2vxdv 0
2
1 2v
dx dv 0
x 1 v 2
ln x ln(v 1) c
2
x
ln 2 c
v 1 Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
x
e c
v 1
2
x
2
k
y
1 x
x k
y x
2 2
2
x
3
x
k
y x
2 2
x k( y x )
3
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
2 2
x dt ( x xt t )dx 0
Example: Solve 2 2 2
dv dx
0
1 v 2
x
1
tan v ln x c
1
ln x c tan v
c tan 1 v
xe
t
c tan 1 v tan 1
xe e xke x
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
y
dy
Example: Solve
x y xe x
dx
Solution: Homogeneous.
v
vdx xdv vdx e dx 0
v
xdv e dx 0 Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
dx dv
v 0
x e
dx v
e dv 0
x
ln x e c v
Substitute
y vx dy vdx xdv
( x vx)dx (3x vx)(vdx xdv) 0
(1 v)dx (3 v)(vdx xdv) 0
(1 v)dx (3vdx 3xdv v dx vxdv) 0 2
dx v 3
2 dv 0
x v 2v 1
dx dv 2
dv 0
x v 1 (v 1) 2
2
ln x ln(v 1) c
(v 1)
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
2
ln x(v 1) c
(v 1)
y 2
ln x( 1) c
x y
( 1)
2x x
ln( y x) c
yx
2x
ln( y x) c
yx
2x
c
yx
yxe 2x
x y
y x ke
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Exact D.E. of First-Order
If f(x,y) is differentiable, then there is a total
differential : f f
df dx dy
x y
f f
dx dy df 0
x y
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
f f
With M ( x, y) and N ( x, y )
x y
Then f ( x, y) k is a solution.
This D.E. is said to be exact.
But there is a test, in general, for a first
order D.E. when it is exact, although
sometimes it is not difficult to tell by
inspection if the D.E. is exact.
M 2 f N 2
f
and
y xy x yx
f
2
f
2
order is immaterial for
xy yx
continuous equations.
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
f
Then show that there is a function f; M
x
x
f ( x, y ) M ( x, y ) dx c( y )
a
f
x
M ( x, y ) dx c ( y )
y y a
M
(but and are interchangeable, since
x
is continuous)
f N
x
M N
dx c ( y ) Since ,
y
x
y a x
f
N ( x, y ) N (a, y) c ( y )
y
f
N ( x, y ) If N ( a , y ) c ( y )
y
y
Hence, c( y ) N
Tikrit(University
a, y )-Civil
dyEngineering
Department-Third Stage Eng. Anal.&
bNum. Meth. Dr. Adnan Jayed Zedan
So,
x y
f ( x, y ) M ( x, y ) dx N (a, y )dy
a b
Is a function
Note :
M
x
c ( y) N dx
a
y
M
x
f ( x, y ) M ( x, y )dx [ N dx]dy
a
y
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Corollary:
If M ( x, y )dx N ( x, y )dy 0 is exact ,
x y
Then,
a
M ( x , y ) dx N ( a , y
b
) dy c
Solution :
(1);
M N
3 and 3
y x
exact
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
x y
(2 x 3 y 2) dx (3a 4 y 1)dy c
a b
( x 3 yx 2 x) a (3ay 2 y y) c
2 x 2 y
b
( x 3 yx 2 x) (a 3 ya 2a)
2 2
(3ay 2 y 2 y ) (3ab 2b 2 b) c
x 3 yx 2 x 2 y y c a 2a 3ab 2b b
2 2 2 2
x 3 yx 2 x 2 y y k
2 2
Solution is x 2 y 3xy 2 x y k
2 2
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
(2);
x 3 yx 2 x N ( with no x)dy c
2
x 3 yx 2 x (4 y 1)dy c
2
x 3 yx 2 x 2 y y c
2 2
x 3 yx 2 x (4 y 1)dy c
2
x 3 yx 2 x 2 y y c
2 2
Solution :
M xy
y x y
2 2
N xy
and
x x y 2 2
exact
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
f ( x, y ) M ( x, y )dx c( y )
1
x( x y ) dx c( y )
2 2 2
3
1 2 2
( x y ) c( y ) 2 2
2 3
3
1 2
( x y ) c( y )
2 2
x y 2 1
1
y 2 x( x 2 y 2 ) dx 2
y x2 y2 2
y x y
2 2 2 1
x y 2
y x2 y2
y x y 2 2
x 2
y[ x y ] 2 2
y x2 y2
x 2 { y x 2 y 2 ( x 2 y 2 )}
y[ ]
y x2 y2
x y x y x y
2 2 2 2 2
y[ ]
y x2 y2
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
x y y 2 2
c ( y) y [
2
] ,
,
y x y 2 2
c ( y ) y 2
3
y
c( y ) k
3
3 3
1 2 y
(x y )
2 2
k
3 3
3
(x y ) y k
2 2 2 3
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
D.E. which is not exact can be made exact by
multiplying by an integrating factor. For example;
2 xy dx 3x y dy 0
3 2 2
x y 2
M 2 xy
2
y ( x y 2 ) 2
N 2 xy
and 2
x ( x y 2 ) 2
Tikrit University -Civil Engineering
exact Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Simpler ;
x y
dx ( 2 dx 2 dy ) 0
x y 2
x y 2
1 2 xdx 2 ydy
dx 0
2 x y
2 2
1
x ln ( x y ) c
2 2
2
x ln x y c
2 2
1
The factor is 2
( xy )
ydx xdy x y 2 3
2
2
dy 0
( xy ) ( xy )
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
ydx xdy
2
ydy 0, or
( xy )
d ( xy )
2
ydy 0
( xy )
2
1 y
c
xy 2
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Example : xdy ydx (4 x y )dy, 2 2
2
(4 2 )dy
x x
xdy ydx
2
dy
y
x (4 2 )
2
Tikrit University -Civil Engineering
x Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
y xdy ydx
u , du 2
x x
du
dy
(4 u )
2
du
dy
u 2
4[1 ( ) ]
2
1 1 u
tan yc
2 2
1 1 y
tan yc
Tikrit University -Civil Engineering
2 2x
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Notes on the Integratio n Factor :
1 2
(1) If Eq. contains xdx ydy d ( x y )
2
2
Try ( x 2 y 2 ) as a multiplier
y
(2) If Eq. contains xdy ydx d ( )
x
1 1
Try 2 or 2
as a multiplier
x y
(3) If Eq. contains xdy ydx d ( xy )
Try xy as a multiplier
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Notes :
f f
(1) d ( xy ) xdy ydx , f dx dy
x y
y xdy ydx x ydx xdy
( 2) d ( ) 2
, d( )
x x y y2
(3)d ( x 2 y 2 ) 2 xdx 2 ydy
y
1 xdy ydx
(4) d (tan ) 2
x x y2
1 y xdy ydx
(5) d (sin )
x x x2 y2
(6) d ( x m y n ) mx m 1 y n dx ny n 1 x m dy
2 xdx 2 ydy
(7) d [ln( x yDepartment-Third
2 2
Stage
)]University
Tikrit -Civil Engineering
x
2 Eng. Anal.&
y
Num. Meth. Dr. Adnan Jayed Zedan
2
Linear first-order equations
dy
F ( x) G ( x) y H ( x)
dx
Divide by F ( x) and rename the coefficien ts;
dy
P( x) y Q( x) ..............................(1)
dx
d dy d( x)
[ ( x ) y ] ( x ) y ........(2)
dx dx dx
P ( x ) dx
e is a factor
e P ( x ) dx dy
[ P ( x ) y ] Q ( x )e P ( x ) dx
dx
d P ( x ) dx P ( x ) dx
[e * y ] Q ( x )e
dx
Integrate the above equation ;
ye P ( x ) dx
Q ( x )e P ( x ) dx
dx c, and finally ;
ye
P ( x ) dx P ( x ) dx
P ( x ) dx
Q ( x )e dx c e ......(4)
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Steps to solve the linear first-order
equations:
1-Compute the integration factor e P ( x ) dx
which y 1 when x 0
Solution :
Divide the equation by 1 x 2
2 xy
dy dx dx
1 x 2
dy 2x
y 1
dx 1 x 2
2x
1 x 2 dx
( x) e
1
ln(1 x )
ln 1
e e
2
1 x 2
1 x 2
By int egrating ;
1 1
y dx c
1 x 2
1 x 2
1 1
y tan x c
1 x 2
y 1 x0
1 0 c(1 0)
c 1
1
y (1 x ) tan x (1 x )
2 2
y e x 2 y e dy
2 y 2 y
2( y e 2 ye 2e ) c
2 y y y
y
xy 2 y 4 y 4 ce
2 2
dx
is said to be a Bernoulli's equation. (P
and Q are functions of x (or
constants) and do not contain y)
dx
n
By dividing both sides by y
1 dy 1 n
n
Py Q
y dx
1 n dv 1 dy
v y (1 n) n
dx y dx
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
1 dv
Pv Q
1 n dx
dv
(1 n) Pv Q(1 n)
dx
If n 0 linear first order
If n 1 separable first order
Bernoulli ' s Eq. n 0 and 1
dx x
Solution :
dy y
y 3
is Ber . Eq.
dx x
1 dy 1
3
2 1
y dx xy
1 2 dy dv
Put 2 v 3
y y dx dx
1 dy 1 dv
3
Tikrit University -Civil Engineering
y dx 2 dx
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
1 dv v
1
2 dx x
dv 2
v 2 linear in v
dx x
dx
P ( x ) dx 2
2 ln x
( x) e e x
e
ln x 2 1
e 2
x
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
1
v 2 2e P ( x ) dx
dx c
x
1 2
v 2 2 dx c
x x
1 2
v 2 c
x x
1 2
2 2
c
y x xTikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
2
y 2 x cx 2 ,
,
1 xy (2 cx )
2
x y (2 cx ) 1
2
dx x 1
Solution :
dy y
e y
x 3
is Ber . Eq.
dx x 1
1 dy 1 1
e x
y dx x 1 y
3 2
1 2 dy dv
Put 2 v 3
y y dx dx
1 dy 1 dv
3 Tikrit University -Civil Engineering
y dx 2 dx
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
1 dv v
e x
2 dx x 1
dv 2
v 2e linear in v
x
dx x 1
dx
P ( x ) dx 2
2 ln( x 1)
( x) e e x 1
e
ln( x 1) 2
e ( x 1) 2
2 ( x 1) e dx c 2 x
v( x 1) 2 2[( x 1) 2 e x 2( x 1)e x 2e x ] c
v( x 1) 2( x 1) e 4( x 1)e 4e c
2 2 x x x
x x
4e 4e c
v 2e x
x 1 ( x 1) 2
( x 1) 2
x x
1 4e 4e c
2 2e
x
y x 1 ( x 1) 2
( x 1) 2
x2 x2 x2
e 2
v e 2
(e sin x)dx c
2
x2
e 2
v sin xdx c
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
x2
e 2
v cos x c
x2
1
e 2
cos x c
y
x2
1
e (cos x c) 2
y
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
When to 0 , Q 100 lb
100 200 c
c 100
t
Q 200 100 e 20
t 13.86 min
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Orthogonal Trajectori es
dy dy
Slope ( ) original ( ) orthogonal 1
dx dx
dy 1
( ) orthogonal
dx dy
( ) original
dx
Example : Given;
y2 4 c x
Find orthogonal trajectori es.
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Solution :
2
y
y 4cx c
2
4x
2 2
y y
2 yy 4c 4
4x x
y
y
2x
Slope of orthogonal :
2x
y Tikrit University -Civil Engineering
2
2
y
x c
2
dV Adt
2 gh from orifice Torricelli law
g accelarati on gravity
h ins tan tan eous height (head )
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
y
R
x
dy
r x
When t 0, y R
5 5
4 2
R R 0 c
2 2
3 5
5
14 2
c R
15 Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
3 5 5
4 2 14
y R y r
2 2 2
2g t R 2
3 5 15
No water ; y 0, t ??
5
14
0 r 2
2g t R 2
15
5
2
14 R
t
15 r 2 2 g Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Example: The rate at which a solid substance dissolves
varies directly as the amount of undissolved solid
presented in the solvent and as the difference between
the instantaneous concentration and the saturation
concentration of the substance. Twenty pounds of solute
is dumped into a tank containing 120 lb of solvent, and
at the end of 12 min. the concentration is observed to be
1 part in 30. Find the amount of solute in solution at any
time; t, if the saturation concentration is 1 part of solute
to 3 parts of solvent.
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
Solution :
If Q is the amount of the material in solution
at time; t ,
(20 Q) is the amount of undissolved material
at that time
Q
is the corresponding concentrat ion
120
dQ
undissolved material ( saturation concentrat ion )
dt
120 lb
Q
20 lb
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan
dQ 1 Q ,
k (20 Q) ( ) ,
dt 3 120
dQ k
(20 Q) (40 Q)
dt 120
dQ k
dt
(20 Q) (40 Q) 120
1 1 k
[ 20(20 Q) 20(40 Q) ] dQ 120 dt c
40 2Q
0.0098t
40(1 e )
Q
2 e 0.0098t
Tikrit University -Civil Engineering
Department-Third Stage Eng. Anal.&
Num. Meth. Dr. Adnan Jayed Zedan