University of Florida/Egm4313/s12.team5.R3: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>MaintenanceBot
m HTML5 cleanup
 
(No difference)

Latest revision as of 16:21, 25 February 2018

Template:Big3


R 3.1

Question

Consider the following L2-ODE-CC:


y'10y'+25y=7e5x2x2


With initial conditions y(0)=4 , y'(0)=-5


Find the solution. Plot this solution and the solution in the example on p.7-3

Solution

General solution of our ODE:

y'10y'+25y=0


a24b=1024(25)=0 double real roots


λ=λ1=λ2=a2=102=5


Giving us a general solution of:


yg=(c1+c2x)e5x



Particular solution of our ODE by method of undetermined coefficients:


Since our excitation r(x) is of the form r(x)=keγxkxn


Our two particular solutions will be of the form:


yp1=Cx2eγx,yp2=K2x2+K1x+K0


  • Have to multiply yp1 by x2 because the e5x term already appears in the general solution.


Taking derivatives of yp1:

yp1=Cx2e5x
yp1'=2Cxe5x+5Cx2e5x
yp1'=2Ce5x+10Cxe5x+10Cxe5x+25Cx2e5x


Substituting derivatives into the original ODE and collecting like terms:


C[2+10x+10x+25x220x50x2+25x2]e5x=7e5x


2C=7C=72


Giving us our first particular solution:


yp1=72x2e5x


Taking derivatives of yp2:


yp2=K2x2+K1x+K0
yp2'=2K2x+K1
yp2'=2K2


Substituting derivatives into original ODE and collecting like terms:


25K2=2K2=225
20K2+25K1=0K1=8125
2K210K1+25K0=0K0=12625


Giving us our second particular solution:


yp2=225x28125x12625


With a final solution being the sum of the general and particular solutions:


y=yg+yp1+yp2
y=(c1+c2x)e5x+72x2e5x225x28125x12625


Using initial conditions to solve for c1 and c2:


y(0)=44=c112625c1=2512625


y'(0)=5 where y'=e5x[5c1+c2+5c2x+7x+352x2]425x8125


5=5c1+c28125c2=3129125


Final solution:

y=(25126253129125x)e5x+72x2e5x225x28125x12625


Matlab Code:

x=0:0.001:10;
y=((2512/625)-(3129/125).*x).*exp(5*x)+(7/2).*x.^2.*exp(5*x)-(2/25).*x.^2-(8/125).*x-(12/625);
plot(x,y),xlabel('x'),ylabel('y(x)')



File:R3.1plot1.png


Solution in example on P.7-3

y=4e5x25xe5x+72x2e5x

Matlab code:

x=0:0.001:10;
y=4.*exp(5*x)-25.*x.*exp(5*x)+(7/2).*x.^2.*exp(5*x);
plot(x,y),xlabel('x'),ylabel('y(x)')


File:R3.1plot2.png

Author

This problem was solved and uploaded by: Joshua House

This problem was proofread by: David Herrick

R 3.2

Question

Part 1

Find the homogeneous L2-ODE-CC having the following roots: λ1=λ,λ2=λ+ε

Part 2

Show that the following is a homogeneous solution: e(λ+ε)xeλxε

Part 3

Find the limit of the homogeneous solution as ε0

Part 4

Take the derivative of eλx with respect to λ

Part 5

Compare the results in parts (3) and (4), and relate to the result by using variation of parameters

Part 6

Compute (2) using λ=5 and ε=0.001 and compare to the value obtained from the exact 2nd homogeneous solution

Solution

Part 1

Letting λ1=x,λ2=x+ϵ
(λx)(λ[x+ε])=0
λ2λxλελx+x2+xε=0
λ2λ[2x+ε]+x[x+ε]=0
Replacing the x's with lambda's:
y'y'[2λ+ε]+yλ[λ+ε]=0

Part 2

