Jump to content

University of Florida/Egm4313/s12.team11.imponenti/R3.1

From Wikiversity

Report 3, Problem 1

[edit | edit source]

Problem Statement

[edit | edit source]

Find the solution to the following L2-ODE-CC: y″−10y′+25y=r(x)

With the following excitation: r(x)=7e5x−2x2

And the following initial conditions: y(0)=4,y′(0)=−5

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

Homogeneous Solution

[edit | edit source]

To find the homogeneous solution we need to find the roots of our equation

λ2−10λ+25=0 (λ−5)(λ−5)=0 λ=5

We know the homogeneous solution for the case of a real double root with λ=5 to be

yh=c1e5x+c2xe5x

Particular Solution

[edit | edit source]

For the given excitation we must use the Sum Rule to the particular solution as follows

yp=yp1+yp2 where yp1 and yp2 are the solutions to r1(x)=7e5x and r2(x)=−2x2, respectively

First Particular Solution

[edit | edit source]

r1(x)=7e5x,

from table 2.1, K 2011, pg. 82 we have

yp1=Ce5x

but this corresponds to one of our homogeneous solutions so we must use the modification rule to get

yp1=Cx2e5x

Plugging this into the original L2-ODE-CC then substituting;

yp″1″−10yp′1′+25yp1=r1(x)

(Cx2e5x)″−10(Cx2e5x)′+25(Cx2e5x)=r1(x)

25Cx2e5x+10Cxe5x+10Cxe5x+2Ce5x−10(5Cx2e5x+2Cxe5x)+25Cx2e5x=7e5x

e5x[25Cx2+10Cx+10Cx+2C−50Cx2−20Cx+25Cx2]=7e5x

e5x2C=7e5x

so C=72 and the first particular solution is,

yp1=72x2e5x

Second Particular Solution

[edit | edit source]

r2(x)=−2x2,

from table 2.1, K 2011, pg. 82 we have

yp2=a2x2+a1x+a0

Plugging this into the original L2-ODE-CC then substituting;

yp″2″−10yp′2′+25yp2=r2(x)

(a2x2+a1x+a0)″−10(a2x2+a1x+a0)′+25(a2x2+a1x+a0)=−2x2

2a2−10(2a2x+a1)+25(a2x2+a1x+a0)=−2x2

grouping like terms we get three equations to solve for the three unknowns, these are written in matrix form

25a2x2+(25a1−20a2)x+(25a0−10a1+2a2)=−2x2


[2−1025−202502500][a2a1a0]=[00−2]


solving by back subsitution leads to a2=−225,a1=8125,a0=4125

so the second particular solution is,

yp2=−225x2+8125x+4125

General Solution

[edit | edit source]

The general solution is the summation of the homogeneous and particular solutions

y=yh+yp1+yp2

y=c1e5x+c2xe5x+72x2e5x−225x2+8125x+4125

y=e5x(c1+c2x+72x2)−225x2+8125x+4125

Applying the first initial condition y(0)=4

y(0)=c1+4125=4

c1=496125

Second initial condition y′(0)=−5

y′=ddxy=e5x[5(c1+c2x+72x2)+c2+7x]−425x+8125

y′=e5x[352x2+(5c2+7)x+5c1+c2]−425x+8125

y′(0)=5c1+c2+8125=−5

c2=−3113125

The general solution to the differential equation is therefore

                    y(x)=e5x(496125−3113125x+72x2)−225x2+8125x+4125

Below is a plot of this solution and the solution to in the example on p.7-3

our solution y(x)=e5x(496125−3113125x+72x2)−225x2+8125x+4125 (shown in red)

example on p.7-3 y(x)=e5x(4−25∗x+∗72x2) (shown in blue)

Egm4313.s12.team11.imponenti 22:31, 20 February 2012 (UTC)