Q4. Find y (0.8), by Euler's Method, From The Differential Equation When y (0.3) 2, Correct To Four Decimal Places, Taking Step Length H 0.1
Q4. Find y (0.8), by Euler's Method, From The Differential Equation When y (0.3) 2, Correct To Four Decimal Places, Taking Step Length H 0.1
Q4. Find y(0.8), by Euler’s method, from the differential equation = when
dx 1+ x
y(0.3)=2, correct to four decimal places, taking step length h=0.1.
dydx=−y(1+x),\frac{dy}{dx} = -y(1+x),dxdy=−y(1+x),
where y(0.3)=2y(0.3) = 2y(0.3)=2, with a step length h=0.1h = 0.1h=0.1, we proceed step by
step. Euler's method is a numerical technique for approximating solutions to first-order
differential equations, using the formula:
We are given:
we calculate:
f(x2,y2)=−y2(1+x2)=−(1.4964)(1+0.5)=−1.4964⋅1.5=−2.2446.f(x_2,
y_2) = -y_2(1+x_2) = -(1.4964)(1+0.5) = -1.4964 \cdot 1.5 = -2.2446.f(x2
,y2)=−y2(1+x2)=−(1.4964)(1+0.5)=−1.4964⋅1.5=−2.2446.
y3=y2+h⋅f(x2,y2)=1.4964+0.1⋅(−2.2446)=1.4964−0.22446=1.2719.y_3
= y_2 + h \cdot f(x_2, y_2) = 1.4964 + 0.1 \cdot (-2.2446) = 1.4964 -
0.22446 = 1.2719.y3=y2+h⋅f(x2,y2
)=1.4964+0.1⋅(−2.2446)=1.4964−0.22446=1.2719.
f(x3,y3)=−y3(1+x3)=−(1.2719)(1+0.6)=−1.2719⋅1.6=−2.0350.f(x_3,
y_3) = -y_3(1+x_3) = -(1.2719)(1+0.6) = -1.2719 \cdot 1.6 = -2.0350.f(x3
,y3)=−y3(1+x3)=−(1.2719)(1+0.6)=−1.2719⋅1.6=−2.0350.
y4=y3+h⋅f(x3,y3)=1.2719+0.1⋅(−2.0350)=1.2719−0.2035=1.0684.y_4 =
y_3 + h \cdot f(x_3, y_3) = 1.2719 + 0.1 \cdot (-2.0350) = 1.2719 - 0.2035
= 1.0684.y4=y3+h⋅f(x3,y3
)=1.2719+0.1⋅(−2.0350)=1.2719−0.2035=1.0684.
f(x4,y4)=−y4(1+x4)=−(1.0684)(1+0.7)=−1.0684⋅1.7=−1.8163.f(x_4,
y_4) = -y_4(1+x_4) = -(1.0684)(1+0.7) = -1.0684 \cdot 1.7 = -1.8163.f(x4
,y4)=−y4(1+x4)=−(1.0684)(1+0.7)=−1.0684⋅1.7=−1.8163.
y5=y4+h⋅f(x4,y4)=1.0684+0.1⋅(−1.8163)=1.0684−0.1816=0.8868.y_5 =
y_4 + h \cdot f(x_4, y_4) = 1.0684 + 0.1 \cdot (-1.8163) = 1.0684 - 0.1816
= 0.8868.y5=y4+h⋅f(x4,y4
)=1.0684+0.1⋅(−1.8163)=1.0684−0.1816=0.8868.