University of Florida/Egm4313/s12.team11.R3

From testwiki
Revision as of 16:17, 25 February 2018 by imported>MaintenanceBot (HTML5 cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Big3


Intermediate Engineering Analysis
Section 7566
Team 11
Due date: February 22, 2012.

Problem 3.1

Solved by Luca Imponenti

Problem Statement

Find the solution to the following L2-ODE-CC: y10y+25y=r(x)

With the following excitation: r(x)=7e5x2x2

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

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

λ210λ+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

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

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;

yp110yp1+25yp1=r1(x)

(Cx2e5x)10(Cx2e5x)+25(Cx2e5x)=r1(x)

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

e5x[25Cx2+10Cx+10Cx+2C50Cx220Cx+25Cx2]=7e5x

e5x2C=7e5x

so C=72 and the first particular solution is,

yp1=72x2e5x

Second Particular Solution

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;

yp210yp2+25yp2=r2(x)

(a2x2+a1x+a0)10(a2x2+a1x+a0)+25(a2x2+a1x+a0)=2x2

2a210(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+(25a120a2)x+(25a010a1+2a2)=2x2


[21025202502500][a2a1a0]=[002]


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

so the second particular solution is,

yp2=225x2+8125x+4125

General Solution

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

y=yh+yp1+yp2

y=c1e5x+c2xe5x+72x2e5x225x2+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(4961253113125x+72x2)225x2+8125x+4125

Plot

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

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

example on p.7-3 y(x)=e5x(425*x+*72x2) (shown in blue)

File:Plot3 1.jpg

Egm4313.s12.team11.imponenti 05:55, 20 February 2012 (UTC)

Problem 3.2

Solved by Gonzalo Perez

Problem Statement

Developing the second homogeneous solution for the case of double real root as a limiting case of distinct roots.

Given

Consider two distinct roots of the form:

λ1=x and λ2=x+ϵ

(where ϵ is perturbation).

Part 1

Given

Find the homogeneous L2-ODE-CC having the above distinct roots.

Solution

(λλ1)(λ(λ1))=0

(λx)(λ(x+ϵ))=0

λ2λxλϵλx+x2+xϵ=0

λ2λ(2x+ϵ)+x(x+ϵ)=0


                   yy(2λ+ϵ)+yλ(λ+ϵ)=0 (1)


Part 2

Given

Show that e(λ+ϵ)xeλxϵ is a homogeneous solution. (2)

Solution

Let's find the corresponding derivatives:

y=e(λ+ϵ)xeλxϵ

y=(λ+ϵ)eλ+ϵxλeλxϵ

y=(λ+ϵ)2e(λ+ϵ)xλ2eλxϵ

If we now take these three equations and plug them into the homogeneous L2-ODE-CC (1), we get:

e(λ+ϵ)x(λ2+2λϵ+ϵ22λ22λϵλϵϵ2+λ2+ϵλ)+eλx(λ2+2λ2+λϵλ2λϵ)=0

00.

      Since the left and right hand sides of the equation are zero, the solution is in fact a homogeneous equation.

Part 3

Given

Find the limit of the homogeneous solution in (2) as epsilon approaches zero (think l'Hopital's Rule).

Solution

Using l'Hopital's Rule,

limϵ0e(λ+ϵ)xeλxϵ=00

(this is an indeterminate form).

L'Hopital's Rule states that we can divide this function into two functions, f(ϵ) and g(ϵ), and then find their derivatives and attempt to find the limit of f(ϵ)g(ϵ). If a limit exists for this, then a limit exists for our original function.

limϵ0f(ϵ)g(ϵ)=limϵ0xex(λ+ϵ)1

=xe(λ+0)x1

                                            =xexλ

Part 4

Given

Take the derivative of eλx with respect to lambda.

Solution

Taking the derivative with respect to lambda, we find that:

                                     d(eλx)dλ=xeλx.

It is important to remember that we must hold x as a constant when finding this derivative.

Part 5

Given

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

Solution

Taking a closer look at Parts 3 and 4 of this problem, we discover that they're in fact equal:

                           d(eλx)dλ=lime0e(λ+ϵ)xeλxϵ=xeλx

Part 6

Given

Numerical experiment: Compute (2) setting lambda equal to 5 and epsilon equal to 0.001, and compare to the value obtained from the exact second homogeneous solution.

Solution

             After performing these calculations, from (2) we get 148.478.
             And from the exact second homogeneous solution, we get 200.05.

Egm4313.s12.team11.perez.gp 20:32, 22 February 2012 (UTC)

Problem 3.3

Solved by Jonathan Sheider

Problem Statement

Find the complete solution to the ODE with the given initial conditions. Plot the solution y(x).

Given

y'3y+2y=4x2

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

Solution

First let us analyze the homogenous solution to the given ODE:

y'3y+2y=0

The characteristic equation for this ODE is therefore:

λ23λ+2=0

Solving for λ:

(λ2)(λ1)=0

λ=1,2

λ1=1 and λ2=2

Therefore the equation has two real roots and a homogenous solution of the following form (from Kreyszig 2011, p.54-57):

yh=c1eλ1x+c2eλ2x

And finally we find the general homogenous solution:

                                                       yh=c1ex+c2e2x


Next let us evaluate the particular solution to the given ODE:

y'3y+2y=4x2

The function on the right hand side of this equation implies that the particular solution has the following form based on Table 2.1 (from Kreyszig 2011, p.82):

yp=Knxn+Kn1xn1+...+K1x+K0

Therefore for this ODE we have:

yp=K2x2+K1x+K0

Differentiating yp to obtain yp' and yp' respectively:

y'=2K2x+K1

y'=2K2

Substituting these equations into the original ODE yields:

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

2K26K2x3K1+2K2x2+2K1x+2K0=4x2

And we know that the coefficients of the variables on each side of the equation must be equal:

(2K2)x2+(2K16K2)x+(2K23K1+2K0)=4x2

Therefore we find:

2K2=4

K2=2

Now, solving for K1 and K0:

2K16K2=0

2K1=6(2)

K1=6

And also: 2K23K1+2K0=0

2K0=3(6)2(2)

K0=7

Finally we arrive at the particular solution:

                                                       yp=2x2+6x+7 



By superposition, we can find the complete general solution:

y=yh+yp

                                                  y=c1ex+c2e2x+2x2+6x+7 



Using the given initial conditions, we can solve for c1 and c2, first by using the initial conditions for y:

y(0)=c1+c2+7=0

Differentiating the complete general solution and using the given initial condition for y':

y'=c1ex+2c2e2x+4x+6

y'(0)=c1+2c2+6=0

Solving this system of equations, by solving the first equation for c1:

c1=7c2

Plugging this into the second equation yields:

(7c2)+2c2+6=1+c2=0

c2=1

And therefore:

c1=7(1)

c1=8

Finally we have the complete general solution that evaluates the given initial conditions:

                                                  y(x)=8ex+e2x+2x2+6x+7



A plot of y(x) from x=3 to x=3 is shown using MatLAB:

File:R3.3.jpg

Checking

Differentiating the solution to find y' and y' respectively:

y=8ex+e2x+2x2+6x+7

y'=8ex+2e2x+4x+6

y'=8ex+4e2x+4

Substituting into the original ODE yields:

y'3y+2y=4x2

(8ex+4e2x+4)3(8ex+2e2x+4x+6)+2(8ex+e2x+2x2+6x+7)=4x2

8ex+4e2x+4+24ex6e2x12x1816ex+2e2x+4x2+12x+14=4x2

(8+2416)ex+(46+2)e2x+(12+12)x+(18+4+14)+4x2=4x2

4x2=4x2

Therefore this solution is correct.

--Egm4313.s12.team11.sheider 21:30, 21 February 2012 (UTC)

Problem 3.4

Solved by Daniel Suh

Problem Statement

Use Basic Rule (1) and Sum Rule (3) to show that the appropriate particular solution for
y3y+2y=4x26x5 is of the form j=0ncjxj, with n = 5.

Solution

Finding the Particular Solution with Basic Rule and Sum Rule

We know that in standard form, for a particular solution,
y'p+ay'p+byp=r(x)
yp=yp1+yp2


Using Basic Rule (1) and Sum Rule (3), we know that
y'p+ay'p+byp=iri(x)


Additionally, we choose
r1(x)yp1(x)
r2(x)yp2(x)

Solving for Particular Solution 1

Using the Method of Undetermined Coefficients, we find that
yp1=C2x2+C1x+C0
y'p1=2C2x+C1
y'p1=2C2


Plugging yp1 into y3y+2y=4x2 gives
(2C2)3(2C2x+C1)+2(C2x2+C1x+C0)=4x2


Solving for coefficients
2C2=4
6C2+2C1=0
3C1+2C0+2C2=0


Results in
C2=2
C1=6
C0=7


yp1=2x2+6x+7

Solving for Particular Solution 2

Using the Method of Undetermined Coefficients, we find that
yp2=K5x5+K4x4+K3x3+K2x2+K1x+K0
y'p2=5K5x4+4K4x3+3K3x2+2K2x+K1
y'p2=20K5x3+12K4x2+6K3x+2K2


Plugging yp2 into y3y+2y=6x5 gives
(20K5x3+12K4x2+6K3x+2K2)3(5K5x4+4K4x3+3K3x2+2K2x+K1)+2(K5x5+K4x4+K3x3+K2x2+K1x+K0)=6x5


Solving for coefficients results in
K5=3
K4=22.5
K3=105
K2=337.5
K1=697.5
K0=708.75


yp2=3x522.5x4105x3337.5x2697.5x708.75

Combining Particular Solutions

Plugging yp1 and yp2 into
yp=yp1+yp2 gives


               yp=3x522.5x4105x3335.5x2691.5x701.75

Comparing to Summation Form

The particular solution in the summation form is
yp=j=0ncjxj

if n=5, then
yp=j=05cjxj
y'p=j=05cj*j*x(j1)
y'p=j=05cj*j*(j1)*x(j2)

Plugging the particular solution into y3y+2y=6x5, the final solution gives

         yp=3x522.5x4105x3335.5x2691.5x701.75

(check Problem 3.5 for explanation on how to get this answer)


Result

As you can see, the two particular solutions of yp are equal. Thus, using the Basic Rule (1) and Sum rule (3) does give you the correct particular solution for
y3y+2y=4x26x5, in the form of yp=j=0ncjxj

Created by [Daniel Suh] 20:57, 21 February 2012 (UTC)

Problem 3.5

Solved by: Andrea Vargas

Problem Statement

Given y3y+2y=4x26x5

1. Obtain the coefficients of x,x2,x3,x5
2.Verify all equations by long-hand expansion. Use the series before adjusting the indexes.

3. Put the system of equations in an upper triangular matrix.

4. Solve for c0,c1,c2,c3,c4,c5 by using back substitution.

5. Using the initial conditions y(0)=1,y(0)=0 find y(x) and plot it

Solution

1. To obtain the equations for the coefficients we use the following equation from (1) p7-11:

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

Finding the coefficients of x where j=1:

[c3(3)(2)3(c2)(2)+2c1]x1=[6c36c2+2c1]x

Finding the coefficients of x2 where j=2:

[c4(4)(3)3(c3)(3)+2c2]x2=[12c49c3+2c2]x2

Finding the coefficients of x3 where j=3:

[c5(5)(4)3(c4)(4)+2c3]x3=[20c412c3+2c2]x3

Finding the coefficients of x5 where j=5:

c5x5

2. To verify all the above equations by long hand expansion we use the following equation from (4) p7-12:
j=25cj×j×(j1)×xj23j=15cj×j×xj1+2j=05cj×xj=4x26x5

Finding the coefficients when j=0:

2c0

Finding the coefficients when j=1:

3c1+2c1x1

Finding the coefficients when j=2:

2c26c2x+2c2x2

Finding the coefficients when j=3:

6c3x9c3x2+2c3x3

Finding the coefficients when j=5:

20c5x315c5x4+2c5x5

By collecting these terms we can compare them to the equations of part 1.

Coefficients of x:

[c3(3)(2)3(c2)(2)+2c1]x1=[6c36c2+2c1]x

Coefficients of x2:

[c4(4)(3)3(c3)(3)+2c2]x2=[12c49c3+2c2]x2

Coefficients of x3:

[c5(5)(4)3(c4)(4)+2c3]x3=[20c412c3+2c2]x3

Coefficients of x5:

c5x5

We can see that we obtain the same system of equations to solve for the coefficients with both methods.

3.Constructing the coefficients matrix:
[2320000266000029120000212200000215000002]

Then, the system becomes:

[2320000266000029120000212200000215000002][c0c1c2c3c4c5]=[004006]

4. Solving for the coefficients:
2c5=6c5=3
2c4(15)(3)=0c4=452
2c312(452)+20(3)=0c3=105
2c29(105)+12(452)=4c2=6712
2c16(6712)+6(105)=0c1=13832
2c03(13832)+2(6712)=0c0=28074

Particular solution

This yields the particular solution:

                                                            yp(x)=3x5452x4105x36712x213832x28074

Homogeneous Solution

y'hy'h+2yh=0
λ23λ+2=0
Then, we can find the characteristic equation:
(λ2)(λ1)
λ=2,1
Then the solution for the homogeneous equation becomes:

                                                                                      yh(x)=C1e2x+C2ex

General Solution

Using the given initial conditions y(0)=1,y(0)=0 we find the overall solution:

y(x)=yh+yp
y(x)=C1e2x+C2ex3x5452x4105x36712x213832x28074
y(x)=2C1e2x+C2ex15x490x3315x2671x13832
Using the initial conditions to solve for C1 and C2

1=C1+C228074
0=C1+C213832
C1=454C2=714

The general solution becomes

                                                     y(x)=454e2x+714ex3x5452x4105x36712x213832x28074

Plot

Below is a plot of the solution:

File:R3 5.jpg

--Egm4313.s12.team11.vargas.aa 05:56, 21 February 2012 (UTC)

Problem 3.6

Solved by Francisco Arrieta

Problem Statement

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

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


Plugging these equations back in 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


Using coefficient matching of left hand side to the right hand side of the equation, the following equations are obtained
c:2c23c1+2c0=0
x:6c36c2+2c1=0
x2:12c49c3+2c2=0
x3:20c512c4+2c3=0
x4:15c5+2c4=0
x5:2c5=6


Which is equivalent to the following matrix
[2320000266000029120000212200000215000002][c0c1c2c3c4c5]=[000006]


Using 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


Plugging these values back into yp,2=c0+c1x+c2x2+c3x3+c4x4+c5x5 gives


                                        yp,2=2835413952x6752x2105x3452x43x5


Since these equations are L2-ODE-CC, the superposition principle applies and yp=yp,1+yp,2 and the general particular solution becomes


                                         yp(x)=2807413832x6712x2105x3452x43x5


Homogeneous Solution

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


With solutions
yh,1=eλ1x
yh,2=eλ2x


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


Then the solutions for each distinct linearly independent homogeneous equation becomes
yh,1=e2x
yh,2=ex


Because of linearity, the linear combination of the previous two equations times two constants that satisfy 2 initial conditions, is also a solution
                                                    yh(x)=C1e2x+C2ex


General Solution

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


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


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

--Egm4313.s12.team11.arrieta 20:26, 19 February 2012 (UTC)


Problem 3.7


Solved By Kyle Gooding

Problem Statement


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

Given

j=25Cj*j(j1)xj2=j=03Cj+2*(j+2)(j+1)xj

(2)
j=15Cj*jxj1=j=04Cj+1*(j+1)xj

Solutions

Expanding both sides of (1) results in:
j=25Cj*j(j1)xj2=C2(2)(21)x0+C3(3)(31)x1+C4(4)(41)x2+C5(5)(51)x3
j=03Cj(j+2)(j+1)xj=C0+2(0+2)(0+1)x0+C1+2(1+2)(1+1)x1+C2+2(2+2)(2+1)x2+C3+2(3+2)(3+1)x3


Simplifying:
j=25Cj*j(j1)xj2=C2(2)+C36x+C412x2+C520x3
j=03Cj(j+2)(j+1)xj=C2(2)+C36x+C412x2+C520x3

 The two sums are equal.

Expanding both sides of (2) results in:
j=15Cj*jxj1=C1(1)x0+C2(2)x1+C3(3)x2+C4(4)x3+C5(5)x4
j=04Cj+1*(j+1)xj=C0+1(0+1)x0+C1+1(1+1)x1+C1+2(2+1)x2+C2+2(3+1)x3+C3+2(4+1)x4

Simplifying:
j=15Cj*jxj1=C1(1)+C2(2)x1+C3(3)x2+C4(4)x3+C5(5)x4
j=15Cj*jxj1=C1(1)+C2(2)x1+C3(3)x2+C4(4)x3+C5(5)x4

 The two sums are equal.

Egm4313.s12.team11.gooding 23:49, 19 February 2012 (UTC)

Problem 3.8

solved by Luca Imponenti

Kreyszig 2011 pg.84 problem 5

Problem Statement

Find a (real) general solution. State which rule you are using. Show each step of your work.

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

Homogeneous Solution

To find the homogeneous solution, yh, we must find the roots of the equation

λ2+4λ+4=0

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

λ=2

We know the homogeneous solution for the case of a double root to be

yh=c1eλx+c2xeλx

yh=c1e2x+c2xe2x

Particular Solution

We have the following excitation

r(x)=excos(x)

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

yp(x)=ex[Kcos(x)+Msin(x)]

Since this does not correspond to our homogeneous solution we can use the Basic Rule (a), K 2011, pg. 81 to solve for the particular solution

yp+4yp+4yp=r(x)

where

yp=ex[Ksin(x)+Mcos(x)]ex[Kcos(x)+Msin(x)]

yp=ex[Ksin(x)+Mcos(x)Kcos(x)Msin(x)]

and

yp=ex[Kcos(x)Msin(x)+Ksin(x)Mcos(x)]ex[Ksin(x)+Mcos(x)Kcos(x)Msin(x)]

yp=ex[Kcos(x)Msin(x)+Ksin(x)Mcos(x)+Ksin(x)Mcos(x)+Kcos(x)+Msin(x)]

yp=ex[2Ksin(x)2Mcos(x)]

Plugging these equations back into the differential equation

yp+4yp+4yp=r(x)

ex[2Ksin(x)2Mcos(x)]+4ex[Ksin(x)+Mcos(x)Kcos(x)Msin(x)]+4ex[Kcos(x)+Msin(x)]=excos(x)

ex[2Ksin(x)2Mcos(x)4Ksin(x)+4Mcos(x)4Kcos(x)4Msin(x)+4Kcos(x)+4Msin(x)]=excos(x)

2Mcos(x)2Ksin(x)=cos(x)

from the above equation it is obvious that K=0 and M=12

therefore the particular solution to the differential equation is

yp(x)=12exsin(x)

General Solution

The general solution will be the summation of the homogeneous and particular solutions

y(x)=yh(x)+yp(x)

y(x)=c1e2x+c2xe2x+12exsin(x)

   y(x)=e2x(c1+c2x)+12exsin(x)

The coefficients c1 and c2 can be readily solved for given either initial conditions or boundary value conditions.

Kreyszig 2011 pg.84 problem 6

Problem Statement

Find a (real) general solution. State which rule you are using. Show each step of your work.

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

Homogeneous Solution

To find the homogeneous solution, yh, we must find the roots of the equation

λ2+λ+(π2+14)=0

λ=b±b24ac2a with a=1,b=1,c=(π2+14)

λ=1±124*1*(π2+14)2*1

λ=α±iω=12±πi

We know the homogeneous solution for the case of a double root to be

yh=eαx[Acos(ωx)+Bsin(ωx)]

yh=ex2[Acos(πx)+Bsin(πx)]

Particular Solution

We have the following excitation

r(x)=ex2sin(πx)

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

yp(x)=ex2[Kcos(πx)+Msin(πx)]

Since this corresponds to our homogeneous solution we must use the Modification Rule (b), K 2011, pg. 81 to solve for the particular solution

so yp(x)=xex2[Kcos(πx)+Msin(πx)]

differentiating

yp=πxex2[Ksin(πx)+Mcos(πx)]+(ex212xex2)[Kcos(πx)+Msin(πx)]

yp=ex2(πx[Ksin(πx)+Mcos(πx)]+(112x)[Kcos(πx)+Msin(πx)])

yp=ex2[πxKsin(πx)+πxMcos(πx)+Kcos(πx)+Msin(πx)12xKcos(πx)12xMsin(πx)]

and

yp=ex2[π2xKcos(πx)πKsin(πx)π2xMsin(πx)+πMcos(πx)πKsin(πx)+πMcos(πx)+12πxKsin(πx)12Kcos(πx)12πxMcos(πx)12Msin(πx)]12ex2[πxKsin(πx)+πxMcos(πx)+Kcos(πx)+Msin(πx)12xKcos(πx)12xMsin(πx)]

yp=ex2[π2xKcos(πx)πKsin(πx)π2xMsin(πx)+πMcos(πx)πKsin(πx)+πMcos(πx)+12πxKsin(πx)12Kcos(πx)12πxMcos(πx)12Msin(πx)+12πxKsin(πx)12πxMcos(πx)12Kcos(πx)12Msin(πx)+14xKcos(πx)+14xMsin(πx)]

grouping cosine and sine terms we get

yp=ex2[(2πMπxM+(14π2)xKK)cos(πx)+((14π2)xMM+πxK2πK)sin(πx)]

and

yp=ex2[(πxM+K12xK)cos(πx)+(πxK+M12xM)sin(πx)]

next we substitute the above equations into the ODE

yp+yp+(π2+14)yp=r(x)

ex2[(2πMπxM+(14π2)xKK)cos(πx)+((14π2)xMM+πxK2πK)sin(πx)]+ex2[(πxM+K12xK)cos(πx)+(πxK+M12xM)sin(πx)]+(π2+14)xex2[Kcos(πx)+Msin(πx)]=ex2sin(πx)

ex2[(2πMπxM+(14π2)xKK)cos(πx)+((14π2)xMM+πxK2πK)sin(πx)+(πxM+K12xK)cos(πx)+(πxK+M12xM)sin(πx)+(π2+14)x(Kcos(πx)+Msin(πx))]=ex2sin(πx)

ex2[(2πMπxM+(14π2)xKK+πxM+K12xK+(π2+14)xK)cos(πx)+((14π2)xMM+πxK2πKπxK+M12xM+(π2+14)xM)sin(πx)]=ex2sin(πx)

2πMcos(πx)2πKsin(πx)=sin(πx)

after cancelling terms; we can equate cosine and sine coefficients to get two equations

2πM=0

2πK=1

so M=0 and K=12π

and the particular solution to the ODE is

yp(x)=12πxex2cos(πx)

General Solution

The general solution will be the summation of the homogeneous and particular solutions

y=yh+yp

y=ex2[Acos(πx)+Bsin(πx)]12πxex2cos(πx)

   y=ex2[Acos(πx)+Bsin(πx)12πxcos(πx)]

Egm4313.s12.team11.imponenti 04:28, 21 February 2012 (UTC)

Problem 3.9

Solved by Gonzalo Perez

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)


Egm4313.s12.team11.perez.gp 20:34, 22 February 2012 (UTC)

Template:CourseCat