y=e(λ+ε)xeλxε,y=(λ+ε)e(λ+ε)xλeλxε,y=(λ+ε)2e(λ+ε)xλ2eλxε


Plugging this into the original ODE y'y'[2λ+ε]+yλ[λ+ε]=0 and collecting like terms:


e(λ+ε)x[λ2+2λε+ε22λ22λελεε2+λ2+ελ]+eλx[λ2+2λ2+λελ2λε]=0


  • Much of the trivial algebra was left out in order to greatly reduce coding time. These intermediate steps, which were done on paper, can be presented if necessary.


From inspection, all of the bracketed terms add up to zero, thus verifying we were given a correct homogeneous solution.

Part 3

limε0e(λ+ε)xeλxε


Since the limit of the numerator and the limit of the denominator are both 0 as epsilon approaches 0, we can use L'Hopitals rule to find the limit of the entire function


L'Hopital's Rule:

If: limε0f(ε)g(ε) exists


And: limε0f(ε)=limε0g(ε)=0


Then: limε0f(ε)g(ε)=limε0f(ε)g(ε)


Taking derivatives of the numerator and denominating with respect to epsilon, and finding the limit as epsilon approaches 0:

limε0xe(λ+ε)x1=xeλx

Part 4

d[eλx]dλ=xeλx

Part 5

The results from (3) and (4) show that d[eλx]dλ=lime0e(λ+ε)xeλxε=xeλx

Part 6

From e(λ+ε)xeλxε and letting λ=5,ε=0.001


e5.001xe5x0.001


Comparing this to the value of the exact 2nd homogeneous solution (values were plugged into the expression in part 2)


e5.001x[52+2(5)(0.001)+0.00122(52)2(5)(0.001)5(0.001)(0.0012)+52+0.001(5)]+e5x[52+2(52)+5(0.001)525(0.001)]=0

Author

This problem was solved and uploaded by: Joshua House

This problem was proofread by: Michael Wallace

R 3.3

Question

Find the complete solution for equation 5 from pg. 7.7 in the notes:

 y2y+3y=4x2 

with initial conditions given as:

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

Plot the solution.

Solution

First, find the homogenous solution to this differential equation, i.e. where r(x) = 0.

 y'h3y'h+2yh=0 

 (λ1)(λ2)=0 

 λ=1,2 

Thus, the homogenous solution is of the form  yh=C1eλ1x+C2eλ2x 

Plugging in the answers for lambda yields:

 yh=C1ex+C2e2x 

Now to solve for the particular solution, we must look at the excitation:  r(x)=4x2 

A particular solution to an excitation of the form  Cxn  is defined as  j=0ncjxj 

Thus,  yp=c0+c1x+c2x2 

To solve for the 3 unknown constants, plug the particular solution into the differential equation:

 yp3yp+2yp=4x2 

 (c0+c1x+c2x2)3(c0+c1x+c2x2)+2(c0+c1x+c2x2)=4x2 

 yp=2c2x+c1 

 yp=2c2 

Substituting these relations into the equation we get:

 2c23(2c2x+c1)+2(c2x2+c1x+c0)=4x2 

Grouping like terms we get:

 2c2x2+(2c16c2)x+(2c23c1+2c0)=4x2 

Matching up the coefficients for the  x2  term on the left and right sides we get:

 2c2=4 

Therefore  c2=2 

Matching up the coefficients for the  x  term on the left and right sides we get:

 2c16c2=0 

Therefore  c1=6c2/2=6(2)/2=6 

Finally, matching up the coefficients for the constant terms on the left and right sides we get:

 2c23c1+2c0=0 

Therefore  c0=(3c12c2)/2=(3(6)2(2))/2=(184)/2=7 

The particular solution is then:  yp=2x2+6x+7 

The general solution is the sum of the homogenous solution and the particular solution, therefore:

 y(x)=yh+yp=C1ex+C2e2x+2x2+6x+7 

To solve for the 2 remaining unknown constants, we use our initial conditions from the problem statement.

 y(0)=1=C1+C2+7 

