Dy/dx = x^3-y^3 Eulers method

  • MHB
  • Thread starter karush
  • Start date
  • #1
karush
Gold Member
MHB
3,267
4
Use Euler's method to approximate the value of y at $x=1$ on the solution curve to the differintial equation
$$\dfrac{dy}{dx}=x^3-y^3$$
that passes through $(0,0)$, Use $\Delta x = \dfrac{1}{5}$ or 5 steps

$\quad x_{1}=x_{0}+h=0+\frac{1}{5}=\frac{1}{5}$
$y\left(x_{1}\right)=y\left( \frac{1}{5} \right)=y_{1}=y_{0}+h \cdot f \left(x_{0}, y_{0} \right)=0+h \cdot f \left(0, 0 \right)=0 + \frac{1}{5} \cdot \left(0 \right)=0$
$\quad x_{2}=x_{1}+h=\frac{1}{5}+\frac{1}{5}=\frac{2}{5}$
$y\left(x_{2}\right)=y\left( \frac{2}{5} \right)=y_{2}=y_{1}+h \cdot f \left(x_{1}, y_{1} \right)=0+h \cdot f \left(\frac{1}{5}, 0 \right)=0 + \frac{1}{5} \cdot \left(0.008 \right)=0.0016$
$\quad x_{3}=x_{2}+h=\frac{2}{5}+\frac{1}{5}=\frac{3}{5}$
$y\left(x_{3}\right)=y\left( \frac{3}{5} \right)=y_{3}=y_{2}+h \cdot f \left(x_{2}, y_{2} \right)=0.0016+h \cdot f \left(\frac{2}{5}, 0.0016 \right)=0.0016 + \frac{1}{5} \cdot \left(0.0634 \right)\approx 0.0144$
$\quad x_{4}=x_{3}+h=\frac{3}{5}+\frac{1}{5}=\frac{4}{5}$
$y\left(x_{4}\right)=y\left( \frac{4}{5} \right)=y_{4}=y_{3}+h \cdot f \left(x_{3}, y_{3} \right)=0.01434+h \cdot f \left(\frac{3}{5}, 0.0144 \right)=0.01434 + \frac{1}{5} \cdot \left(0.2159 \right)\approx 0.0576$
$\quad x_{5}=x_{4}+h=\frac{4}{5}+\frac{1}{5}=1$
$y\left(x_{5}\right)=y\left( 1 \right)=y_{5}=y_{4}+h \cdot f \left(x_{4}, y_{4} \right)=0.0575+h \cdot f \left(\frac{4}{5}, 0.0576 \right)=0.0576 + \frac{1}{5} \cdot \left(0.5119 \right)=0.1599$
so
$y\left(1\right)\approx 0.1599$

ok I think this is sort of it thot there was some way to trim it down
 
Last edited:

Answers and Replies

  • #2
skeeter
1,104
1

Attachments

  • Euler_1.jpg
    Euler_1.jpg
    10.6 KB · Views: 21

Suggested for: Dy/dx = x^3-y^3 Eulers method

Replies
8
Views
886
Replies
8
Views
760
Replies
11
Views
778
  • Last Post
Replies
3
Views
536
  • Last Post
Replies
4
Views
573
  • Last Post
Replies
15
Views
871
  • Last Post
Replies
7
Views
1K
  • Last Post
Replies
6
Views
589
  • Last Post
Replies
1
Views
543
  • Last Post
Replies
5
Views
574
Top