My Math Forum  

Go Back   My Math Forum > College Math Forum > Applied Math

Applied Math Applied Math Forum

LinkBack Thread Tools Display Modes
December 5th, 2013, 11:04 PM   #1
Joined: Nov 2013

Posts: 4
Thanks: 0

Solving Diff Eqns using Euler's and Mid-point formulas

the function y(x) satisfies the differential equation dy/dx=cos(xy) and the condition y(1)=2.

a) Verify that the Euler Formula with step length 0.25 gives y(1.25)=1.89596 to 5 d.p.

b) Use the mid-point formula with h=0.25 to obtain an estimate of the value of y(2). Giving answer to 3 d.p.

OK I thought I had this sorted out because with previous questions I had no problem but my answer here is different than the answer my sheet tells me I should be getting, I'll show my working.

a) Euler's Formula> yr+1=yr+hf(xr,yr)

I know that h=0.25 and that x0=1 and y0=2 I also know that f(xr,yr)={cos(1)(2)}

So for (x1,y1) I've done


y1=1.895963291 or 1.89596 to 5 d.p. so part a) is done no problem

And I now have a second set of co-ordinates that are (x1,y1) they are (1.25 , 1.895963291) so I can now use the Mid-point formula to find (x2,y2)

b) Mid-point formula> yr+1=yr-1+2hf(xr,yr)


I know that y0=2 and that x1=1.25 and y1=1.895963291, also that h=0.25



And I now I have a third set of co-ordinates that are (x2,y2) they are (1.5 , 2.298919812)


I know that y1=1.895963291 and that x2=1.5 and y2=2.298919812, also that h=0.25



And I now have a fourth set of co-ordinates that are (x3,y3) they are (1.75 , 1.97727286


I know that y2=2.298919812 and that x3=1.75 and y3=1.977272868, also that h=0.25



And I now have a fifth set of co-ordinates that are (x4,y4) they are (2 , 2.122699267)

Now the question asks me to find the value of y(2) and I thought that is what I had done here with y(2)=2.122699267, but my answer sheet tells me that my answer should be 1.204 to 3d.p.

Any help would be much appreciated as the previous questions that I had done my answer was correct, thanks in advance
daveollie is offline  

  My Math Forum > College Math Forum > Applied Math

diff, eqns, euler, formulas, midpoint, solving

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this an ordinary diff eq or a partial diff eq? Niko Bellic Calculus 2 July 8th, 2013 11:01 AM
Solving 2nd order nonlinear diff eq lu5t Applied Math 0 April 30th, 2012 10:59 AM
nonhomo eqns constantonian Calculus 2 October 31st, 2011 02:22 PM
Help:(solving diff. eq.) meti20 Calculus 1 August 28th, 2010 12:34 AM
Solving Euler's Product Formula (Riemann-Zeta) Jalaska13 Number Theory 0 May 30th, 2010 04:30 PM

Copyright © 2019 My Math Forum. All rights reserved.