To use the second initial condition, we must take a derivative of our general solution.

 y(x)=C1ex+2C2e2x+4x+6 

 y(0)=0=C1+2C2+6 

Rewriting the equations we get:

 C1+2C2+6=0 

 C1+C2+6=0 

Subtracting these equations we get:

 C2=0 

Therefore:  C1=6C2=6 

Thus the complete solution is:

 y(x)=2x2+6x+76ex 

MATLAB code;

x = 0:0.001:10;

y = 2*x.^2 + 6*x + 7 - 6*exp(x);

plot(x,y)

xlabel( 'x')

ylabel( 'y(x)')

File:R3.3.png

Author

This problem was solved and uploaded by: David Herrick

This problem was proofread by: Michael Wallace

R 3.4

Question

Use the Basic Rule (1) and the Sum Rule (3) on p.7-2 of the notes to show that the appropriate particular solution for:

 y3y+2y=4x26x5 

is of the form:

 yp(x)=j=05cjxj 

with n = 5, i.e. (1) on p.7-12.

Solution

From the Basic Rule:

 r1(x)=4x2 
 r2(x)=6x5 

Therefore, from Table 2.1:

yp1(x)=K2x2+K1x+K0 since k = 4, x = x, and n = 2.
yp2(x)=K5x5+K4x4+K3x3+K2x2+K1x+K0 since k = 6, x = x, and n = 5.

For yp1(x):

 yp1(x)=2K2x+K1 
 yp1(x)=2K2 

Substituting yp1(x) into the original equation gives:

 (2K2)3(2K2x+K1)+2(K2x2+K1x+K0)=4x26x5 
 =x2(2K2)+x(2K1+3K2)+(2K2+3K1+2K0)=4x26x5 

Comparing the x2, x, and x0 coefficients gives:
For x2:  2K2=4  Therefore K2=2.
For x:  2K1+3K2=0  Therefore K1=3.
For x0:  2K2+3K1+2K0=0  Therefore K0=2.5.
Therefore, yp1(x)=2x23x+2.5.
For yp2(x):

 yp2(x)=5K5x4+4K4x3+3K3x2+2K2x+K1 
 yp2(x)=20K5x3+12K4x2+6K3x+2K2 

Substituting yp1(x) into the original equation gives:

 (20K5x3+12K4x2+6K3x+2K2)3(5K5x4+4K4x3+3K3x2+2K2x+K1)+2(K5x5+K4x4+K3x3+K2x2+K1x+K0)=4x26x5 

Simplifying yields:

 x5(K5)+x4(K415K5)+x3(K312K4+40K5)+x2(K29K3+24K4)+x(K16K2+12K3)+(K03K1+4K2)=4x26x5 

Comparing the x5, x4, x3, x2, x, and x0 coefficients gives:
For x5:  K5=6  Therefore K5=6.
For x4:  K415K5=0  Therefore K4=90.
For x3:  K312K4+40K5=0  Therefore K3=840.
For x2:  K29K3+24K4=0  Therefore K2=9724.
For x:  K16K2+12K3=0  Therefore K1=59425.
For x0:  K03K1+4K2=0  Therefore K0=217171.
Therefore, yp2(x)=6x590x4+840x39724x2+59425x217171
By the Sum Rule:

 yp(x)=yp1(x)+yp2(x) 
 yp(x)=(2x23x+2.5)+(6x590x4+840x39724x2+59425x217171) 

Simplifying gives:

 yp(x)=6x590x4+840x39722x2+59422x217168.5 

Choose:

 K5=6 
 K4=90 
 K3=840 
 K2=9722 
 K1=59422 
 K0=217168.5 

Then the equation becomes of the form:

 yp(x)=j=0n(cjxj)  where n = 5.

Author

This problem was solved and uploaded by John North.

This problem was proofread by Michael Wallace

R 3.5

Question

