University of Florida/Egm4313/s12.teamboss/R3

From testwiki
Revision as of 09:59, 29 March 2024 by imported>Desb42 (fix some math)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Big3


Problem R3.1: Using the Method of Undetermined Coefficients and the Modification Rule to find a solution

Statement

Given the double root λ=5 and the excitation r(x)=7e5x2x2, with the initial conditions y(0)=4,y(0)=5 find the solution y(x).
Plot this solution and the solution to the same problem except with the excitation r(x)=7e5x.

Solution

The solution y(x) is composed of a general solution and a particular solution so that y(x)=yg(x)+yp(x).
Using the given double root, we can find the equation for the characteristic equation which leads to the homogeneous solution:

(λ5)2=λ210λ+25=0

(1.0)


Homogeneous solution:

y10y+25y=r(x)

(1.1)


y10y+25y=7e5x2x2

(1.2)


First, by using the Modification Rule, we find that the general equation associated with the given double root is:

yg(x)=C1e5x+C2xe5x

(1.3)


We need to find the particular solution to the excitation r(x)=7e5x2x2. In analyzing the excitation, it is found that the particular solution looks like this:

yp(x)=Cx2e5x[K2x2+K1x+K0]

(1.4)


Now, we need to find the values for the constants C,K2,K1,K0, by taking the first and second derivatives of the particular solution:

yp(x)=Cx2e5x[K2x2+K1x+K0]

(1.4)


yp(x)=2Cxe5x+5Cx2e5x[2K2x+K1]

(1.5)


yp(x)=2Ce5x+20Cxe5x+25Cx2e5x[2K2]

(1.6)


Now, plug these into the homogeneous solution (1.2) and simplify:

2Ce5x2K2+20K2x+10K125K2x225K1x25K0=7e5x2x2

(1.7)


Comparing the coefficients for e5x,x2 and x allows us to solve for the unknown coefficients:

e5x:2C=7C=7/2

(1.8)


x2:25K2=2K2=0.08

(1.9)


x:20K225K1=0K1=0.064

(1.10)


2K2+10K125K0=0K0=0.0192

(1.11)


Plug into yp(x) (1.4):

yp(x)=72x2e5x[0.08x2+0.064x+0.0192]

(1.12)


Now that we have the particular solution, we can use the initial conditions to solve for the unknown constants in the general solution, yg(x), and then we will be able to solve for the final solution y(x):

y(x)=C1e5x+C2xe5x+72x2e5x[0.08x2+0.064x+0.0192]

(1.13)


Take derivative of (1.13):

y(x)=5C1e5x+C2e5x+5C2xe5x+7xe5x+352x2e5x[0.16x+0.064]

(1.14)


Using the given initial conditions and equations (1.13) and (1.14):

y(0)=44=C10.0192C1=4.0192

(1.15)


y(0)=55=5C1+C20.064C2=15.032

(1.16)


Plug these constants back into the solution (1.13) to obtain the final solution:

y(x)=4.0192e5x15.032xe5x+72x2e5x[0.08x2+0.064x+0.0192]

(1.17)

The solution to the same problem but with excitation r(x)=7e5x is:

y(x)=4e5x25xe5x+72x2e5x

(1.18)


This is the plot for (1.17) and (1.18):

File:R3.1PLOT.jpg

Author

Solved and Typed By - --Egm4313.s12.team1.wyattling 22:00, 20 February 2012 (UTC)
Reviewed By - Egm4313.s12.team1.armanious 22:39, 21 February 2012 (UTC)




Problem R3.2 Perturbation Method for Double Real Root

Statement

Perturbation method for double real root:
Developing the 2nd homogeneous solution for the case of double real root as a limiting case of distinct roots (see Sec7 p. 7-5 ). Consider two distinct real roots of the form:

λ1=λ,λ2=λ+ϵ

1) Find the homogeneous L2-ODE-CC having the above distinct roots.
2) Show that the following is a homogeneous solution:
e(λ+ϵ)xeλxϵ

The fraction in (3) p.7-5, for small ϵ, is a finite difference formula that approximates the derivative

e(λ+ϵ)xeλxϵddλeλx

In fact,
ddλeλx=limϵ0e(λ+ϵ)xeλxϵ

3)Find the limit of the homogeneous solution in (3) p.7-5 as [epsilon goes to 0] (think l'Hopital's rule)

