Differential Equation - Where am I going wrong?

Click For Summary
SUMMARY

The discussion focuses on using Euler's Method to solve the initial value problem defined by the differential equation y' = 0.5 - t + 2y with the initial condition y(0) = 1. The user attempts to calculate the first approximation y_1 using a step size of h = 0.05 but arrives at an incorrect value. The correct calculation yields y_1 = 1.26, confirming that the user misinterpreted the comparison with the answer sheet. The formula applied, y_n = y_n-1 + h * F(x_n-1, y_n-1), is correctly utilized.

PREREQUISITES
  • Understanding of Euler's Method for numerical solutions of differential equations
  • Familiarity with initial value problems in calculus
  • Basic knowledge of differential equations and their notation
  • Ability to perform arithmetic operations with decimals
NEXT STEPS
  • Review the application of Euler's Method with different step sizes
  • Learn about error analysis in numerical methods
  • Explore alternative numerical methods such as Runge-Kutta
  • Study the implications of step size on the accuracy of numerical solutions
USEFUL FOR

Students studying differential equations, educators teaching numerical methods, and anyone seeking to improve their understanding of Euler's Method in solving initial value problems.

oneamp
Messages
222
Reaction score
0

Homework Statement



Using Euler's Method:

a) Find the approximate values of the solution of the given initial value problem at t = 0.1, 0.2, 0.3, and 0.4 using the Euler method with h= 0.1

b) Repeat part (a) with h = 0.05.

I am doing part (b). The function is y' = 0.5 - t + 2y, y(0)=1


Homework Equations


For Euler's Method:
y_n = y_n-1 + h * F(x_n-1, y_n-1)

The Attempt at a Solution



I've done it according to the book, using Euler's Method. I am trying to find y_1 but am not coming up with the book answer, for (b).

h = 0.05
so t = 0.05, 0.10, 0.15, 0.20 (but not interested in these yet, just want y_1 to be right!)


y_1 = 1 + (0.05) [0.5 - 0 + (2)(1)]
should be 1.26, but I get the wrong answer. What am I doing wrong? :(

Thanks
 
Physics news on Phys.org
I think you have the correct formula for y1. I will observe that y2, which is your approximation for y(.1), is in fact 1.26 if you take the next step. You are simply confusing what you're supposed to be comparing to your answer sheet.
 
Thank you!
 

Similar threads

Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
3
Views
3K
Replies
8
Views
3K