Dv/dt = (v+1)/10v^2 Euler's method

Click For Summary
SUMMARY

The discussion focuses on applying Euler's method to solve the differential equation dv/dt = (v+1)/10v^2 with an initial condition of v(0) = 1 and a step size of Δt = 0.5 to find v(4). Participants confirm calculations, with one user obtaining v(4) = 1.731618162 and another using a spreadsheet to find v(4) = 1.5740. Discrepancies in intermediate values are noted, particularly at t = 2.0 and t = 3.0, highlighting the importance of accuracy in calculations. The conversation also touches on a separate problem involving y' = xy - x^2 with y(0) = 1, where participants discuss the impact of step size on results.

PREREQUISITES
  • Understanding of Euler's method for numerical integration
  • Familiarity with differential equations
  • Basic proficiency in using spreadsheets for calculations
  • Knowledge of initial value problems in calculus
NEXT STEPS
  • Learn advanced numerical methods beyond Euler's method, such as Runge-Kutta methods
  • Explore the use of Wolfram Alpha for solving differential equations
  • Study error analysis in numerical methods to improve accuracy
  • Investigate the application of numerical methods in real-world scenarios, such as physics simulations
USEFUL FOR

Students studying calculus, particularly those focusing on numerical methods, as well as educators and tutors looking to reinforce concepts in differential equations and numerical integration techniques.

Jbreezy
Messages
582
Reaction score
0

Homework Statement


dv/dt = (v+1)/10v^2 Euler method delta t = .5, t =0 and v = 1, to find v(4)



Homework Equations



I'm using v = v(old) + (stepsize)(dv/dt) I'm just wondering if anyone can confirm my results. My teacher said that although this seems easy over half the homework will be wrong because of calculator mistakes.

The Attempt at a Solution



I know it is boring but could someone double check me? Maybe put it in wolfram Idk exactly how to do it.THanks Or maybe someone has a program.


For my final calculation I got v(4) = 1.731618162


Man I hope that is OK
 
Physics news on Phys.org
I got v(4) = 1.5740 using a spreadsheet. Just to make sure, it's ##\frac{dv}{dt} = \frac{v+1}{10v^2}## and v(0)=1, right?
 
The exact question is
Use Euler's method with ##\frac{dv}{dt} = \frac{v+1}{10v^2}## and delta t = 0.5, starting at t =0 and v = 1, to find v(4).
So yeah. But did you use the right step size.I will give you a couple values I want to see if I was doing it right but went wrong.

So for t = 1.0 I have v = 1.18677686
t = 2.0 I have v = 1.406046194
t = 3.0 I have v = 1.524220178
Do any of those look OK?
Thanks
 
Your result for t=1.0 matches mine, but the others don't.
 
Figures.
So dv/dt for 1.0 I have .1552624125 is that what you got?
 
Yes.
 
Dude I GOT IT! Whohoo. Thanks. It is so funny that something that seems very simple ends up being clustered for me.

If you did it on a spread sheet and it was easy can you punch in another one for me? This is the last one I had from my hw.
If not and it is a drag to do that's OK.

But here it is just in case.

y' = xy -x^2 and y(0) = 1 they want y(1).

I got 3.08106496
 
What step size?

With a step size of 0.1, I get about 1.217, and the actual value is about 1.238. It looks like your number is a bit off.
 
Last edited:
Step size is 0.2
Sorry I left that out.
 
  • #10
With a step size of 0.2, I get y(1)=1.195.
 
  • #11
I get that but for when x = .8

Yours started at 0? Y(0) = 1?
 
  • #12
So my y(1) = 1.233930342
 
  • #13
Jbreezy said:
I get that but for when x = .8
Apparently you are updating the independent variable (x) before you are updating the dependent variable (y). Don't do that. The derivative function is f(x,y), not f(x+Δx,y).
 
  • #14
Got it thx.
 

Similar threads

Replies
32
Views
3K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
Replies
4
Views
4K
Replies
4
Views
4K