4)Take the derivative of eλx with respect to λ
5)Compare the results in Parts (3) and (4), and relate to the result by variation of parameters.
6)Numerical experiment: Compute (3) p.7-5 using at λ=5 and with ϵ=0.001, and compare to get the value obtained from the exact 2nd homogeneous solution.

Solution

In order to find the corresponding L2-ODE-CC, the characteristic equation corresponding to the given solution must be found:

(λλ)(λλϵ)=0

(2.0)

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

(2.1)

Therefore the corresponding L2-ODE-CC is:

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

(2.2)

Note: if ε is equal to zero, the characteristic equation of 2.2 has a double real root at λ.

To show that the following is a homogeneous solution, the first and second derivatives must be taken:

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

(2.3)

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

(2.4)

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

(2.5)

Using these values in 2.2 yields:

(λ+ϵ)2e(λ+ϵ)xλ2eλxϵ(2λ+ϵ)[(λ+ϵ)e(λ+ϵ)xλeλx]ϵ+(λ2+λϵ)[e(λ+ϵ)xeλx]ϵ=0

(2.6)

Rearranging and simplifying yields:

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

(2.7)

All of the terms in the above equation cancel to yield:

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

(2.8)

Using l'Hopital's rule:

limϵ0e(λ+ϵ)xeλxϵ=limϵ0ddϵ(e(λ+ϵ)xeλx)ddϵ(ϵ)=limϵ0ddϵ(e(λ+ϵ)x)01

(2.9)

Simplifying further:

limϵ0ddϵ(e(λ+ϵ)x)=limϵ0xe(λ+ϵ)x=xlimϵ0e(λ+ϵ)x

(2.10)

This ultimately yields:

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

(2.11)

The following should also be taken into consideration:

ddλ(eλx)=xeλx

(2.12)

Clearly, the results of 2.11 and 2.12 are equivalent. This shows that y(x)=xeλx is an appropriate solution to a homogeneous L2-ODE-CC having one double root.

To test this, test values will be used to solve for the approximate (2.12) and exact (2.13) solutions of the ODE. For this test, λ=5 and ϵ=0.001

yapprox(x)=e(5+0.001)xe5x0.001=1000(e0.001x1)e5x

(2.13)

yexact(x)=xe5x

(2.14)

If the above derivations are true, then the following approximation must also be true:

1000(e0.001x1)x

(2.15)

Plotting both sides of 2.15 as a function of x shows that this is a valid approximation for most values of x.

Figure 3.2-1

File:Fig3.2.1.png


Author

Solved and Typed By - Egm4313.s12.team1.armanious 05:51, 21 February 2012 (UTC)
Reviewed By - --Egm4313.s12.team1.durrance 02:53, 22 February 2012 (UTC)




Problem R3.3 Finding Solution of ODE with Polynomial Excitation

Statement

Find the complete solution for y3y+2y=4x2, with the initial conditions

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

Plot the solution y(x).

Solution

First we create the characteristic equation in standard form:

λ23λ+2=0

(3.0)


Then, by setting it equal to zero, we can find what λ equals:

(λ2)(λ1)=0

(3.1)


λ=2,λ=1

(3.2)

Given two, distinct, real roots, the general solution looks like this:

yg(x)=C1e2x+C2ex

(3.3)

By using the method of undetermined coefficients, the excitation 4x2 is analyzed to yield a particular solution:
In assessing a polynomial with a second power, the form of the particular solution will look like this:

yp(x)=A2x2+A1x+A0

(3.5)


It's derivative would look like this:

yp(x)=2A2x+A1

(3.6)


And the second derivative to follow would then become:

yp(x)=2A2

(3.7)


Based on the coefficients, the following system of equations exists:

2A2=4

(3.8)


6A2+A1=0

(3.9)


2A23A1+A0=0

(3.10)


The results of this set of equations make the coefficients of A's:

A2=2


A1=12


A0=32


The resulting particular equation looks like this:

yp(x)=2x2+12x+32

(3.11)


By adding the particular and general solutions, we get the complete solution:

2x2+12x+32+C1e2x+C2ex=y

(3.12)


We consider the initial conditions by taking the first derivative of the complete solution:

4x+12+2C1e2x+C2ex=y

(3.13)


By plugging in 0 for x, 1 for y, and 0 for y', we can solve for the constants C1,C2:

y(0)=1=2*02+12*0+32+C1e2*0+C2e0=32+C1+C2=1