Complete the solution for  y3y+2y=4x26x5  ( (2) p. 7-11) ) as follows:

Part 1

1) Obtain equations (2) - (4) and (6) p. 7-14

(2) Coefficients of  x :

(3) Coefficients of  x2 :

(4) Coefficients of  x3 :

(6) Coefficients of  x5 :

Part 2

Verify all equations by long hand expansion of the series in (4) p. 7-12, instead of using the series in (2) p. 7-13.

 j=25cjj(j1)xj23j=15cjjxj1+2j=05cjxj=4x26x5 

Part 3

Put the system of equations for  {c0,...,c5}  in matrix form.

Part 4

Solve for the coefficients  {c0,...,c5}  by back substitution.

Part 5

Consider the initial conditions:

 y(0)=1,y(0)=0 .

Find the solution y(x) and plot it.

Solution

Part 1

For all the coefficient equations, we will use the series from (2) p. 7-13

 j=03[cj+2(j+2)(j+1)3cj+1(j+1)+2cj]xj3c5(5)x4+2[c4x4+c5x5]=4x26x5 

Solving for the coefficients of x, we use j = 1.

 (c3(3)(2)3c2(2)+2c1)x .

These are the coefficients for x on the left hand side of the equation, and the coefficients for x on the right hand side = 0.

Coefficients of x:  6c36c2+2c1=0 

Solving for the coefficients of  x2  we use j = 2.

 (c4(4)(3)3c3(3)+2c2)x2 

These are the coefficients for  x2  on the left hand side of the equation, and the coefficients for  x2  on the right hand side = 4

Coefficients of  x2 :  12c49c3+2c2=4 

Solving for the coefficients of  x3  we use j = 3.

 (c5(5)(4)3c4(4)+2c3)x3 

These are the coefficients for  x3  on the left hand side of the equation, and the coefficients for  x3  on the right hand side = 0

Coefficients of  x3 :  20c512c4+2c3=0 

Solving for the coefficients of  x5 , all we have is  2c5x5 

This is the only coefficient of  x5  on the left hand side of the equation, and the coefficients for  x5  on the right hand side = -6

Coefficients of  x5 :  2c5=6 

Part 2

Expanding the 3 series using j = 0 to 5, we get:

 2c0+2c1x3c1+2c2x23c2(2)x+2c2+2c3x33(3)c3x2+3(2)c3x+2c4x43(4)c4x3+4(3)c4x2+2c5x53(5)c5x4+5(4)c5x3=4x26x5 

Simplifying and grouping like terms we get:

 (2c03c1+2c2)+(2c16c2+6c3)x+(2c29c3+12c4)x2+(2c312c4+20c5)x3+(2c415c5)x4+2c5x5=4x26x5 

Compared to the answers of part 1, it can be seen that all the coefficients are equivalent, verifying that the two series are equivalent.

Part 3

Matrix form of the solution:

 [2320000266000029120000212200000215000002][c0c1c2c3c4c5]=[004006] 

Part 4

Solving by back substitution, the first constant we solve for is c5

 2c5=6 

 c5=3 

 15c5+2c4=0 

 15(3)+2c4=0 

 c4=22.5 

 20c512c4+2c3=0 

 20(3)12(22.5)+2c3=0 

 c3=105 

 12c49c3+2c2=4 

 12(22.5)9(105)+2c2=4 

 c2=335.5 

 6c36c2+2c1=0 

 6(105)6(335.5)+2c1=0 

 c1=691.5 

 2c23c1+2c0=0 

 2(335.5)3(691.5)+2c0=0 

c0=701.75 

Part 5

The particular solution is of the form  yp=c0+c1x+c2x2+c3x3+c4x4+c5x5 

Therefore, the particular solution to the differential equation =  yp=701.75691.5x335.5x2105x322.5x43x5 

To find the general solution, we need to add the particular solution to the homogenous solution.

