engineering analysis and numerical...

125
ن الرحيم الرحم بسمEngineering Analysis and Numerical Methods Stage: Third Civil Engineering Department Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Upload: others

Post on 23-Apr-2020

19 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

بسم هللا الرحمن الرحيم

Engineering Analysis and Numerical Methods

Stage: Third

Civil Engineering Department

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 2: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Text Book Advanced Engineering

Mathematics By

C.R. Wylie

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 3: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

References

- Advanced Engineering Mathematics by Kreyszig - Differential Equation by Iyengar - Advanced Mathematics by Agarwal , et .al - Integral Calculus and Differential Equations by Chatterjee

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 4: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Syllabus

Ordinary Differential Equations of First order (16 hrs)

Linear Differential Equations with Constant Coefficient (12 hrs)

Simultaneous Linear Differential Equations (12 hrs)

Numerical Solutions of Ordinary Differential Equations (8 hrs)

Finite Differences (4 hrs)

Interpolation (4 hrs)

Numerical Differentiation (8 hrs)

Numerical Integration and Computer Application (4 hrs)

Fourier Series (16 hrs)

Partial Differential Equation and Boundary Value problems (12 hrs)

Numerical Solution for Partial Differential Equations (8 hrs)

Matrices and its Applications (16 hrs)

Tikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 5: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Ordinary Differential Equations of First Order **Definitions: Differential equation (DE) : An equation involves one or more derivatives or differentials. **Type: Ordinary or Partial: Ordinary derivatives occur when the dependent variable "y" is a function of one independent variable "x"; Partial derivatives occur when the dependent variable "y" is a function of two or more independent variables ; i.e. **Order : (highest derivative) **Degree: (power of highest derivative)

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 6: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example (1) Ordinary, Order 2, Degree 1 Ordinary, Order 3, Degree 2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 7: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example (2) Partial, Order 4, Degree 1 Partial, Order 2, Degree 1

Tikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 8: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Linear and non-Linear differential equations

If a differential equation is of first degree in the

dependent variable y and its derivatives (consequently ,

there cannot be any term involving the product of y and

its derivatives) then it is called a linear differential

equation otherwise it is non -linear .

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 9: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

OR A linear differential equation (of y = f(x) ) is of the form : (1)

Or

