Question

Use Eulers method to obtain a four-decimal approximation of the indicated value. First use h = 0.1 and then use h = 0.05. Fi

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The IVP is

y'=2xy \ and \ y(1)=1

Solve the above IVP by seperation of variables

\frac{dy}{dx}=2xy => \frac{dy}{y}=2xdx => lny=\frac{2x^2}{2}+C => lny=x^2+C

Calculate C by applying the initial conditions

At, x=1, y=1, ln1=1^2+C => C=-1

Therefore, the solution of the IVP is

lny=x^2-1 => y=e^{x^2-1}

----

From Eulers Method, the iterations for the solution are given as

y'=f(x,y) => y_{n+1}=y_{n}+hf(x_{n},y_{n})

For the given IVP,

f(x,y)=2xy \ and \ y(1)=1 => x_{0}=1, y_{0}=1

Therefore, for h=0.1 implies

y_{1}=y_{0}+0.1f(x_{0},y_{0})=1+0.1 (2(1)(1))=1.2

y_{2}=y_{1}+0.1f(x_{1},y_{1})=1.2+0.1(2)(1.1)(1.2)=1.464

The rest of the iterations and the errors are shown below

yactual Absolute Error Relative Error f(xn,yn) 2.0000 2.6400 3.5136 4.7199 6.4046 8.7834 yn+1 ye(xn2-1) yn-yactual| (Absolute

From above,

y(1.5)\approx 2.9278

----

Therefore, for h=0.05 implies

y_{1}=y_{0}+0.05f(x_{0},y_{0})=1+0.05 (2(1)(1))=1.1

y_{2}=y_{1}+0.05f(x_{1},y_{1})=1.1+0.05(2)(1.05)(1.1)=1.2155

The rest of the iterations and the errors are shown in below

yactual Absolute Error Relative Error fixn,yn) 2.0000 2.3100 2.6741 3.1032 3.6105 4.2122 4.9283 5.7832 6.8070 8.0371 9.5198 y

From above,

y(1.5)\approx 3.1733


answered by: ANURANJAN SARSAM
Add a comment
Answer #2

1 ac 3 y 0 = 1 + c =) --| lny = 2², 14 - 20dx, integrating long 962-17 Into dont hf(xo, Yp), f(x,y) = 2ay Yo x² f. Rel. Error

Add a comment
Know the answer?
Add Answer to:
Use Euler's method to obtain a four-decimal approximation of the indicated value. First use h =...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT