How Accurate is Euler's Method for Solving Differential Equations?

  • Context: MHB 
  • Thread starter Thread starter karush
  • Start date Start date
  • Tags Tags
    Method
Click For Summary
SUMMARY

This discussion focuses on the application of Euler's method to approximate the solution of the first-order differential equation $$\dfrac{dy}{dx}=x^3-y^3$$ at the point $x=1$ with an initial condition of $(0,0)$. Using a step size of $\Delta x = \dfrac{1}{5}$, the calculated value of $y(1)$ is approximately 0.1599 after five iterations. The calculations demonstrate how to iteratively apply Euler's method to derive the approximate solution at specified intervals.

PREREQUISITES
  • Understanding of first-order differential equations
  • Familiarity with numerical methods, specifically Euler's method
  • Basic knowledge of calculus, including derivatives and function evaluation
  • Proficiency in performing iterative calculations
NEXT STEPS
  • Study the Runge-Kutta methods for improved accuracy in solving differential equations
  • Explore the concept of local truncation error in numerical methods
  • Learn about adaptive step size control in numerical integration
  • Investigate the application of differential equations in real-world scenarios, such as population dynamics or physics
USEFUL FOR

Mathematicians, engineers, and students studying numerical analysis or differential equations who seek to understand and apply Euler's method for approximating solutions to differential equations.

karush
Gold Member
MHB
Messages
3,240
Reaction score
5
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:
Physics news on Phys.org

Attachments

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

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K