A non linear D.E. ,cannot be put in form (1) .

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 10: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Examples: linear non linear because ( non linear because (

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 11: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

A solution of D.E.; is a relation between the dependent and

independent variables, and it satisfies the equation identically:

is a general solution of:

The general solution of D.E. of nth order, is one contains n essential

constants (parameters). By essential we mean that the n constants

cannot be replaced by a smaller number.

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 12: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

For example, contains 3 constants and can be reduced Where d = a + b and e = b - c

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 13: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

However, there are equations such that; (which has only the single solution y=0) (which has no solutions at all)

Also, there are differential equations which posses solutions,

containing more essential parameters than the order of the

equation.

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 14: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

C1=1

C1=0.5

C1=0.25

C1=-1

C1=-.5

C1=-.25

C1=1

C1=0.5

C1=0.25

C1=-1

C1=-.5

C1=-.25

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 15: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Both can be pieced together to give a D.E.

x

yxcy

x

yc

xofvaluesallforx

yy

22,

2

121

x

yxcy

x

yc

22, 222

22cxyfor

x

yyAlso

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 16: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 17: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Any solution found from the general solution by assigning particular

values to the constants is called a particular solution.

general solution

particular solution

Solution which cannot be obtained from any general solution by

assigning specific values to the constants are called singular solution.

xbxay sincos

01 banda

xy cos

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 18: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

If a general solution has the property that every solution of the

differential equation can be obtained from it by assigning

suitable values to its arbitrary constants, it is said to be a

complete solution.

Example: Show is a solution of

for all values of a and b.

Solution:

xx beaey 2

02 yyy

)(2

)2()4(2

2

22

xx

xxxx

beae

beaebeaeyyy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 19: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

beeeaeee xxxxxx )224()2( 222

000 ba

o.k.

Note: Satisfies

xx beyoraey 2

21

02 yyy

02

111 yyy

02

222 yyyTikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 20: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

But; xx beaeyyy 2

21

Is not solution of

02 yyy

02 yyy

02 yyy

Since

Is not linear, while;

Is linear

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 21: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Given (1)

Find second-order differential equation.

Solution:

If the given function has n constants, differentiate nth

times and then eliminate the constants.

(2)

(3)

By adding and subtract equations (1) and (3)

xbaey x cos

xbaey x sin

xbaey x cos

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 22: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

xaeyy 2xe

yya

2

xbyy cos2x

yyb

cos2

Substitute a and b into Eq. (2)

xx

yye

e

yyy x

xsin

cos22

xyxyyyy tantan2

0)tan1(2)tan1( yxyyx

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 23: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0cos yxbaex

0sin yxbaex

0cos yxbaex

(1) (2) (3)

0

cos1

sin1

cos1

yx

yx

yx

0)sincos(

)coscos()cossin(

xyxy

xyxyxyxy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 24: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0)sin(coscos2)sin(cos xxyxyxxy

Divide by cos x getting:

0tan2tan xyyyxyy

0)tan1(2)tan1( yxyyx

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 25: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

This is only second-order D.E., but there are other D.E.

Differentiate Eq. (3) twice more,

and since it is a 4th order D.E. we expect the

solution to contain 4 constants and we can

show that:

Satisfied for all values of a, b, c and d.

xbaey x cos

xbaey xiv cos

yyiv

xdcexbaey xx sincos

yyiv Tikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 26: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Separable First-Order D.E.

Often a first order D.E. can be reduce to

(1)

And such an equation is said to be separable;

The general solution is:

(2)

Other forms:

(3)

(4)

dyygdxxf )()(

Cdyygdxxf )()(

dyygxFdxyGxf )()()()(

)()( yNxMdx

dy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 27: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Solution of Eq. (3) is: And the solution of Eq. (4) is:

CdyyG

ygdx

xF

xf )(

)(

)(

)(

CdxxMyN

dy )(

)(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 28: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solve Solution:

1 yyx

xy

y 1

1

x

dx

y

dy

1

)ln()ln(

)ln()1ln(

ax

cxy

xay 1Tikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 29: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Particular solution curve means one-member

For all values of a straight lines pass through (0,-1)

b.) Find the orthogonal trajectories curves.

Slope of straight line

Or

Hence, the slope of the orthogonal trajectories

aydx

dy

x

yy

1

1

y

xy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 30: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

1

y

xy

xdxdyy )1(

cx

yy

22

22

cyyx 2222

12)12( 22 cyyx

222 )1( Ryx

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 31: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x

y

x

yR

P(x,y)

Circlex + y = R2 2 2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 32: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x

y

x

y

-

x + y = R2 2 2 -

hk

- -

(x-k) +(y-h) = R2 2 2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 33: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x

y

y+1=ax

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 34: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solve

)3(2)2( ydyxdxdydxxy

Solution:

0)2()62( dyyxydxxxy

0)2()3(2 dyxydxyx

032

2

dy

y

ydx

x

x

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 35: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0)3

31()

2

42(

dy

ydx

x

cyyxx )3ln(3)2ln(42

yxcyxc eeeyx 2234 )3()2(

yxkeyx 234 )3()2(

yxcyx 2)3()2(ln 34

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 36: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solve

Solution:

0)1()4( 22 dyxdxy

041 22

y

dy

x

dx

1

11

2tan

2

1tan c

yx

1

11 22

tantan2 cy

x

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 37: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

In simpler form:

1

11 2tan)2

