242t.9.1.15 Use Euler's method to calculate the first three approximations

In summary, the conversation discusses using Euler's method to approximate the solution to a given initial value problem with a specified increment size. The exact solution is also calculated and rounded to 4 decimal places. The conversation also points out that the given solution is not correct and provides the correct solution. It also suggests improving the scheme used for this function to get a more accurate approximation.
  • #1
karush
Gold Member
MHB
3,269
5
$\tiny{242t.9.1.15}$
$\textsf{Use Euler's method to calculate the first three approximations}$
$\textsf{to the given initial value problem for the specified increment size.}$
$\textsf{Calculate the exact solution. Round to 4 decimal places.}$
\begin{align*}\displaystyle
\frac{dy}{dx}&=9x^8e^{-x^9}\, , y_{(0)}=8, \, dx=0.5 \\
\end{align*}
$\textit{$x_0=0$}$
\begin{align*}\displaystyle
y_1& =y_0 +\left(x_0 \cdot y_0 \right)\cdot dx \\
&=8+\left(-9(0)^8\cdot e^{0^9} \right)\cdot 0.5 =\color{red}{8}
\end{align*}
$\textit{ $x_1=x_0+dx$ then
$x_1 \therefore x_1=0.5$}$
\begin{align*}\displaystyle
y_2&=y_1+\left(9(x_1)^8 \cdot
e^{{(-x_1)}^8}
\right)\\
&=8+\left( 9(0.5)^8 \cdot e^{{-0.5}^9} \cdot 0.5 \right)=\color{red}{7.9825}
\end{align*}
$\textit{$x_2=x_{1}+0.5$ to then
$x_2 \therefore x_2=0.5+0,5=1$}$
\begin{align*}\displaystyle
y_3&=7.9825+\left( 9(1)^8 \cdot e^{{-1}^9} \cdot 0.5 \right)=\color{red}{6.327}
\end{align*}
\begin{align*}\displaystyle
y_{exact}&=\int 9x^8e^{-x^9} dx
=e^{-x^8}+C
=\color{red}{e^{-x^8}+7}
\end{align*}
$\textit{hopefully... suggestions}$ :cool:
 
Last edited:
Physics news on Phys.org
  • #2
Your solution to the given IVP isn't correct...we are given:

\(\displaystyle \d{y}{x}=9x^8e^{-x^9}\) where \(\displaystyle y(0)=8\)

\(\displaystyle \int_{y(0)}^{y(x)}\,du=\int_0^x 9v^8e^{-v^9}\,dv=-\int_0^{-x^9} e^w\,dw\)

\(\displaystyle y(x)=1+y(0)-e^{-x^9}\)

With \(\displaystyle y(0)=8\), our solution is then:

\(\displaystyle y(x)=9-e^{-x^9}\)

Even without knowing the solution, we see the slope is positive for all $0<x$, so we should expect our approximations to be increasing as $x$ increases. Let's look at Euler's method for approximating \(\displaystyle y(1.5)=9-e^{-1.5^9}\approx9\)

\(\displaystyle y_0=8,\,x_0=0,\,\Delta x=0.5\)

\(\displaystyle y_1=8+0.5(9(0)^8e^{-0^9})=8\)

\(\displaystyle y_2=8+0.5\left(9(0.5)^8e^{-0.5^9}\right)\approx8.017543826230405\)

\(\displaystyle y_3=8.017543826230405+0.5\left(9(1)^8e^{-1^9}\right)\approx9.673001311501896\)

Can you explain why we got a value greater than 9 when we know:

\(\displaystyle \lim_{x\to\infty}y=9\) ?

How could we improve this scheme for this function?
 

FAQ: 242t.9.1.15 Use Euler's method to calculate the first three approximations

What is Euler's method?

Euler's method is a numerical method used to approximate solutions to first-order differential equations. It involves using small time steps to compute successive approximations of the solution.

How does Euler's method work?

Euler's method works by approximating the derivative of a function at a given point using the slope of a tangent line. This slope is then used to estimate the value of the function at the next point in time.

What is the formula for Euler's method?

The formula for Euler's method is:
yn+1 = yn + h*f(xn, yn)
Where yn+1 is the next approximation of the solution, yn is the current approximation, h is the step size, and f(xn, yn) is the derivative of the function at the current point.

What are the limitations of Euler's method?

Euler's method is a first-order method, meaning it has a relatively low level of accuracy compared to higher-order methods. It can also produce large errors when used to approximate solutions for longer time intervals or when the function has a steep slope.

What are the applications of Euler's method?

Euler's method is commonly used in various fields of science and engineering, such as physics, chemistry, and economics, to approximate solutions to differential equations. It can also be used to model and simulate dynamic systems.

Similar threads

Replies
3
Views
2K
Replies
3
Views
1K
Replies
4
Views
1K
Replies
1
Views
1K
Replies
2
Views
2K
Replies
2
Views
1K
Replies
3
Views
1K
Replies
2
Views
2K
Back
Top