Differential Equations Euler's method

Click For Summary
SUMMARY

This discussion focuses on solving first-order differential equations using Euler's method. The specific equations analyzed include y' = 3 + t - y and y' = 2y - 1. The correct solution for y = φ(t) is given as φ(t) = t - 2e^-t, evaluated at t = 0.1, 0.2, 0.3, and 0.4, with the correct answer for y(1) being 1.19516. Participants clarify the use of the formula y(n) = y(n-1) + f(t(n-1), y(n-1))h and emphasize the necessity of initial conditions for accurate solutions.

PREREQUISITES
  • Understanding of first-order differential equations
  • Familiarity with Euler's method for numerical approximation
  • Basic knowledge of exponential functions and their derivatives
  • Ability to manipulate and evaluate mathematical expressions
NEXT STEPS
  • Study the derivation and application of Euler's method in detail
  • Learn about initial value problems and their significance in differential equations
  • Explore alternative numerical methods for solving differential equations, such as Runge-Kutta methods
  • Practice solving various first-order differential equations with different initial conditions
USEFUL FOR

Students, educators, and professionals in mathematics, engineering, and physics who are looking to deepen their understanding of differential equations and numerical methods for solving them.

andyk23
Messages
26
Reaction score
0
Find the solution y = φ(t) of the given problem and evaluate φ(t) at t = 0.1, 0.2, 0.3,
and 0.4.

1.y'=3+t-y
y = φ(t)=t-2e^-t
y(1)= 0+(0-2e^0)*(.1)=.8
and the correct answer is 1.19516

2. y'=2y-1

What I'm getting stuck on is do I use the formula y(n)=y(n-1)+f(t(n-1),y(n-1)h because when I do I do not get the same answers as back of the book.

Thanks for the help!
 
Physics news on Phys.org
andyk23 said:
Find the solution y = φ(t) of the given problem and evaluate φ(t) at t = 0.1, 0.2, 0.3,
and 0.4.

1.y'=3+t-y
y = φ(t)=t-2e^-t
Where did you get this? With y= t- 2e^{-t}, y'= 1+ 2e^{-t} while 3+ t- y= 3+ t+ t- 2e^{-t}= 3+ 2t- 2e^{-t}. They are NOT the same. In any case, you cannot get a specific solution to this without some "initial condition".

y(1)= 0+(0-2e^0)*(.1)=.8
and the correct answer is 1.19516

2. y'=2y-1

What I'm getting stuck on is do I use the formula y(n)=y(n-1)+f(t(n-1),y(n-1)h because when I do I do not get the same answers as back of the book.
You are using Euler's method for this? Yes, Euler's method approximates y'= dy/dx by \Delta y/\Delta x= \Delta y/h so your equation becomes \Delta y/h= f(t, y) so that \Delta y= y_n- y_{n-1}= f(t, y)h so that y_n= y_{n-1}+ f(t, y)h. For this problem, f(t, y)= 2y- 1 so you just have y_n= y_{n-1}+ (2y_{n-1}-1)h. What did you get?
(And, again, you cannot solve a first order differential equation for a specific value with an "initial condition". What are you using for t0 and y0?

Thanks for the help!
 
Last edited by a moderator:
y(0)=1/2
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 16 ·
Replies
16
Views
3K