The homogenous solution is given by:

 (λ11)(λ22)=0 

 yh=C1eλ1x+C2eλ2x=C1ex+C2e2x 

Therefore the general solution is:

 yh+yp=C1ex+C2e2x701.75691.5x335.5x2105x322.5x43x5 

Now using the initial conditions to solve for the remaining constants we need the general solution and the derivative of the general solution.

 y(x)=C1ex+2C2e2x691.5671x315x290x315x4 

 y(0)=1=C1+C2701.75 

 y(0)=0=C1+2C2691.5 

We can move the 1 over, and then subtract the equations to solve for  C2 

 C211.25=0C2=11.25 

 C1+C2701.75=1 

 C1=1+701.7511.25=714 

Therefore the final general solution y(x) is:

 y(x)=714ex11.25e2x701.75691.5x335.5x2105x322.5x43x5 

Matlab code: x = 0:0.001:100;

y = 714*exp(x) - 11.25*exp(2*x) - 701.75 - 691.5*x - 335.5*x.^2 - 105*x.^3 - 22.5*x.^4 - 3*x.^5;

plot(x,y)

xlabel('x')

ylabel('y(x)')

File:R3.5.png

Author

This problem was solved and uploaded by: David Herrick

This problem was proofread by Michael Wallace

R 3.6

Question

Solve the L2-ODE-CC (2) p.7-11 with initial conditions (2b) p.3-6 differently as follows. Consider the following two L2-ODE-CC (see p. 7-2b)
yp,13yp,1+2yp,1=r1(x)=4x2
yp,23yp,2+2yp,2=r2(x)=6x5
The particular solution to yp,1 had been found in R3.3 p.7-11.
Find the particular solution yp,2 , and then obtain the solution y for the L2-ODE-CC (2) p.7-11 with initial conditions (2b) p.3-6.

Given

First particular solution:
yp,1=2x2+6x+7
Initial Conditions:
y(0)=1
y(0)=0

Solution

Particular Solution
Because of the specific excitation r2(x)=6x5 , using table 2.1 from K 2011 p.82, the correct form for the particular solution is yp(x)=j=0nKjxj
Then the following is presented:
yp,2=c0+c1x+c2x2+c3x3+c4x4+c5x5
yp,2=c1+2c2x+3c3x2+4c4x3+5c5x4
yp,2=2c2+6c3x+12c4x2+20c5x3


Plug these equations back into the original yp,23yp,2+2yp,2=6x5


(2c2+6c3x+12c4x2+20c5x3)3(c1+2c2x+3c3x2+4c4x3+5c5x4)+2(c0+c1x+c2x2+c3x3+c4x4+c5x5)=6x5


Use coefficient matching, the following equations are a result:
c:2c23c1+2c0=0
x:6c36c2+2c1=0
x2:12c49c3+2c2=0
x3:20c512c4+2c3=0
x4:15c5+2c4=0
x5:2c5=6
Use back substitution method to solve for every coefficient, starting with c5
2c5=6c5=3
2c415(3)=0c4=452
2c312(452)+20(3)=0c3=105
2c29(105)+12(452)=0c2=6752
2c16(6752)+6(105)=0c1=13952
2c03(13952)+2(6752)=0c0=28354


Plug these values back into yp,2=c0+c1x+c2x2+c3x3+c4x4+c5x5 :


                                        yp,2=2835413952x6752x2105x3452x43x5


Superposition principle applies ( L2-ODE-CC ), yp=yp,1+yp,2 gives the general particular solution:


                                         yp(x)=2807413832x6712x2105x3452x43x5
Homogeneous Solution


yh3yh+2yh=0
Because of the linearity, a combination of two linear independent solutions is also a solution to this homogeneous equation:
yh,13yh,1+2yh,1=0
yh,23yh,2+2yh,2=0


With the solutions as:
yh,1=eλ1x
yh,2=eλ2x


To determine the value of λ1,2, the characteristic equation must be determined from the homogeneous equation
λ23λ+2=0
λ1,2=a±a24b2
λ1,2=(3)±(3)24(2)2
λ1=2λ2=1


