University of Florida/Egm4313/s12.team11.perez.gp/R3.9

From testwiki
Jump to navigation Jump to search

Problem Statement

Solve the initial value problem. State which rule you are using. Show each step of your calculation in detail.

Given

(K 2011 pg.85 #13)

8y6y+y=6coshx (1)

Initial conditions are:

y(0)=0.2,y(0)=0.05

Solution

The general solution of the homogeneous ordinary differential equation is

8y6y+y=0

We can use this information to determine the characteristic equation:

8λ26λ+1=0

And proceeding to find the roots,

4λ(2λ1)1(2λ1)=0

Thus, (4λ1)(2λ1)=0.

Solving for the roots, we find that λ=14,12,

where the general solution is

yk=c1e14x+c2e12x.

The solution of yp of the non-homogeneous ordinary differential equation is

x=ex+ex2.

Using the Sum rule as described in Section 2.7, the above function translates into the following:

yp=yp1+yp2, where Table 2.1 tells us that:

yp1=Aex and yp2=Bex.

Therefore, yp=Aex+Bex.

Now, we can substitute the values (yp,yp,yp) into (1) to get:

8(Aex+Bex)6(AexBex)+Aex+Bex=6(ex+ex2)

=3Aex+15Bex

=3(ex+ex)

Now that we have this equation, we can equate coefficients to find that:

3A=3

A=1

B=315=15 

and thus, yp=ex+15ex

We find that the general solution is in fact:

y=yk+yp

y=c1e14x+c2e12x+ex+3ex

whereas the general solution of the given ordinary differential equation is actually:

y=c1e14x+c2e12x+ex+15ex

Solving for the initial conditions given and first plugging in y(0)=0.2, we get that:

0.2=c1e14(0)+c2e12(0)+e0+3e(0)

0.2=c1e(0)+c2e(0)+e(0)+3e(0)

0.2=c1+c2+1+15

c1+c2=1. (2)

And now we can determine the first order ODE :

y=14c1e14(x)+12c2e12(x)+ex15ex

The second initial condition that was given to us, y(0)=0.05 can now be plugged in:

0.05=14c1e14(0)+12c2e12(0)+e(0)15e(0)

0.05=14c1e(0)+12c2e(0)+e(0)15e(0)

0.05=14c1+12c2+115

14c1+12c2=0.75

c1+2c2=3 (3)

Once we solve (2) and (3), we can get the values:

c1=1,c2=2.

And once we substitute these values, we get the following solution for this IVP:


y=e14x2e12x+ex+15ex

Given

(K 2011 pg.85 #14)

y+4y+4y=e2xsin2x (1)

Initial conditions are:

y(0)=1,y(0)=1.5

Solution

The general solution of the homogeneous ordinary differential equation is

y+4y+4y=0

We can use this information to determine the characteristic equation:

λ2+4λ+4=0

And proceeding to find the roots,

(λ+2)(λ+2)=0

Solving for the roots, we find that λ=2,2

where the general solution is:

yk=c1e2x+c2e2xx, or:

yk=(c1+c2x)e2x

Now, according to the Modification Rule and Table 2.1 in Section 2.7, we know that we have to multiply by x to get:

yp=e2x(Kxcos2x+Mxsin2x), since the solution of yk is a double root of the characteristic equation.

We can then derive to get yp:

yp=2e2x(Kxcos2x+Mxsin2x)+e2x(Kcos2x2Kxsin2x+Msin2x+2Mxcos2x)

yp=(2K+2M)e2xxcos2x+(2M2K)e2xxsin2x+Ke2xcos2x+Me2xsinx

Deriving once again to solve for yp, we get the following:

yp=4e2x(Kxcos2x+Mxsin2x)2e2x(Kcos2x2Kxsin2x+Msin2x+2Mxcos2x)2e2x(Kcos2x2Kxsin2x+Msin2x+2Mxcos2x)

yp=4e2x(Kxcos2x+Mxsin2x)4e2x(Kcos2x2Kxsin2x+Msin2x+2Mxcos2x)+e2x(4Ksin2x4Kxcos2x+4Mcos2x4Mxsin2x)

yp=(4K+4M)e2xcos2x+(4K4M)e2xsin2x 

Now, we can substitute the values (yp,yp,yp) into (1) to get:

(4K+4M)e2xcos2x+(4M4K)e2xsin2x+4((2K+2M)e2xxcos2x+(2M2K)e2xxsin2x+Ke2xcos2x+Me2xsinx)+4(e2x(Kxcos2x+Mxsin2x))=e2xsin2x

(3K+4M)e2xcos2x+(3M4K)e2xsin2x=e2xsin2x

Now that we have this equation, we can equate coefficients to find that:

3K+4M=0 and 4K3M=1

and finally discover that:

M=325 and K=425.

Plugging in these values in yp, we find that:

yp=e2x(425xcos2x325xsin2x)

And finally, we arrive at the general solution of the given ordinary differential equation:

y=yk+yp

y=(c1+c2x)e2x+e2x(425xcos2x325xsin2x)

Solving for the initial conditions given and first plugging in y(0)=1, we get that:

1=(c1+c2(0))e2(0)+e2(0)(425(0)cos2(0)325(0)sin2(0))

1=(c1+c2(0))e0

c1=1

The second initial condition that was given to us, y(0)=1.5 can now be plugged in:

y=15e2x(10c1+10c2x5c2+(314x)sin2x+(42x)cos(2x))

1.5=15(10c15c2+4)

c2=3.5

And once we substitute these values, we get the following solution for this IVP:


y=(13.5x)e2x+e2x(425xcos2x325xsin2x)

Template:CourseCat