0% found this document useful (0 votes)
103 views

I Xi Yi F (Xi, Yi) Yi+1: Ordinary Differential Equation - 1St Order

The document discusses solving ordinary differential equations numerically using Euler's method. It presents the solution of two 1st order and one 2nd order differential equations by taking progressively smaller step sizes (h) in the numerical integration. The solutions show the values of y at each step point converging as the step size decreases, approximating the true solution of the differential equation.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
103 views

I Xi Yi F (Xi, Yi) Yi+1: Ordinary Differential Equation - 1St Order

The document discusses solving ordinary differential equations numerically using Euler's method. It presents the solution of two 1st order and one 2nd order differential equations by taking progressively smaller step sizes (h) in the numerical integration. The solutions show the values of y at each step point converging as the step size decreases, approximating the true solution of the differential equation.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6

ORDINARY DIFFERENTIAL EQUATION - 1st ORDER

𝐝𝐲/𝐝𝐱=(𝟐𝐱𝐜𝐨𝐬𝐲+𝟑𝐱^𝟐 𝐲)/(𝐱^𝟑−𝐱^𝟐
𝐬𝐢𝐧𝐲−𝐲) , 𝒚(𝟎)=𝟐 ,𝒚(𝟑)=?

h= 1

i xi yi f(xi,yi) yi+1
0 0 2 0 2
1 1 2 -2.706601 -0.706601
2 2 -0.706601 -0.48099 -1.187591
3 3 -1.187591
ORDINARY DIFFERENTIAL EQUATION - 1st ORDER
𝐝𝐲/𝐝𝐱=(𝟐𝐱𝐜𝐨𝐬𝐲+𝟑𝐱^𝟐 𝐲)/(𝐱^𝟑−𝐱^𝟐
𝐬𝐢𝐧𝐲−𝐲) , 𝒚(𝟎)=𝟐 ,𝒚(𝟑)=?

h= 0.5

i xi yi f(xi,yi) yi+1
0 0 2 0 2
1 0.5 2 -0.51555 1.742225
2 1 1.742225 -2.827962 0.328244
3 1.5 0.328244 2.177772 1.41713
4 2 1.41713 6.698776 4.766518
5 2.5 4.766518 5.24247 7.387753
6 3 7.387753
ORDINARY DIFFERENTIAL EQUATION - 1st ORDER
𝐝𝐲/𝐝𝐱=(𝟐𝐱𝐜𝐨𝐬𝐲+𝟑𝐱^𝟐 𝐲)/(𝐱^𝟑−𝐱^𝟐
𝐬𝐢𝐧𝐲−𝐲) , 𝒚(𝟎)=𝟐 ,𝒚(𝟑)=?

h= 0.25

i xi yi f(xi,yi) yi+1
0 0 2 0 2
1 0.25 2 -0.081778 1.979555
2 0.5 1.979555 -0.521697 1.849131
3 0.75 1.849131 -1.376081 1.505111
4 1 1.505111 -3.09165 0.732198
5 1.25 0.732198 29.99923 8.232006
6 1.5 8.232006 -7.837887 6.272534
7 1.75 6.272534 -69.42178 -11.08291
8 2 -11.08291 -8.785578 -13.27931
9 2.25 -13.27931 -7.086051 -15.05082
10 2.5 -15.05082 -8.296056 -17.12483
11 2.75 -17.12483 -12.78754 -20.32172
12 3 -20.32172 -9.739077
ORDINARY DIFFERENTIAL EQUATION - 2ND ORDER
𝐲" − 𝟑𝐲′ + 𝐲 = 𝐞^𝐱/𝐱, 𝒚(𝟏)=𝟎, 𝒚′(𝟏)=𝟏, 𝒚(𝟏𝟎)=?

h= 1