The solutions for each distinct linearly independent homogeneous equation become:
yh,1=e2x
yh,2=ex


The combination of the previous two equations, multiplied by two constants that satisfy two initial conditions, is also a solution:
                                                    yh(x)=C1e2x+C2ex

General Solution

The general or overall solution for the L2-ODE-CC:
y(x)=yh+yp
y(x)=C1e2x+C2ex2807413832x6712x2105x3452x43x5
y(x)=2C1e2x+C2ex13832671x315x290x315x4


Use initial conditions to solve for C1 and C2:
1=C1+C228074
0=C1+C213832
C1=454C2=714


The general solution:
                 y(x)=454e2x+714ex2807413832x6712x2105x3452x43x5

Author

This problem was solved and uploaded by Derik Bell

This problem was proofread by Michael Wallace

R 3.7

Question

Expand the series on both sides of (1)-(2) p.7-12b to verify these equalities.

Equation (1)

j=25cjj(j1)xj2=j=03cj+2(j+2)(j+1)xj

Equation (2)

j=15cjjxj1=j=04cj+1(j+1)xj

Solution

Expanding both sides of Equation (1) yields the following expression:

c2(2)(1)x0+c3(3)(2)x+c4(4)(3)x2+c5(5)(4)x3=2c2+6c3x+12c4x2+20c5x3

Therefore, they are equivalent.

Expanding both sides of Equation (2) yields the following expression:
c1(1)x0+c2(2)x1+c3(3)x2+c4(4)x3+c5(5)x4=c1+2c2x+3c3x2+4c4x3+5c5x4

Therefore, they are equivalent.

Author

This problem was solved and uploaded by: William Knapper

This problem was proofread by: Joshua House

R 3.8

Question

K 2011 p84 pbs. 5,6
Find a (real) general solution. State which rule you are using. Show each step of your work.

Problem 5 Solution

 y+4y+4y=excos(x) 


Step 1: General Solution of the Homogeneous ODE
Characteristic Equation:

 λ2+4λ+4=0 


Solve for the determinate:

 a24b=1616=0 


Indicates a double real root, therefore:

 yh=ea2x(C1+C2x) 
=e42x(C1+C2x)=e2x(C1+C2x) 


Step 2: Particular solution  yp  of the non-homogeneous ODE.
Using the Basic Rule and Table 2.1:

 r(x)=excos(x) 
 yp(x)=ex(Kcos(x)+Msin(x))  since k = 1, alpha = -1, and omega = 1.


 yp(x)=ex(Ksin(x)+Mcos(x))ex(Kcos(x)+Msin(x)) 
 =ex(cos(x)(MK)sin(x)(K+M)) 
 yp(x)=ex(sin(x)(MK)cos(x)(K+M))ex(cos(x)(MK)sin(x)(K+M)) 
 =ex(sin(x)(2K)+cos(x)(2M)) 


Plugging particular solution to original equation:

 ex(sin(x)(2K)+cos(x)(2M))+4(ex(cos(x)(MK)sin(x)(K+M)))+4(ex(Kcos(x)+Msin(x)))=excos(x) 


Simplifying and canceling gives:

 sin(x)(2K)+cos(x)(2M)+cos(x)(4M4K)sin(x)(4K+4M)+cos(x)(4K)+sin(x)(4M)=cos(x) 


Further simplification gives:

 sin(x)(2K)+cos(x)(6M)=cos(x) 


Comparing sin(x) and cos(x) terms gives:

 2K=0 


Therefore K = 0.

 6M=1 


Therefore M =  16 .
Therefore the General Solution is:

 yg(x)=yh(x)+yp(x) 
 yg(x)=e2x(C1+C2x)+ex(16sin(x)) 




Problem 6 Solution

 y+y+(π2+14)y=ex2sin(πx) 