(3.14)


y(0)=0=4*0+12+2C1e2*0+C2e0=12+2C1+C2=0

(3.15)


Solving the equations proves that C1=19,C2=50:
The resulting complete solution with consideration for initial conditions then becomes:

2x2+12x+32+19e2x50ex=y

(3.12)


y plotted looks like this:

File:R33graph.jpg


Author

Solved and Typed By -Egm4313.s12.team1.silvestri 15:56, 19 February 2012 (UTC)
Reviewed By -Egm4313.s12.team1.armanious 03:02, 22 February 2012 (UTC)




Problem R3.4 Solving for Particular Solution in Summation Form

Statement

From R3.4 in Sec 3 p. 7-11; Use the Basic Rule 1 and the Sum Rule to show that the appropriate particular solution for

y3y+2y=4x26x5

(4.1)

is of the form

yp(x)=j=0ncjxj

(4.2)

i.e.,

yp(x)=j=05cjxj

(4.3)

Basic Rule: Select yp(x) from the table and determine the coefficients by substituting yp(x) in

y+ay+by=r(x)

(4.4)

Sum Rule: If r(x) is the sum of the terms in the 1st column of table 2.1 then yp(x) is the sum of the corresponding terms in the 2nd column of this table.

Table 2.1

File:Table2.1.JPG


Solution

According to the table the Homogeneous equation has two r(x) values of the form kxn(n=0,1,2...). Using the Basic Rule this means that there is a particular solution of the form Knxn+Kn1xn1+...+K1x+K0 for each r(x).

r1(x)=4x2r1(x)=Kxn(n=2)

(4.5)

So the particular solution for this r1(x) should be:

yp1=K2x2+K1x1+K0

(4.6)

Where K=4. Which simplifies to:

yp1=j=02Kjxj

(4.7)

For the second r2(x):

r2(x)=6x5r2(x)=Cxn(n=5)

(4.8)

So the particular solution for this r2(x) should be:

yp2=C5x5+C4x4+C3x3+C2x2+C1x+C0

(4.9)

Where C=4. Which simplifies to:

yp1=j=05Cjxj

(4.10)

Using the sum rule:

yp=j=02Kjxj+j=05Cxj

(4.11)

Now using the Sum Rule which just states if there are two r(x) values in any form on the left side of the table, then the particular solution is the sum of the solutions for r(x) on the right side of the table.

So the particular solution for y3y+2y=4x26x5 where c=K+C

yp=j=05cjxj

(4.12)

Author

Solved and Typed By - User:Egm4313.s12.team1.stewart 22:47, 21 February 2012 (UTC)
Reviewed By - Egm4313.s12.team1.silvestri 04:57, 22 February 2012 (UTC)




Problem R3.5: Finding Particular Solutions by Combining Linear Coefficient Series Expansions

Statement

Given:

y3y+2y=4x26x5

(5.0)


yp(x)=j=05cjxj=4x26x5

(5.1)



Find:
-Coefficients of particular solution using series expansion and matrix back-substitution
-Solution y(x) using initial conditions y(0)=1,y(0)=0
Plot solution.

Solution

Using Sec7b-1 p.7-13 Eq. (1):

j=03cj+2(j+2)(j+1)xj3j=04cj+1(j+1)xj+2j=05cjxj=4x26x5

(5.2)


Which is a combined series expansion for the general coefficient series expansion of Sec7b-1 p.7-12 Eq. (4):

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

(5.3)


We can find a simultaneous linear system of equations to solve for the coefficients of yp(x).

Note: by combining the summations in Eq. (5.2) by setting the upper bounds of the summations to a common value 3, the equation can be simplified to:

j=03[cj+2(j+2)(j+1)3cj+1(j+1)+2cj]xj+(2c415c5)x4+2c5x5=4x26x5

(5.4)



Therefore providing a system of equations by equating coefficients from the summations to the yp(x):

j=0:[c2(2)(1)3c1(1)+2c0]x0=0x0=[2c03c1+2c2]x0
j=1:[c3(3)(2)3c2(2)+2c1]x1=0x1=[2c16c2+6c3]x1
j=2:[c4(4)(3)3c3(3)+2c2]x2=4x2=[2c29c3+12c4]x2
j=3:[c5(5)(4)3c4(4)+2c3]x3=0x3=[2c312c4+20c5]x3
[2c415c5]x4=0x4
2c5x5=6x5