i xi yi zi fz(xi,yi,zi)
0 1 0 1 5.72
1 2 1.00 6.72 22.85
2 3 7.72 29.57 87.68
3 4 37.29 117.25 328.11
4 5 154.53 445.35 1,211.21
5 6 599.89 1,656.56 4,437.04
6 7 2,256.45 6,093.61 16,181.03
7 8 8,350.06 22,274.64 58,846.47
8 9 30,624.69 81,121.11 213,638.98
9 10 111,745.80 294,760.09
ORDINARY DIFFERENTIAL EQUATION - 2ND ORDER
𝐲" − 𝟑𝐲′ + 𝐲 = 𝐞^𝐱/𝐱, 𝒚(𝟏)=𝟎, 𝒚′(𝟏)=𝟏, 𝒚(𝟏𝟎)=?

h= 0.5

i xi yi zi fz(xi,yi,zi)
0 1 0 1 5.72
1 1.5 0.50 3.86 14.07
2 2 2.43 10.89 33.94
3 2.5 7.88 27.86 80.58
4 3 21.81 68.15 189.35
5 3.5 55.88 162.83 442.06
6 4 137.30 383.86 1,027.93
7 4.5 329.23 897.82 2,384.25
8 5 778.14 2,089.95 5,521.39
9 5.5 1,823.11 4,850.64 12,773.30
10 6 4,248.43 11,237.29 29,530.69
11 6.5 9,867.08 26,002.64 68,243.16
12 7 22,868.40 60,124.22 157,660.92
13 7.5 52,930.51 138,954.68 364,174.61
14 8 122,407.85 321,041.99 841,090.73
15 8.5 282,928.85 741,587.36 1,942,411.43
16 9 653,722.53 1,712,793.07 4,485,557.03
17 9.5 1,510,119.06 3,955,571.59 10,358,001.99
18 10 3,487,904.86 9,134,572.59
ORDINARY DIFFERENTIAL EQUATION - 2ND ORDER
𝐲" − 𝟑𝐲′ + 𝐲 = 𝐞^𝐱/𝐱, 𝒚(𝟏)=𝟎, 𝒚′(𝟏)=𝟏, 𝒚(𝟏𝟎)=?

h= 0.25

i xi yi zi fz(xi,yi,zi)
0 1 0 1 5.72
1 1.25 0.25 2.43 9.83
2 1.5 0.86 4.89 16.79
3 1.75 2.08 9.09 28.47
4 2 4.35 16.20 47.95
5 2.25 8.40 28.19 80.38
6 2.5 15.45 48.28 134.28
7 2.75 27.52 81.85 223.73
8 3 47.98 137.79 372.07
9 3.25 82.43 230.81 617.92
10 3.5 140.13 385.29 1,025.19
11 3.75 236.45 641.59 1,699.64
12 4 396.85 1,066.50 2,816.29
13 4.25 663.47 1,770.57 4,664.72
14 4.5 1,106.12 2,936.75 7,724.13
15 4.75 1,840.30 4,867.78 12,787.38
16 5 3,057.25 8,064.63 21,166.31
17 5.25 5,073.40 13,356.20 35,031.50
18 5.5 8,412.46 22,114.08 57,974.27
19 5.75 13,940.98 36,607.65 95,936.61
20 6 23,092.89 60,591.80 158,749.75
21 6.25 38,240.84 100,279.24 262,679.76
22 6.5 63,310.65 165,949.18 434,639.22
23 6.75 104,797.94 274,608.98 719,155.54
24 7 173,450.19 454,397.87 1,189,900.08
25 7.25 287,049.65 751,872.89 1,968,763.23
26 7.5 475,017.88 1,244,063.70 3,257,414.28
27 7.75 786,033.80 2,058,417.27 5,389,517.56
28 8 1,300,638.12 3,405,796.66 8,917,124.47
29 8.25 2,152,087.28 5,635,077.77 14,753,609.99
30 8.5 3,560,856.72 9,323,480.27 24,410,162.29
31 8.75 5,891,726.79 15,426,020.84 40,387,056.96
32 9 9,748,232.00 25,522,785.08 66,821,023.59
33 9.25 16,128,928.27 42,228,040.98 110,556,319.48
34 9.5 26,685,938.52 69,867,120.85 182,916,830.32
35 9.75 44,152,718.73 115,596,328.43 302,638,025.97
36 10 73,051,800.84 191,255,834.92

You might also like