502,319 views
10 votes
10 votes
use eulers method with step size 0.5 to compute the approximate y values y1 y2 y3 and y4 of the solution of the intitial value problem y'=y 2x y(3)=0

use eulers method with step size 0.5 to compute the approximate y values y1 y2 y3 and-example-1
User Yukako
by
3.0k points

1 Answer

20 votes
20 votes

Answer:


y_1=\boxed{-3}


y_2=\boxed{-8}


y_3=\boxed{-16}


y_4=\boxed{-28.5}

Explanation:

Given:


  • y'=y-2x, \;\;y(3)=0

  • h=0.5

Use Euler’s method with h = 0.5 to find approximate values for the solution of the initial value problem:


y'=y-2x, \;\;y(3)=0

at x = 3.5, 4, 4.5, 5.

Therefore:


f(x,y)=y-2x, \quad x_0=3 \;\;\text{and}\; \;y_0=0

Euler's Method


\boxed{y_(n+1)=y_n+hf(x_n,y_n)}


\begin{aligned}\implies y_1&=y_0+hf(x_0,y_0)\\&=0+(0.5)f(3,0)\\&=0+0.5[0-2(3)]\\&=0+0.5(-6)\\&=-3\end{aligned}


\begin{aligned}\implies y_2&=y_1+hf(x_1,y_1)\\&=-3+(0.5)f(3.5,-3)\\&=-3+0.5[-3-2(3.5)]\\&=-3+0.5(-10)\\&=-3-5\\&=-8\end{aligned}


\begin{aligned}\implies y_3&=y_2+hf(x_2,y_2)\\&=-8+(0.5)f(4,-8)\\&=-8+0.5[-8-2(4)]\\&=-8+0.5(-16)\\&=-8-8\\&=-16\end{aligned}


\begin{aligned}\implies y_4&=y_3+hf(x_3,y_3)\\&=-16+(0.5)f(4.5,-16)\\&=-16+0.5[-16-2(4.5)]\\&=-16+0.5(-25)\\&=-16-12.5\\&=-28.5\end{aligned}


\begin{array}c\cline{1-3} \text{Step}\;(n) & x_n&y_n\\\cline{1-3} 0&3&0\\\cline{1-3} 1&3.5&-3\\\cline{1-3} 2&4&-8\\\cline{1-3} 3&4.5&-16\\\cline{1-3} 4&5&-28.5\\\cline{1-3} \end{array}

User BigSack
by
2.5k points