(5.5)


Eqs. (5.5) can be verified by solving for the coefficients by Eq. (5.2) to prove that the summations were combined correctly:

j=0:2c0x0=2c0
j=1:2c1x13c1(1)x0=2c1x3c1
j=2:2c2x23c2(2)x1+c2(2)(1)x0=2c2x26c2x+3c2
j=3:2c3x33c3(3)x2+c3(3)(2)x1=2c3x39c3x2+6c3x
j=4:2c4x43c4(4)x3+c4(4)(3)x2=2c4x412c4x3+12c4x2
j=5:2c5x53c5(5)x4+c5(5)(4)x3=2c5x515c5x4+20c5x3

(5.6)



By summing the terms in (5.6) and grouping like terms, then equating it to the yp(x), we find the coefficient equations are the same as Eqs. (5.5):

[2c03c1+2c2]x0+[2c16c2+6c3]x1+[2c29c3+12c4]x2+[2c312c4+20c5]x3+[2c415c5]x4+2c5x5=0x0+0x1+4x2+0x3+0x46x5

(5.7)



The linear system of equations in Eqs. (5.5) can be placed in matrix form:

[2320000266000029120000212200000215000002] (c0c1c2c3c4c5) =[004006] 

(5.8)



Solving this system of equations by back-substitution yields the values of the coefficients for the yp(x):

c={701.75,691.5,335.5,105,22.5,3}

(5.9)



Substituting these coefficients into Eq. (5.1):

yp(x)=701.75x0691.5x1335.5x2105x322.5x43x5

(5.10)



The general solution is the sum of the homogeneous (found in R3.3) and particular solutions:

y(x)=701.75691.5x1335.5x2105x322.5x43x5+C1e2x+C2ex

(5.11)



Considering the initial value condition y(0)=1 in the general solution:

y(0)=1=701.75+C1e0+C2e0=701.75+C1+C2

(5.12)



Taking the first derivative of Eq. (5.11) to consider the initial value condition y(0)=0:

y(x)=691.5671x315x290x315x4+2C1e2x+C2ex

(5.13)



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

(5.14)



Solving Eq. (5.12) and Eq. (5.13) yield the coefficients:

C1=11.25,C2=714

(5.15)



This yields our final solution by substituting the coefficients into Eq. (5.11): Solving Eq. (5.12) and Eq. (5.13) yield the coefficients:

y(x)=701.75691.5x1335.5x2105x322.5x43x511.25e2x+714ex

(5.16)



A plot of the solution:

Figure 3.5-1


Author

Solved and Typed By - --Egm4313.s12.team1.durrance 22:56, 21 February 2012 (UTC)--
Reviewed By - Egm4313.s12.team1.silvestri 03:28, 22 February 2012 (UTC)




Problem R3.6: Superimposing Particular Solutions

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-ODEs-CC (see p.7-2b):

yp,13yp,1+2yp,1=r1(x):=4x2

(6.0)

yp,23yp,2+2yp,2=r2(x):=6x5

(6.1)

The particular solution 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.

Compare the result with that obtained in R3.5.

Solution

Beginning with equation (6.1), we find that a particular solution has the form

yp,2(x)=j=0nKjxj

(6.2)

where n=5. That is,

yp,2(x)=K0+K1x+K2x2+K3x3+K4x4+K5x5

(6.3)

Differentiating twice:

yp,2(x)=K1+2K2x+3K3x2+4K4x3+5K5x4

(6.4)

yp,2(x)=2K2+6K3x+12K4x2+20K5x3

(6.5)

Substitute (6.3-5) into (6.1) to obtain

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

(6.6)

Rearranging terms with respect to x power:

(2K23K1+2K0)+x(6K36K2+2K1)+x2(12K49K3+2K2)
+x3(20K512K4+2K3)+x4(15K5+2K4)+x5(2K5)=6x5

(6.7)

In matrix form:

[2320000266000029120000212200000215000002] (K0K1K2K3K4K5) =[000006] 

(6.8)

Solving for K, using MATLAB, yields

K={708.75,697.5,337.5,105,22.5,3}

(6.9)

which means that

yp,2=708.75697.5x337.5x2105x322.5x43x5

(6.10)

From R3.3:

yp,1=32+12x+2x2

(6.11)

Summing for the final solution:

y=C1yp,1+C2yp,2

(6.12)

y=C1(32+12x+2x2)
+C2(708.75697.5x337.5x2105x322.5x43x5)

(6.13)

For initial condition y(0)=5

y(0)=5=C1(32)+C2(708.75)

(6.14)

Similarly, for initial condition y(0)=2

y(0)=2=C1(12)+C2(697.5)

(6.15)

Equations (6.14) and (6.15) yield the following matrix equation:

[32708.7512697.5] (C1C2) =[52] 

(6.16)

Solving (6.16) in MATLAB yields

C={0.355,0.009}

(6.17)

Therefore the combined solution of y is

y(x)=0.355(32+12x+2x2)
0.009(708.75697.5x337.5x2105x322.5x43x5)

(6.18)

Which can be simplified to Final Equation

y(x)=4.98125+2.0175x+2.3275x2+0.945x3+0.2025x4+0.027x5

(6.19)

Author

Solved and Typed By - Egm4313.s12.team1.essenwein 00:40, 18 February 2012 (UTC)
Reviewed By - Egm4313.s12.team1.silvestri 04:29, 22 February 2012 (UTC)




Problem R3.7 : Verifying series representation for method of undetermined coefficients

Statement

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

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

(7.0)


j=15Cjjxj1=j=04Cj+1(j+1)xj

(7.1)


Solution

This transition occurs through a mid-level variable change. In this particular case, for (7.0), j-2 is represented by k:

k=03Ck+2(k+2)(k+1)xk

(7.3)


We can then represent the variable k with a j. This new summation looks like this:

j=03Cj+2(j+2)(j+1)xj

(7.4)


Expanding both sides, (7.0 and 7.4) yields the same result:

C5(5)(4)x3+C4(4)(3)x2+C3(3)(2)x1+C2(2)(1)x0

(7.5)



We follow the same process for equality (7.1):
This transition occurs through a mid-level variable change. In this particular case, for (7.1), j-1 is represented by k:

k=04Ck+1(k+1)xk

(7.6)


We can then represent the variable k with a j. This new summation looks like this:

j=04Cj+1(j+1)xj

(7.7)


Expanding both sides, (7.1 and 7.7)yields the same result:

C5(5)x4+C4(4)x3+C3(3)x2+C2(2)x1+C1

(7.8)



Author

Solved and Typed By - Egm4313.s12.team1.silvestri 17:20, 19 February 2012 (UTC)
Reviewed By - --128.227.113.77 17:05, 22 February 2012 (UTC)




Problem R3.8: Finding general solutions to Non-homogeneous Linear ODEs using the Method of Undetermined Coefficients and the Basic Rule

Statement

Find a general solution for the following two problems:

Kreyszig 2011 p.84 Problem 5

Given

Homogeneous solution: y+4y+4y=excosx

Solution

The solution y(x) is composed of a general solution and a particular solution so that y(x)=yg(x)+yp(x).
First, we will find the general solution, yg(x), by finding the roots of the characteristic equation:

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

(8.0)


Which means that the characteristic equation has a double root of λ=2.
Based on the double root, then, the general solution is:

yg(x)=(C1+C2x)eax2yg(x)=(C1+C2x)e2x

(8.1)


Next, we need to find the particular solution, and based on analysis of the excitation, r(x)=excosx, we find that the particular solution is the following:

yp(x)=eαx(Kcosωx+Msinωx)yp(x)=exKcosx+exMsinx

(8.2)


Now, we need to find the values for the constants K,M, by taking the first and second derivatives of the particular solution (8.2):

yp(x)=exKcosx+exMsinx

(8.2)


yp(x)=exKsinxexKcosx+exMcosxexMsinx

(8.3)


yp(x)=exKcosx+exKsinx+exKsinx+exKcosxexMsinxexMcosxexMcosx+exMsinx

(8.4)


Now, plug these into the homogeneous solution and simplify:

ex(KcosxKsinxKsinxKcosx+Msinx+Mcosx+McosxMsinx)+4[ex(Ksinx+KcosxMcosx+Msinx)]+4[ex(Kcosx+Msinx)]=excosx

(8.5)


ex[2Ksinx+2Mcosx]ex[4Ksinx+4Kcosx4Mcosx+4Msinx]+ex[4Kcosx+4Msinx]=excosx

(8.6)


Pull ex out of equation (8.6) and simplify:

ex[4Kcosx+4Msinx4Ksinx4Kcosx+4Mcosx4Msinx+2Ksinx2Mcosx]=excosx

(8.7)


ex[2Ksinx+2Mcosx]=excosx

(8.8)


Now, solve for the unknown coefficients:

2M=1M=12

(8.9)


2K=0K=0

(8.10)


Plug into yp(x) (8.2):

yp(x)=12exsinx

(8.11)


Now, we have both the particular solution and the general solution, which allows for us to solve for the final solution, y(x)

y(x)=(C1+C2x)e2x+12exsinx

(8.12)

Kreyszig 2011 p.84 Problem 6

Given

Homogeneous solution: y+y(π2+14)=ex2sinπx

Solution

The solution y(x) is composed of a general solution and a particular solution so that y(x)=yg(x)+yp(x).
First, we will find the general solution, yg(x), by finding the roots of the characteristic equation, using the quadratic equation:

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

(8.13)


λ=12+iπ

(8.14)


The roots of the characteristic equation are complex conjugates, meaning that the general solution, yg(x), is the following:

yg(x)=ex2(Acosπx+Bsinπx)

(8.15)


Next, we need to find the particular solution, and based on analysis of the excitation, r(x)=ex2sinπx, we find that the particular solution is the following:

yp(x)=eαx(Kcosωx+Msinωx)yp(x)=ex2Kcosπx+ex2Msinπx

(8.16)


Now, we need to find the values for the constants K,M, by taking the first and second derivatives of the particular solution (8.16):

yp(x)=eαx(Kcosωx+Msinωx)yp(x)=ex2Kcosπx+ex2Msinπx

(8.16)


yp(x)=πex2Ksinπxex22Kcosπx+πex2Mcosπx+ex22Msinπx

(8.17)


yp(x)=π2ex2Kcosπx+πex22Ksinπx+πex22Ksinπx+ex24Kcosπxπ2ex2Msinπxπex22Mcosπxπex22Mcosπx+ex24Msinπx

(8.18)


Now, we plug these into the homogeneous solution and simplify but we find that everything cancels out, meaning the unknown constants, M,K are both equal to 0. This means that the final solution is equal to just the general solution:

y(x)=ex2(Acosπx+Bsinπx)

(8.19)

Author

Solved and Typed By ---Egm4313.s12.team1.wyattling 22:10, 20 February 2012 (UTC)
Reviewed By - Egm4313.s12.team1.rosenberg 03:07, 22 February 2012 (UTC)




Problem R3.9 Finding general solutions to Non-homogeneous Linear ODEs

Statement

K 2011 page 85 problems 13 and 14
Problem 13: Find the complete solution for 8y6y+y=6coshx, with the initial conditions
y(0)=0.2,y(0)=0.05

Problem 14: Find the complete solution for y+4y+4y=e2xsin2x, with the initial conditions
y(0)=1,y(0)=1.5

Solution

Problem 13:
In order to solve the equation we must use the definition y=yh+yp. We start with the given equation:

8y6y+y=6coshx

(9.1)


From this we get the homogeneous characteristic equation:

8λ26λ+1=0x

(9.2)


Factoring the characteristic equation gives us:

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

(9.3)


This give us the roots:

λ=14,12

(9.4)


Plugging in the roots gives us the general homogeneous solution:

yh=c1e14x+c2e12x

(9.5)


Now we must solve for the particular solution. So far we know:

coshx=ex+ex2

(9.6)


Now using the sum rule, yp=yp1+yp2, gives us:

yp=Cex+Kex

(9.7)


Now we must take the first and second derivatives of equation 9.7:

yp=CexKex

(9.8)


yp=Cex+Kex

(9.9)


Substituting 9.8 and 9.9 back into our original equation gives us:

8(Cex+Kex)6(CexKex)+Cex+Kex=6(ex+ex2)

(9.10)


Simplifying equation 9.10 give us:

3Cex+15Kex=3(ex+ex)

(9.11)


From this we can deduce that:

3C=3,15K=3

(9.12)


Thus we get that:

C=1,K=15

(9.13)


We now have our particular equation:

yp=ex+15ex

(9.14)


Thus:

y=c1e14x+c2e12x+ex+15ex

(9.15)


Now we can solve for c1 and c2 using the given initial values.
We are given that at y(0)=0.2, we can now plug this into our equation to get:

0.2=c1e14(0)+c2e12(0)+e(0)+15e(0)

(9.16)


This simplifies to:

0.2=c1+c2+1+15

(9.17)


Giving us that:

c1+c2=1

(9.18)


For our second condition, y(0)=0.05, we must we must take the derivative of our general solution:

y=14c1e14x+12c2e12x+ex15ex

(9.19)


At our initial condition gives us:

0.05=14c1+12c2+115

(9.20)


Thus:

c1+2c2=3

(9.21)


Combining 9.18 and 9.21 gives us that:

c1=1,c2=2

(9.22)


Plugging these coefficients in gives us our final solution:

y=e14x2e12x+ex+15ex

(9.23)


Problem 14:
In order to solve the equation we must use the definition y=yh+yp. We start with the given equation:

y+4y+4y=e2xsin2x

(9.24)


From this we get the homogeneous characteristic equation:

λ2+4λ+4=0

(9.25)


Factoring the characteristic equation gives us:

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

(9.26)


This give us the double root:

λ=2

(9.27)


Plugging in the roots gives us the general homogeneous solution:

yh=c1e2x+c2xe2x

(9.28)


Now we must solve for the particular solution. So far we know:

e2xsin2x=Cxe2xcos2x+Kxe2xsin2x

(9.29)


Now we must take the first and second derivatives of equation 9.29:

yp=2e2x(Cxcos2x+Kxsin2x)+e2x(Ccos2x2Cxsin2x+Ksin2x+2Kxcos2x)

(9.30)


yp=(4C+4K)e2xcos2x+(4k4C)e2xsin2x

(9.31)


Substituting 9.30 and 9.31 back into our original equation gives us:

(3C+4K)e2xcos2x+(3k4C)e2xsin2x=e2xsin2x

(9.32)


From this we can deduce that:

3C+4K=0,3K4C=1

(9.33)


Thus we get that:

C=425,K=325

(9.34)


We now have our particular equation:

yp=e2x(425xcos2x325xsin2x)

(9.35)


Thus:

y=c1e2x+c2xe2x+e2x(425xcos2x325xsin2x)

(9.36)


Now we can solve for c1 and c2 using the given initial values.
We are given that at y(0)=1, we can now plug this into our equation to get:

y(0)=(c1+c2x)e2(0)+0=1

(9.37)


Giving us that:

c1=1

(9.38)


For our second condition, y(0)=1.5, we must we must take the derivative of our general solution:

y=2c1e2x+c2(2xe2x+e2x)+425e2xcos2x325e2xsin2x+225e2xxcos2x+1425e2xxsin2x

(9.39)


At our initial condition we have:

y(0)=2+c24250+0+0=0

(9.40)


Thus:

c2=5425

(9.41)


Plugging these coefficients in gives us our final solution:

y=1e2x+5425xe2x+e2x(425xcos2x325xsin2x)

(9.42)


Author

Solved and Typed By - Egm4313.s12.team1.rosenberg 03:04, 22 February 2012 (UTC)
Reviewed By - Egm4313.s12.team1.essenwein 02:39, 22 February 2012 (UTC)




Contributing Members

Team Contribution Table
Problem Number Lecture Assigned To Solved By Typed By Proofread By
3.1 R3.1 in Sec 3 p. 7-5 Wyatt Ling Wyatt Ling Wyatt Ling George Armanious
3.2 R3.2 in Sec 3 p. 7-5 George Armanious George Armanious George Armanious Jesse Durrance
3.3 R3.3 in Sec 3 p. 7-11 Emotion Silvestri Emotion Silvestri Emotion Silvestri George Armanious
3.4 R3.4 in Sec 3 p. 7-11 Chris Stewart Chris Stewart Chris Stewart Emotion Silvestri
3.5 R3.5 in Sec 7 p. 7-17 (Sakai) Jesse Durrance Jesse Durrance Jesse Durrance Emotion Silvestri
3.6 R3.6 in Sec 7 p. 7-17 (Sakai) Eric Essenwein Eric Essenwein Eric Essenwein Emotion Silvestri
3.7 R3.7 in Sec 7 p. 7-17 (Sakai) Emotion Emotion Emotion Wyatt Ling
3.8 Wyatt Ling Wyatt Ling Wyatt Ling Steven Rosenberg
3.9 Steven Rosenberg Steven Rosenberg Steven Rosenberg Eric Essenwein