Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Use Euler’s method to approximatey(1.2), wherey(x)is the solution of the given initial-value problem.

.x2y''2xy'+2y=0,y(1)=4,y'(1)=9

wherex>0. Useh=0.1. Find the analytic solution of the problem and compare the actual value ofy(1.2)withy2.

Short Answer

Expert verified

The solution of the problem calculated using Euler’s method is y=c1x+c2x2and the approximated value for y(1.2)is 5.9which is lesser than the actual value 6.

Step by step solution

01

Define Euler’s Method.

Euler's method, which works by resembling a solution curve with line segments, is used to approximate solutions to certain differential equations. The formula used in this method is,

yn+1=yn+hfxn

where,

is the step size.

02

Find the first-order differential equations.

We have the second order of differential equation,

x2y''2xy'+2y=0(1)

with initial conditions

y(1)=4,y'(1)=9

and we have to approximate y1.2using Euler’s method as the following technique.

First we have to assume that,

y'=u(a)

Then differentiate with respect to we have the following

y''=u'(b)

Substitute (a) and (b) in equation (1).

x2u'2xu+2y=0(c)

Then from (a),(c) we can have the system of first order differential equations.

y'=uu'=2xu2x2y

Hence the first order differential equations arey'=u,u'=2xu2x2y

03

Find the value of y2,u2.

Using Euler’s method using the step h=0.1along with the conditions we can have,

x0,y0=(1,4),x0,u0=(1,9)

we can have

yn+1=y1=yn+hun=y0+hu0=4+0.1×9=4+0.9=4.9

and

u1=u0+h2x0u02x02y0=9+0.121×9212×4=9+0.1(188)=9+0.1×10=9+1=10

we have

y2=y1+hu1=4.9+0.1×10=4.9+1=5.9

Hence the assumed value isy2=5.9

04

Find the general solution for the equation.

Now to solve the second order homogenous differential equation shown in we have to follow the below steps:

Assume that y=xmis a solution for this homogenous differential equation. Then differentiate the assumption with respect to x. We get,

y'=mxm1(1a)

Differentiate (1a) with respect to x.

y''=m(m1)xm2(2a)

Substitute y=xm,(1a), (2a) in equation (1) .

x2m(m1)xm22xmxm1+2xm=0m(m1)xm2mxm+2xm=0xmm2m2m+2=0xmm23m+2=0

Since xmcannot be equal to zero, we have

m23m+2=0(m1)(m2)=0

Then the eigenvalues are

m1=1,m2=2

which are real and repeated.

Then the general solution of the homogenous differential equation is

y=c1x+c2x2(2)

05

Find the approximated value.

Now we have to apply the initial condition (x,y)=(1,4)in equation (2)

4=c1×1+c212c1+c2=4(1b)

Differentiate (1) with respect to x then we get,

y'=c1+2c2x(3)

We have to apply the initial condition x,y'=(1,9)in equation (3)

9=c1+2c212c1+2c2=9(2b)

Solve (1a) and (2b) .

c1=1,c2=5

Now we have to obtain the actual value of y atx=1.2 .

y(1.2)=5(1.2)21.2=5×1.441.2=7.21.2=6

This value is greater than the approximated value5.9

Hence the value of yat x=1.2is 6.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free