0% found this document useful (0 votes)
306 views4 pages

Sheet (3) - Numerical Solutions For Differential Equations

1. The document discusses solving various systems of ordinary differential equations using numerical methods like Euler and midpoint. 2. The first and fourth questions are solved using Euler's method to find the solutions to initial value problems for systems of first-order differential equations. 3. The second and fifth questions will be explained in the next section and involve using midpoint method to solve second-order differential equations by reducing them to systems of first-order equations. 4. The third and sixth questions will be solved by the student and submitted in an organized report by the assigned deadline, or no grade will be given regardless of any excuses.

Uploaded by

Ayman Esa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
306 views4 pages

Sheet (3) - Numerical Solutions For Differential Equations

1. The document discusses solving various systems of ordinary differential equations using numerical methods like Euler and midpoint. 2. The first and fourth questions are solved using Euler's method to find the solutions to initial value problems for systems of first-order differential equations. 3. The second and fifth questions will be explained in the next section and involve using midpoint method to solve second-order differential equations by reducing them to systems of first-order equations. 4. The third and sixth questions will be solved by the student and submitted in an organized report by the assigned deadline, or no grade will be given regardless of any excuses.

Uploaded by

Ayman Esa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Sheet 3

System of First Order and Higher Order Ordinary Differential Equations

1. Use the Euler method to solve

= 2 + 5

2
=
2
over the range x = 0 to 1 using a step size of 0.5 with y(0) = 2 and z(0)=4.

2- Solve the following 2nd order differential equation by Euler method.


2 dq
2+ + = 5 , q(0) = 0 and (0) = 0
dt
where L=1, C= 0.25, R= 0.5 for t = 0 to 0.2 with a step of 0.1

3. Solve the following 2nd order differential equation by Euler method. .

2
+ 5 + +7 =0
2
dx
x(0) = 6 and (0) = 1.5
dt
Find y(1) consider t=0.5

4. Using midpoint method solve the following initial-value problems for the system of first-
order ordinary differential equations for 0 x 1 and h=0.5
1
= 2 31 , y1 0 = 1

2
= 32 + 2 , y2(0) = 2

5- Using midpoint method solve the following initial-value problems for the second-order
ordinary differential equation
2
= + 2 , y(0) = 1, (0) = 2,
2
use step size of 0.1 to find y(0.2).

6. Using midpoint method solve the following initial-value problems for the second-order
ordinary differential equations for 0 x 1, h = 0.5, y(0) = 0.5 and y(0) = 0.5. by
reducing the equations to a system of first-order ordinary differential equations
2
= 3 + 1,
2

- 1
- 2
- 3
- 4
1
1 = 2 = ,
1 , 1 , 2 = 21 + 5
1 2 2
2 , 1 , 2 =
2
0 = 0
1 0 = 2
2 0 = 4
= 1
= 0.5

1 1 , 2 1
1 = 0 + = 0 + 0.5 = 0.5
1 1 = 1 0 + 1 0 , 1 0 , 2 0 = 2 + 0.5 1 0, 2, 4 = 2.5
2 1 = 2 0 + 2 0 , 1 0 , 2 0 = 4 + 0.5 2 0, 2, 4 = 4

1 2 , 2 2
2 = 1 + = 0.5 + 0.5 = 1
1 2 = 1 1 + 1 1 , 1 1 , 2 1 = 2.5 + 0.5 1 0.5, 2.5, 4 = 1.516
2 2 = 2 1 + 2 1 , 1 1 , 2 1 = 4 + 0.5 2 0.5, 2.500, 4 = 14

i x 1 2

0 0 2 4
1 0.5 2.5 -4
2 1 1.516 -14
4-
2
= + 2 , y(0) = 1, (0) = 2,
2
Rearrange equation
2
2 = 0
2
Solution
=2
0 , 1 = 12
1 , 1 =
2 , 1 = 1

= +1 = 1 2 1

1
= 2 1 (0) = 1

2 1
= 0 , 1 + 1 , 1 2
2 , 1
2 1
= 12 2 = 12 + 2 , 2 0 = 2
1

1 , 1 , 2 = 2 1
2 , 1 , 2 = 1 2
0 = 0
1 0 = 1
2 0 = 2
= 0.2
= 0.1

1 1 , 2 1
1 = 0 + = 0 + 0.1 = 0.1
0.1
= 0 + =0+ = 0.05
2 2
0.1
1 = 1 0 + 1 0 , 1 0 , 2 0 =1+ 0, 1, 2 = 1.1
2 2 1
0.1
2 = 2 0 + 2 0 , 1 0 , 2 0 =2+ 0, 1, 2 = 2.05
2 2 2
1 1 = 1 0 + 1 , 1 , 2 = 1 + 0.1 1 0.05, 1.100, 2.050 = 1.205
2 1 = 2 0 + 2 , 1 , 2 = 2 + 0.1 2 0.05, 1.100, 2.050 = 2.131

1 2 , 2 2
2 = 1 + = 0.1 + 0.1 = 0.2
0.1
= 1 + = 0.1 + = 0.15
2 2
0.1
1 = 1 1 + 1 1 , 1 1 , 2 1 = 1.205 + 0.1, 1.205,2.131 = 1.312
2 2 1
0.1
2 = 2 1 + 1 , 1 1 , 2 1 = 2.131 + 0.1, 1.205,2.131 = 2.215
2 2 2 2
1 2 = 1 1 + 1 , 1 , 2 = 1.205 + 0.1 1 0.15, 1.312, 2.215 = 1.426
2 2 = 2 1 + 2 , 1 , 2 = 2.131 + 0.1 2 0.15, 1.312, 2.215 = 2.336

i x y dy/dx
0 0 1 2
1 0.1 1.205 2.131
2 0.2 1.426 2.336

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy