Euler's method is used to approximate the solution of the differential equation dy/dx = 1 - y with the initial condition y(0) = 0. By applying the method with a step size of h = 0.1, the value of y(0.2) is calculated through two iterations, resulting in y(0.2) ≈ 0.19. The process involves computing function values and updating y using the formula y_n+1 = y_n + h f(x_n, y_n).
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
43 views1 page
Euler S Method
Euler's method is used to approximate the solution of the differential equation dy/dx = 1 - y with the initial condition y(0) = 0. By applying the method with a step size of h = 0.1, the value of y(0.2) is calculated through two iterations, resulting in y(0.2) ≈ 0.19. The process involves computing function values and updating y using the formula y_n+1 = y_n + h f(x_n, y_n).
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Euler’s method is a numerical technique used to approximate the solution of a differential
equation of the form:
dy =f ( x , y )dxdy=f(x,y) dx Given: dy =1 − y , y ( 0 )=0 dxdy=1−y,y(0)=0 dx We need to find y ( 0.2 )y(0.2) using Euler’s method with a step size h=0.1h=0.1.
Step 1: Euler's Method Formula
Euler's method updates the value of y y using: y n +1= y n +h f ( x n , y n )yn+1=yn+hf(xn,yn)
where: f ( x , y )=1 − y f(x,y)=1−y
Step 2: Compute Values
Iteration 1: Compute y ( 0.1 )y(0.1) Given: x 0=0 , y 0=0x0=0,y0=0, and h=0.1h=0.1 Compute f ( x 0 , y 0 )=1 − 0=1f(x0,y0)=1−0=1 Apply Euler's formula: y 1= y 0 + h f ( x 0 , y 0 ) =0+ ( 0.1 ×1 )=0.1y1=y0+hf(x0,y0)=0+(0.1×1)=0.1
Iteration 2: Compute y ( 0.2 )y(0.2)
Given: x 1=0.1 , y 1=0.1x1=0.1,y1=0.1 Compute f ( x 1 , y 1) =1 −0.1=0.9f(x1,y1)=1−0.1=0.9 Apply Euler's formula: y 2= y 1 +h f ( x1 , y 1 )=0.1+ ( 0.1 × 0.9 )=0.1+0.09=0.19y2=y1+hf(x1,y1 )=0.1+(0.1×0.9)=0.1+0.09=0.19