Step 1: Find the homogeneous solution to the ODE.
Characteristic Equation:

 λ2+λ+π2+14=ex2sin(πx) 


Find the Determinate:

a24b=14(14+π2)=4π


Indicates unreal solutions. Therefore, real homogeneous solution is:

 yh=e2x(Acos(wx)+Bsin(wx)) 


where:

 w=(b14a2)12 =π 


 yh=e2x(Acos(πx)+Bsin(πx)) 


Step 2: Solution  yp  of the non-homogeneous ODE.
Using the Basic Rule and Table 2.1:

 r(x)=ex2sin(πx) 
 yp(x)=ex2(Kcos(πx)+Msin(πx)) 


since alpha =  12 , w =  π , and k = 1.
Therefore:

 yp(x)=12ex2(Kcos(πx)+Msin(πx))+ex2(Kπsin(πx)+Mπcos(πx)) 
 =ex2(cos(πx)(Mπ12K)sin(πx)(Kπ+12M)) 
 yp(x)=12ex2(cos(πx)(Mπ12K)sin(πx)(Kπ+12M))+ex2(sin(πx)(Mπ212Kπ)cos(πx)(Kπ2+12Mπ)) 
 =ex2(cos(πx)(Mπ+14K+Kπ2)+sin(πx)(14M+KπMπ2)) 


Substituting in to the original equation:

 (ex2(cos(πx)(Mπ+14K+Kπ2)+sin(πx)(14M+KπMπ2)))+(ex2(cos(πx)(Mπ12K)sin(πx)(Kπ+12M)))+(π2+14)(ex2(Kcos(πx)+Msin(πx)))=ex2sin(πx) 


Simplifying and Canceling gives:

 cos(πx)(Kπ214K+Mπ2+14M)+sin(πx)(14MMπ2+Kπ2+12K)=sin(πx) 


Comparing  sin(πx)  and  cos(πx)  terms gives:

 Kπ2+14K+Mπ2+14M=0 
 14MMπ2+Kπ2+12K=1 


Solve for K and M:

 Mπ2=14K14MKπ2 


Therefore:

 14M+Kπ2+12K14K+14M+Kπ212M=1 


Reducing gives:

 2Kπ2+14K=1 


Solving for K gives K = 0.05.
Therefore:

 0.05π212(0.05)+Mπ2+14M=0 


Solving for M gives M = -0.046.
Therefore:

 yg(x)=yh(x)+yp(x) 
 yg(x)=e2x(Acos(πx)+Bsin(πx))+ex2(0.05cos(πx)0.046sin(πx)) 

Author

This problem was solved and uploaded by: John North

This problem was proofread by: Michael Wallace

R 3.9

Question

Solve the initial value problem. State which rule you are using. Show each step of your calculation in detail.
13. 8y6y+y=6coshx,y(0)=0.2,y(0)=0.05
14. y+4y+4y=e2xsin2x,y(0)=1,y(0)=1.5

Solution

Problem 13

First, we find the homogeneous ODE solution

8λ26λ+1=0
(4λ1)(2λ1)=0
λ=14,λ=12

which gives the general solution:

yh=c1e14x+c2e12x

Second, we get the particular solution of the non homogeneous ODE.
We can substitute coshx=ex+ex2
Using the sum rule we know that yp=yp1+yp2.
Then using Table 2.1 we can solve:

yp1=c3ex,yp2=c4ex

Then we get

yp=c3ex+c4ex
yp=c3exc4ex
yp=c3ex+c4ex

The original ODE becomes:

8y6y+y=3ex+3ex

Substituting yp into the original ODE and separating into the two components we get:

8c36c3+c3=3

and

8c4+6c4+c4=3

Solving these two equations we get:

c3=1
c4=15

Thus,

yp=ex+15ex

We know that y=yh+yp.
so,

y=c1e14x+c2e12x+ex+15ex

Finding the solution to the initial value problem:

y(0)=0.2=c1(1)+c2(1)+1+15
1=c1+c2
c2=c11

y=14c1e14x+12c2e12x+ex15ex
y(0)=0.05=14c1(1)+12c2(1)+115
0.75=14c1+12c2

Substituting the known value for c2

0.75=14c1+12(c11)
0.75=14c112c112
0.25=14c1

Solving this we find that:

c1=1
c2=2

The final solution is:

y=e14x2e12x+ex+15ex 
Problem 14

First, we find the homogeneous ODE solution

λ2+4λ+4=0
(λ+2)(λ+2)=0
λ=2,λ=2

which gives the general solution:

yh=c1e2x+c2xe2x

Second, we get the particular solution of the non homogeneous ODE.
Using the sum rule and using Table 2.1 we can solve:

yp=e2x(Kcos2x+Msin2x)

e2x is a homogeneous solution so yp becomes:

yp=xe2x(Kcos2x+Msin2x)

Then we find:

yp=(e2x2xe2x)(Kcos2x+Msin2x)+xe2x(2Ksin2x+2Mcos2x)
yp=Ke2xcos2x2Kxe2xcos2x+Me2xsin2x2Mxe2xsin2x2Kxe2xsin2x+2Mxe2xcox2x
yp=Ke2xcos2x+Me2xsin2x+(2K2M)xe2xsin2x+(2K+2M)xe2xcos2x

And,

yp=K[2e2xcos2x2e2xsin2x]+M[2e2xsin2x+2e2xcos2x]+(2K+2M)[(e2x2xe2x)(cos2x)+(2xe2xsin2x)]
+(2K2M)[(e2x2xe2x)(sin2x)+(2xe2xcos2x)]

yp=2Ke2xcos2x2Ke2xsin2xM2e2xsin2x+2Me2xcos2x2Ke2xcos2x+4Kxe2xsin2x+4Kxe2xcos2x
+2Me2xcos2x4Mxe2xcos2x4Mxe2xsin2x2Ke2xsin2x+4Kxe2xsin2x4Kxe2xcos2x
2Me2xsin2x+4Mxe2xsin2x4Mxe2xcos2x

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

Substituting yp into the original ODE:

(4K+4M)e2xcos2x+(4K4M)e2xsin2x+8Kxe2xsin2x8Mxe2xcos2x4Ke2xcos2x+4Me2xsin2x
+(8K8M)xe2xsin2x+(8K+8M)xe2xcos2x+4Kxe2xcos2x+4Mxe2xsin2x=e2xsin2x

(8K+4M)e2xcos2x+4Ke2xsin2x=e2xsin2x

Separating into components we get:

4K=1
8K+4M=0

Solving the two equations we get:

K=14
M=12

Thus,

yp=e2x(14cos2x12sin2x)

We know that y=yh+yp.
so,

y=c1e2x+c2xe2x+e2x(14cos2x12sin2x)

Finding the solution to the initial value problem:

y(0)=1=c1(1)+(1)[14(1)]

We solve,

c1=54

Also,

y=2c1e2x2c2xe2x+c2e2x2e2x(14cos2x12sin2x)+e2x(12sin2xcos2x)
y(0)=1.5=2(54)(1)+c2(1)2(1)[14(1)]+(1)(1)

We solve,

c2=3.5=72

The final solution is:

y=54e2x72xe2x+e2x(14cos2x12sin2x) 

Author

This problem was solved and uploaded by: Radina Dikova

This problem was proofread by: David Herrick

Contribution Summary

Problems 3 and 5 were solved and Problems 1 and 9 were proofread by David Herrick

Problems 1 and 2 were solved and Problem 7 was proofread by Joshua House

Problem 9 was solved by Radina Dikova

Problems 4 and 8 were solved by John North

Problem 7 was solved by William Knapper

Problem 6 was solved by Derik Bell

Problems 2, 3, 4, 5, 6, and 8 were proofread by Michael Wallace

Template:CourseCat