Vaibs M.

asked • 07/21/19

Using Euler's Method?

Using Euler's Method with a step size of h = 0.5, estimate the value for y(3) for the differential equation x times y times dy dx equals 1 plus the natural logarithm of x squared , with y(2) = 5.

R Bruce N.

Hi Vaibs, My first intuition would be to simply solve for Y. I will think about Euler's incremental approach today after I wake up!! Multiply both sides by dx/x and separate the variables. You get Y.dy = (1 + ln(Xˆ2) dx/X. Integrate both sides - use "U" sub for (1+ln(Xˆ2) and simplify RHS. Getting 1/2 Yˆ2 = 1/2 int. U.du. Cancel the 1/2 but then it comes back RHS Finally, Yˆ2 = 1/2(1+ln(Xˆ2)ˆ2 + C Plug in Initial Value Y(2) = 5 and C = 22.15 Now the Euler increment of h=0.5 has me foxed too for a minute! :-) I would just plug and chug again. Interesting food for thought today. Good luck!
Report

07/21/19

R Bruce N.

Hi again Vaibs, Now after a busy day I came back to your problem. The approach is quite different and much easier than it at first appears. Solve for or separate dy/dx = (1+ln(xˆ2)/(xy). As you increment delta x (h in this case. You can calculate dy = dy/dx (delta x). Build a table with X. Y. dy/dx. dy/dx*delta x = new y value repeat with new X and Y values. Answer comes out Y(3) = 5.23
Report

07/22/19

1 Expert Answer

By:

Patrick B. answered • 07/21/19

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.