MHB 9.1.14 Use Euler's method to calculate

Click For Summary
Euler's method is applied to the initial value problem y' = y^2(5 + 5x) with y(1) = -1 and a step size of dx = 0.2. The first three approximations calculated are y1 = 0.4, y2 = 0.6268, and y3 = 1.2694. The exact solution is derived as y(x) = -2/(5x^2 + 10x - 13), showing a significant discrepancy between the approximations and the exact values. The discussion highlights that Euler's method struggles with accuracy in this case, as the approximated values increase while the exact solution decreases. Further practice with Euler's method is suggested for better understanding.
karush
Gold Member
MHB
Messages
3,240
Reaction score
5
$\tiny{9.1.14}$
$\textsf{Use Euler's method to calculate
the first 3 approximations to the given initial value problem for the specified increment size.}\\$
$\textsf{ Calculate the exact solution.}$
$y'=y^2(5+5x), y(1)=-1, dx=0.2$
$y_1=$
$y_1=0.4$
$y_2=0.6268$
$y_3=1.2694$
$y(exact)=-\frac{1}{x^2+5x-5}$

$\textsf{the given answers are book answers but i couldn't derive them}$
 
Physics news on Phys.org
Given:

$$\d{y}{x}=f(x,y)$$

Euler's method is the recursion:

$$y_{n+1}\approx y_{n}+\Delta x\cdot f\left(x_n,y_n\right)$$

Now, in the given problem, we are given:

$$\d{y}{x}=y^2(5x+5)$$ where $$y(1)=-1$$

Let's first compute the exact solution...separate variables, use bounds as limits and switch dummy variables:

$$\int_{-1}^{y(x)}u^{-2}\,du=5\int_{1}^{x}v+1\,dv$$

Apply the FTOC:

$$-\left[\frac{1}{u}\right]_{-1}^{y(x)}=5\left[\frac{v^2}{2}+v\right]_{1}^{x}$$

$$-\left(\frac{1}{y(x)}+1\right)=5\left(\frac{x^2}{2}+x-\frac{3}{2}\right)$$

$$-\frac{1}{y(x)}=\frac{1}{2}\left(5x^2+10x-13\right)$$

$$y(x)=-\frac{2}{5x^2+10x-13}$$

Okay, now back to Euler's method...we begin with:

$$y_1=-1$$ and $$x_1=1$$ and we are told to use $$\Delta x=\frac{1}{5}$$

$$y_2\approx-1+\frac{1}{5}\left((-1)^2(5(1)+5)\right)=1$$

Compare to the exact value:

$$y\left(\frac{6}{5}\right)=-\frac{10}{31}$$

Next approximation:

$$y_3\approx1+\frac{1}{5}\left((1)^2\left(5\left(\frac{6}{5}\right)+5)\right)\right)=\frac{16}{5}$$

Compare to the exact value:

$$y\left(\frac{7}{5}\right)=-\frac{5}{27}$$

Can you continue, and explain why Euler's method isn't doing a very good job here?
 
well just from observation the approx value increases while the exact value decreases

I've got to do more of these Euler's method so hope to understand it better

The examples to follow were ?
 
There are probably loads of proofs of this online, but I do not want to cheat. Here is my attempt: Convexity says that $$f(\lambda a + (1-\lambda)b) \leq \lambda f(a) + (1-\lambda) f(b)$$ $$f(b + \lambda(a-b)) \leq f(b) + \lambda (f(a) - f(b))$$ We know from the intermediate value theorem that there exists a ##c \in (b,a)## such that $$\frac{f(a) - f(b)}{a-b} = f'(c).$$ Hence $$f(b + \lambda(a-b)) \leq f(b) + \lambda (a - b) f'(c))$$ $$\frac{f(b + \lambda(a-b)) - f(b)}{\lambda(a-b)}...

Similar threads

Replies
1
Views
3K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
694
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K