tantan2tan( cy

x

21

1

tan2tan2

1

2tan2tan

c

xy

yx

C

x

xy

y

x

x

2

2

1

2

21

21

2

Cxyx

xyx

2)1(2

)1(42

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 38: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solve

Solution: Best first step:

ydydxyxydydx 2

dyxydxy )1()1( 2

dyy

y

x

dx211

cyx )1ln(2

1)1ln( 2

Cyx )1ln()1ln( 22

Cy

x

)1(

)1(ln

2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 39: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

2

2

2

)1(

)1(ke

y

x C

2keC

is necessarily +ve

)1()1( 222 ykx

)1()1( 2

2

2

yk

x

2k

)1()1( 2

2

yx

0

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 40: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

The general solution defines the family of conics:

1)1( 2

2

yx

(a) general solution

If =1 , 1)1( 22 yx , the solution is a circle

If >0 , the solutions are ellipse

If <0 , the solutions are hyperbolas

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 41: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Particular solution curve which passes through point )5

13,

5

7(

1)5

13(

)15

7(

2

2

=-1

Hence, particular solution is:

(b) 22 )1(1 xy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 42: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x

y

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 43: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

The upper branch of any curve of Eq. (a) for x>0, can be associated

with the upper branch of curve Eq. (b) for x≤1. In the D.E. we divided

by (1-x) and (1-y2), hence x = 1, y =±1 were implicitly ruled out.

Had we desired the particular solution through (1,yo), (xo,1) or (xo,-1),

we could not have found it from the general solution, even if it is

existed.

So we return to the original D.E. and search for the solution by some

methods other than separating the variables.

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 44: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x=1 can be calculated from

by putting =0, So y = 1, y = -1 are singular solutions. General, Particular,

D.E.,

)1()1( 22 yx

1)1( 2

2

yx

0

,

22 )1(1 xy

1x)1()1( 2y

ydy

x

dx

1y

,

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 45: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x

y

y=1

y=-1

x=1

(x ,1)o

(x ,-1)o

(1, y )o

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 46: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Homogeneous First-Order D.E.

If all terms in M(x,y) and N(x,y) in:

are all of the same degree in x and y then either of the substitution of will reduce the D.E. to a separable equation. But, generally if the substitution of

dyyxNdxyxM ),(),(

yyandxx

vyxoruxy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 47: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

will convert and

, then M(x,y) and N(x,y)

are called homogeneous function of n

degree.

The D.E. is said

homogeneous when M(x,y) and N(x,y) are

homogeneous functions of the same degree.

),(int),( yxMoyxM n

),(int),( yxNoyxN n

dyyxNdxyxM ),(),(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 48: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solution: Substitute

?hom)ln(ln),( 22 ogeneousyeyyxxyxFIs y

x

yyandxx

y

x

yeyyxxyxF

)ln(ln),( 2222

y

x

yeyyxx )]ln(lnln[(ln 22

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 49: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

])ln(ln[ 22 y

x

yeyyxx

),( yxF

Hence, homogeneous, degree (1) OR Subst. either or

vxy )(),( vFxyxF

vyx )(),( vFyyxF

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 50: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solve

Solution:

Is not separable

Is homogeneous of degree (2)

M and N both are of degree (2)

Substitute

02)3( 22 xydydxyx

vxy xdvvdxdy

0)(2)3( 222 xdvvdxvxxdxxvx

0)(2)31( 222 xdvvdxvxdxvxTikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 51: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0223 22 vxdvdxvdxvdx

02)1( 2 vxdvdxv

01

212

dvv

vdx

x

cvx )1ln(ln 2

cv

x

1ln

2Tikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 52: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cev

x

12

k

x

y

x

1

2

k

x

xy

x

2

22

kxy

x

22

3

)( 223 xykx Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 53: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solve

Solution: Not separable, but homogeneous. Substitute

Easier rather than

0)( 222 dxtxtxdtx

vxt xdvvdxdt

vtx

0)()( 22222 dxxvvxxxdvvdxx

02 dxvvdxdxxdvvdxTikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 54: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0)1( 2 dxvxdv

01 2

x

dx

v

dv

cxv lntan 1

vcx 1tanln

vcex1tan

vceex1tan x

t

ekx1tan

Tikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 55: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solve

Solution: Homogeneous. Substitute

x

y

xeydx

dyx

vxy xdvvdxdy

dxxevxxdvvdxx x

vx

)()(

0 dxevdxxdvvdx v

0 dxexdv v

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 56: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0ve

dv

x

dx

0 dvex

dx v

cex v ln

cex x

y

lnTikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 57: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: Solve

Solution: Homogeneous Substitute

0)3()( dyyxdxyx

vxy xdvvdxdy

0))(3()( xdvvdxvxxdxvxx

0))(3()1( xdvvdxvdxv

0)33()1( 2 vxdvdxvxdvvdxdxv

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 58: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0)3()31( 2 dvvxxdxvvv

0)3()12( 2 dvvxdxvv

012

32

dv

vv

v

x

dx

0)1(

2

1 2

dv

vv

dv

x

dx

cv

vx

)1(

2)1ln(ln

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 59: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cv

vx

)1(

2)1(ln

c

x

yx

yx

)1(

2)1(ln

cxy

xxy

2)ln(

xy

xcxy

2)ln(

xy

xc

exy

2

yx

x

kexy

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 60: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Exact D.E. of First-Order

If f(x,y) is differentiable, then there is a total

differential :

Conversely if M(x,y) dx+N(x,y) dy=0 which can be

written in the form;

dyy

fdx

x

fdf

0

dfdy

y

fdx

x

f

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 61: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

With and

Then 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.

x

fyxM

),(

y

fyxN

),(

kyxf ),(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 62: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Theorem

If and are continuous, then

is exact if and only if

y

M

x

N

0),(),( dyyxNdxyxM

x

N

y

M

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 63: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Proof:

Assume equation is exact, so there is a

function f, such that and

and

order is immaterial for

continuous equations.

x

fM

y

fN

yx

f

y

M

2

xy

f

x

N

2

xy

f

yx

f

22

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 64: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Then show that there is a function f;

(but and are interchangeable, since

is continuous)

x

fM

x

a

ycdxyxMyxf )(),(),(

x

a

ycdxyxMyy

f)(),(

x

M

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 65: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x

a

ycdxy

M

y

f)(

x

a

ycdxx

N

y

f)(

x

N

y

MSince

,

)(),(),( ycyaNyxNy

f

),( yxNy

f

)(),( ycyaNIf

y

b

dyyaNycHence ),()(, Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 66: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

functionaIs

dyyaNdxyxMyxf

So

x

a

y

b

),(),(),(

,

dydxy

MNdxyxMyxf

dxy

MNyc

Note

x

a

x

a

][),(),(

)(

:

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 67: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x

a

y

b

cdyyaNdxyxMThen

exactisdyyxNdxyxMIf

),(),(,

,0),(),(

Corollary:

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 68: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0)143()232(;

:

dyyxdxyxSolve

Example

exact

x

Nand

y

M

Solution

33

);1(

:

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 69: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

x

a

y

b

cdyyadxyx )143()232(

cyyayxyxxy

b

x

a )23()23( 22

cbbabyyay

ayaaxyxx

)23()23(

)23()23(

22

22

bbabaacyyxyxx 2222 232223

kyyxyxx 22 223

kyxxyyxisSolution 232 22

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 70: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cyyxyxx

cdyyxyxx

cdyxnowithNxyxx

22

2

2

223

)14(23

)(23

);2(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 71: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cyyxyxx

cdyyxyxx

cdydxyxxyxx

22

2

2

223

)14(23

]3)143[(23

);3(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 72: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0;

:

22

222

dy

yxy

yxdxyxxSolve

Example

exact

yx

xy

x

Nand

yx

xy

y

M

Solution

22

22

:

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 73: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

)()(3

1

)(3

2)(

2

1

)()(

)(),(),(

2

3

22

2

3

22

2

1

22

ycyx

ycyx

ycdxyxx

ycdxyxMyxf

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 74: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

dxyxxyyxy

yx

dxyx

xy

yxy

yx

dxyx

xy

yxy

yx

dxy

MNyc

2

1

22

22

2

2222

2

2222

2

)(22

1

2

2

1

)(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 75: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

][

])}({

[

][

1

2)(

2

1)(

22

22222

22

22222

22

22

2

22

22

2

2

1

22

22

2

yxy

yxyxyxy

yxy

yxyxyxy

yxyxy

xy

yxyyxy

yx

yxyyxy

yxyc

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 76: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

,

,

kyyx

ky

yx

ky

yc

yyc

yxy

yyxyyc

32

3

22

3

2

3

22

3

2

22

22

2

)(

3)(

3

1

3)(

)(

][)(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 77: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

D.E. which is not exact can be made exact by

multiplying by an integrating factor. For example;

is exact, and if it simplified by dividing by (xy2), the

equation :

is not exact and can be restored to its original form

by multiplying it by factor (xy2). Sometimes the

integrating factor can be found by inspection.

032 223 dyyxdxxy

032 xdyydx

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 78: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

.,

1,0)(

:

22

22

solveandfactorais

yxshowydydxxyx

Example

exact

yx

xy

x

Nand

yx

xy

y

M

dyyx

ydx

yx

x

Solution

222

222

2222

)(

2

)(

2

0)1(

:

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 79: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cyxx

cyxx

yx

ydyxdxdx

dyyx

ydx

yx

xdx

Simpler

22

22

22

2222

ln

)(ln2

1

022

2

1

0)(

;

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 80: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

.,

,0)(: 32

solveandfactorthefind

dyxyxydxExample

0)()(

)(

1

0

2

32

2

2

32

dyxy

yx

xy

xdyydx

xyisfactorThe

dyyxxdyydx

Solution

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 81: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cy

xy

ydyxy

xyd

orydyxy

xdyydx

2

1

0)(

)(

,0)(

2

2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 82: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

.,int

,)4(: 22

solveandfactoregrationthefind

dyyxydxxdyExample

dy

x

yx

ydxxdy

dyx

y

x

ydxxdy

xisfactorThe

Solution

)4(

)4(

1

2

22

2

2

2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 83: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

2,

x

ydxxdydu

x

yu

cyx

y

cyu

dyu

du

dyu

du

2tan

2

1

2tan

2

1

])2

(1[4

)4(

1

1

2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 84: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

multiplieraasxyTry

xydydxxdycontainsEqIf

multiplieraasy

orx

Try

x

ydydxxdycontainsEqIf

multiplieraasyxTry

yxdydyxdxcontainsEqIf

FactornIntegratiotheonNotes

)(.)3(

11

)(.)2(

)(

)(2

1.)1(

:

22

22

22

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 85: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

22

22

11

22

1

22

1

22

22

22)][ln()7(

)()6(

)(sin)5(

)(tan)4(

22)()3(

)(,)()2(

,)()1(

:

yx

ydyxdxyxd

dyxnydxymxyxd

yxx

ydxxdy

x

yd

yx

ydxxdy

x

yd

ydyxdxyxd

y

xdyydx

y

xd

x

ydxxdy

x

yd

dyy

fdx

x

ffydxxdyxyd

Notes

mnnmnm

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 86: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Linear first-order equations

)2........()(

)(])([

)1(..............................)()(

;)(

)()()(

ydx

xd

dx

dyxyx

dx

d

xQyxPdx

dy

tscoefficientherenameandxFbyDivide

xHyxGdx

dyxF

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 87: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

.

;)()()(

)3.....()()()()()(

);()1(.

EqseparablesimpleaisThis

xPxdx

xdIf

xQxyxPxdx

dyx

xbyEqMultiply

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 88: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

factoraise

edxxPx

dxxPx

dxxPx

xd

dxxP

dxxP

)(

)(])(exp[)(

)()(ln

)()(

)(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 89: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

)4......()(

;,)(

;

)(]*[

)(])([

;)1(.

)()()(

)()(

)()(

)()(

)(

dxxPdxxPdxxP

dxxPdxxP

dxxPdxxP

dxxPdxxP

dxxP

ecdxexQey

finallyandcdxexQye

equationabovetheIntegrate

exQyedx

d

exQyxPdx

dye

efactorthebyEqMultiply

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 90: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Steps to solve the linear first-order

equations:

1-Compute the integration factor

2-Multiply the given equation by this factor.

3-Integrate both sides of the resulting

equation.

4-Solve the integrated equation for y.

dxxP

e)(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 91: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

01

2))(1(

;:

2

xwhenywhich

xydxdxdyx

SolveExample

dxx

xydxdy

xbyequationtheDivide

Solution

2

2

1

2

1

:

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 92: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

21

1ln

)1ln(

1

2

2

2

1

1

)(

11

2

1

21

22

2

xee

ex

yx

x

dx

dy

x

xy

dx

dy

xx

dxx

x

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 93: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cxyx

cdxx

yx

egratingBy

xy

x

x

dx

dy

x

1

2

22

2222

tan1

1

1

1

1

1

;int

1

1

)1(

2

1

1

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 94: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

)1(tan)1(

1

)01(01

01

)1(tan)1(

212

212

xxxy

c

c

xy

xcxxy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 95: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

0)22(

;:

dyyxxyydx

SolveExample

22

2)2(

22

022

:

xy

y

dy

dx

yxydy

dxy

yxxydy

dxy

ydyxdyxydyydx

Solution

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 96: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

y

yyy

yy

yyydy

y

y

ceyyxy

ceyeey

dyeyxey

yeeey

442

)22(2

2

)(

22

2

22

2ln2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 97: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

The Bernoulli's Equation:

D.E. of the form

is said to be a Bernoulli's equation. (P

and Q are functions of x (or

constants) and do not contain y)

nyQPydx

dy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 98: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

dx

dy

yn

dx

dvyv

QPydx

dy

y

ybysidesbothdividingBy

yQPydx

dy

n

n

n

n

n

n

1)1(

1

1

1

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 99: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

10.'

1

0

)1()1(

1

1

andnEqsBernoulli

orderfirstseparablenIf

orderfirstlinearnIf

nQPvndx

dv

QPvdx

dv

n

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 100: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

3;: yx

y

dx

dySolveExample

dx

dv

dx

dy

y

dx

dv

dx

dy

yv

yPut

xydx

dy

y

EqBerisyx

y

dx

dy

Solution

2

11

21

111

..

:

3

32

23

3

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 101: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

2

ln

ln22)(

1

)(

22

12

1

2

xe

eeex

vinlinearvxdx

dv

x

v

dx

dv

x

xx

dxdxxP

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 102: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cxxy

cxx

v

cdxxx

v

cdxex

vdxxP

21

21

21

21

22

2

22

)(

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 103: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

,

,

1)2(

)2(1

2

2

2

22

cxyx

cxxy

cxxy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 104: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

3

1;: ye

x

y

dx

dySolveExample x

dx

dv

dx

dy

y

dx

dv

dx

dy

yv

yPut

eyxdx

dy

y

EqBerisyex

y

dx

dy

Solution

x

x

2

11

21

1

1

11

..1

:

3

32

23

3

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 105: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

2)1ln(

)1ln(212)(

)1(

)(

21

2

12

1

2

xe

eeex

vinlinearevxdx

dv

ex

v

dx

dv

x

xx

dxdxxP

x

x

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 106: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

222

22

22

22

2

22

)1()1(

4

1

42

1

)1()1(

4

1

42

4)1(4)1(2)1(

]2)1(2)1[(2)1(

)1(2

)1(2)1(

x

c

x

e

x

ee

y

x

c

x

e

x

eev

ceexexxv

ceexexxv

cdxex

cdxxexv

xxx

xxx

xxx

xxx

x

x

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 107: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

xeyxydx

dySolveExample

x

sin;: 22

2

dx

dv

dx

dy

y

dx

dv

dx

dy

yv

yPut

xey

xdx

dy

y

EqBerisxeyxydx

dy

Solution

x

x

2

2

22

22

1

11

sin11

..sin

:

2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 108: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cxdxve

cdxxeeve

eex

vwithEDlinearxexvdx

dv

xexvdx

dv

x

xxx

xxdx

x

x

sin

)sin(

)(

..sin

sin

2

222

2

2

2

2

222

2

2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 109: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

)(cos1

cos1

cos

2

2

2

2

2

2

cxey

cxy

e

cxve

x

x

x

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 110: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

min86.13

100200150

;150

100200

100

200100

100,0

20

20

t

e

lbQWhen

eQ

c

c

lbQtWhen

t

t

o

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 111: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

original

orthogonal

orthogonaloriginal

dx

dydx

dy

dx

dy

dx

dySlope

esTrajectoriOrthogonal

)(

1)(

1)()(

.

4

;:

2

estrajectoriorthogonalFind

xcy

GivenExample

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 112: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

y

xy

orthogonalofSlope

x

yy

x

y

x

ycyy

x

yccxy

Solution

2

:

2

4442

44

:

22

22

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 113: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

cxy

cxy

xdxydy

y

x

dx

dy

y

xy

22

22

2

2

2

2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 114: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

Example: A hemispherical tank of radius; R,

is initially filled with water. At the bottom

of the tank there is a hole or radius; r,

through which water drains under the

influence of gravity. Find the depth of the

water at any time; t, and determine how

long it will be taken the tank to drain

completely.

Tikrit University -Civil Engineering

Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 115: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

)(tantan

2

,int

;

:

2

2

headheighteousinsh

gravityonaccelaratig

lawTorricelliorificefromgh

AdtdV

rAanddtwaterof

streamdtervalwithwaterofVolume

dyxdV

waterofvolumetheinDecrease

Solution

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 116: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

y

x

R

y

xdy

r

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 117: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

dtgrdyyRy

dtgyrdyyyR

dtgyrdyx

EqsEquating

dtgyrdV

dyxdV

2)2(

2)2(

2

)2(&)1(.

)2.......(..........2

)1.(....................

22

3

2

1

22

22

2

2

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 118: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

2

5

2

5

2

5

22

5

2

3

15

14

05

2

3

4

,0

25

2

3

4

Rc

cRR

RytWhen

ctgryRy

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 119: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

gr

Rt

Rtgr

tywaterNo

RtgryRy

215

14

15

1420

??,0;

15

142

5

2

3

4

2

2

5

2

5

2

2

5

22

5

2

3

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 120: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

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

Page 121: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

)(

120

)20(

,;

:

ionconcentratsaturationmaterialdundissolvedt

dQ

ionconcentratingcorrespondtheisQ

timethatat

materialdundissolveofamounttheisQ

ttimeat

solutioninmaterialtheofamounttheisQIf

Solution

120 lb

20 lb

Q

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 122: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

,

,

cdtk

dQQQ

dtk

QQ

dQ

QQk

dt

dQ

QQk

dt

dQ

120]

)40(20

1

)20(20

1[

120)40()20(

)40()20(120

)1203

1()20(

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 123: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

ctk

Q

Q

ctk

QQ

cdtk

dQQQ

cdtk

dQQQ

620

40ln

6)40ln()20ln(

620

1]

)40(

1

)20(

1[

20

1

120]

)40(20

1

)20(20

1[

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 124: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

tk

Q

Q

ortk

Q

Q

cck

QtWhen

ctk

Q

Q

6)20(2

40ln

,2ln620

40ln

2ln)0(6020

040ln

0,0

620

40ln

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan

Page 125: Engineering Analysis and Numerical Methodsced.ceng.tu.edu.iq/images/lectures/Numerical-Methods/...ميحرلا نمحرلا الله مسب Engineering Analysis and Numerical Methods

t

t

t

e

eQ

eQ

Q

tQ

Q

kk

QQ

concetAfter

tk

Q

Q

0098.0

0098.0

0098.0

2

)1(40

240

40

0098.0)20(2

40ln

05889.0)12(6)420(2

440ln

412030

1..min12

6)20(2

40ln

Tikrit University -Civil Engineering Department-Third Stage Eng. Anal.& Num. Meth. Dr. Adnan Jayed Zedan