Determine n for Ensuring Global Error is Less Than 10^-2 in Euler's Method

Bueller? Bueller?In summary, using Euler's method with h = 1/2, we can estimate y(1) for the IVP y(0) = 1, y'(t) = t^2 - y(t) to be 3/8. To ensure |E_n| ≤ 10^-2, we can set L = 1 and find T = 0.15625 by using the upper bound for |y''(t)|. This leads to a value of n ≈ 54.
  • #1
spitz
60
0

Homework Statement



Use Euler's method with [tex]h = 1/2[/tex] to estimate [tex]y(1)[/tex] for the IVP:

[tex]y(0)=1[/tex] [tex]y'(t)=t^2-y(t)[/tex]

Assuming that [tex]|y(t)| \le 1[/tex] for [tex]0 \le t \le 1[/tex] determine the value of n needed to ensure that [tex]|E_n| \le 10^{-2}[/tex]

Homework Equations



[tex]|E_n| \le \frac{T}{L}(e^{L(t_n-t_0)-1})[/tex]

The Attempt at a Solution



The first part is easy enough:

[tex]y_1=y_0+f(t_0,y_0)h=1+f(0,1)(1/2)=1/2[/tex]
[tex]y_2=y_1+f(x_1,y_1)h=1/2-1/8=3/8[/tex]
[tex]\Rightarrow y(1)=3/8[/tex]

I'm having trouble with the second part. Could somebody help me out?
 
Physics news on Phys.org
  • #2
Is this correct for L:

[tex]|f(t,u)-f(t,v)|=|t^2-u-t^2+v|=|u-v|[/tex]

Lipschitz with [tex]L=1[/tex]
 
  • #3
Please, Math Gods, I beg thee...
 
  • #4
spitz said:
Is this correct for L:

[tex]|f(t,u)-f(t,v)|=|t^2-u-t^2+v|=|u-v|[/tex]

Lipschitz with [tex]L=1[/tex]
Yes, that's true.
 
  • #5
Thanks, it's T that I'm having trouble with... how would I find the upper bound for |y''(t)| ?
 
  • #6
Is this right?

[tex]y''(t)=2t-t^2+y(t)[/tex]

So, [tex]T=(1/2)*(1/2)*y''(1)=(1/4)(2(1)-1^2-3/8)=0.15625[/tex]

and

[tex]E_n\le|0.15625(e-1)|\Rightarrow E_n\le 0.26848[/tex]

Then set [tex]E_n=0.01[/tex]

[tex]\Rightarrow 0.01 = h(0.53696)[/tex]
[tex]h=0.018623361[/tex]
[tex]\frac{1-0}{n}=0.018623361[/tex]
[tex]\Rightarrow n ≈ 54[/tex]

Anyone? Anyone?
 

Related to Determine n for Ensuring Global Error is Less Than 10^-2 in Euler's Method

What is Euler's Method?

Euler's Method is a numerical method used for approximating solutions to ordinary differential equations. It is named after the mathematician Leonhard Euler.

How does Euler's Method work?

Euler's Method works by approximating the solution to a differential equation by using small steps and linear approximations.

What is the global error in Euler's Method?

The global error in Euler's Method is the difference between the true solution and the approximation obtained using the method. It is also known as the truncation error.

How can the global error in Euler's Method be reduced?

The global error in Euler's Method can be reduced by decreasing the step size, which means taking smaller steps in the approximation process. This will result in a more accurate approximation of the true solution.

What are the limitations of Euler's Method?

Euler's Method has limitations in that it can only be used for first-order ordinary differential equations, and it may not provide accurate results for certain types of differential equations with complex solutions. It also requires a small step size for a more accurate result, which can be computationally expensive.

Similar threads

Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Differential Equations
Replies
1
Views
884
  • Differential Equations
Replies
1
Views
861
  • Calculus and Beyond Homework Help
Replies
11
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
3K
  • Differential Equations
Replies
1
Views
770
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
Replies
3
Views
1K
Back
Top