University of Florida/Egm4313/s12.team5.R3

From Wikiversity
Jump to navigation Jump to search

Report 3


R 3.1[edit | edit source]

Question[edit | edit source]

Consider the following L2-ODE-CC:



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[edit | edit source]

General solution of our ODE:


double real roots



Giving us a general solution of:




Particular solution of our ODE by method of undetermined coefficients:


Since our excitation r(x) is of the form


Our two particular solutions will be of the form:



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


Taking derivatives of :


Substituting derivatives into the original ODE and collecting like terms:




Giving us our first particular solution:



Taking derivatives of :



Substituting derivatives into original ODE and collecting like terms:



Giving us our second particular solution:



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



Using initial conditions to solve for c1 and c2:



where



Final solution:



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)')




Solution in example on P.7-3


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)')


Author[edit | edit source]

This problem was solved and uploaded by: Joshua House

This problem was proofread by: David Herrick

R 3.2[edit | edit source]

Question[edit | edit source]

Part 1[edit | edit source]

Find the homogeneous L2-ODE-CC having the following roots:

Part 2[edit | edit source]

Show that the following is a homogeneous solution:

Part 3[edit | edit source]

Find the limit of the homogeneous solution as

Part 4[edit | edit source]

Take the derivative of with respect to

Part 5[edit | edit source]

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

Part 6[edit | edit source]

Compute (2) using and and compare to the value obtained from the exact 2nd homogeneous solution

Solution[edit | edit source]

Part 1[edit | edit source]

Letting
Replacing the x's with lambda's:

Part 2[edit | edit source]


Plugging this into the original ODE and collecting like terms:



  • 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[edit | edit source]


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: exists


And:


Then:


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


Part 4[edit | edit source]


Part 5[edit | edit source]

The results from (3) and (4) show that

Part 6[edit | edit source]

From and letting



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


Author[edit | edit source]

This problem was solved and uploaded by: Joshua House

This problem was proofread by: Michael Wallace

R 3.3[edit | edit source]

Question[edit | edit source]

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

with initial conditions given as:

Plot the solution.

Solution[edit | edit source]

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

Thus, the homogenous solution is of the form

Plugging in the answers for lambda yields:

Now to solve for the particular solution, we must look at the excitation:

A particular solution to an excitation of the form is defined as

Thus,

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

Substituting these relations into the equation we get:

Grouping like terms we get:

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

Therefore

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

Therefore

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

Therefore

The particular solution is then:

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

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

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

Rewriting the equations we get:

Subtracting these equations we get:

Therefore:

Thus the complete solution is:


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)')

Author[edit | edit source]

This problem was solved and uploaded by: David Herrick

This problem was proofread by: Michael Wallace

R 3.4[edit | edit source]

Question[edit | edit source]

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:

is of the form:

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

Solution[edit | edit source]

From the Basic Rule:

Therefore, from Table 2.1:

since k = 4, x = x, and n = 2.
since k = 6, x = x, and n = 5.

For :

Substituting into the original equation gives:

Comparing the , , and coefficients gives:
For : Therefore .
For : Therefore .
For : Therefore .
Therefore, .
For :

Substituting into the original equation gives:

Simplifying yields:

Comparing the , , , , , and coefficients gives:
For : Therefore .
For : Therefore .
For : Therefore .
For : Therefore .
For : Therefore .
For : Therefore .
Therefore,
By the Sum Rule:

Simplifying gives:

Choose:

Then the equation becomes of the form:

 where n = 5.

Author[edit | edit source]

This problem was solved and uploaded by John North.

This problem was proofread by Michael Wallace

R 3.5[edit | edit source]

Question[edit | edit source]

Complete the solution for ( (2) p. 7-11) ) as follows:

Part 1[edit | edit source]

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

(2) Coefficients of :

(3) Coefficients of :

(4) Coefficients of :

(6) Coefficients of :

Part 2[edit | edit source]

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.

Part 3[edit | edit source]

Put the system of equations for in matrix form.

Part 4[edit | edit source]

Solve for the coefficients by back substitution.

Part 5[edit | edit source]

Consider the initial conditions:

.

Find the solution y(x) and plot it.

Solution[edit | edit source]

Part 1[edit | edit source]

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

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

.

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: 

Solving for the coefficients of we use j = 2.

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

Coefficients of : 

Solving for the coefficients of we use j = 3.

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

Coefficients of : 

Solving for the coefficients of , all we have is

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

Coefficients of : 

Part 2[edit | edit source]

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

Simplifying and grouping like terms we get:

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[edit | edit source]

Matrix form of the solution:

Part 4[edit | edit source]

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







Part 5[edit | edit source]

The particular solution is of the form

Therefore, the particular solution to the differential equation =

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

The homogenous solution is given by:

Therefore the general solution is:

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

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

Therefore the final general solution y(x) is:


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)')

Author[edit | edit source]

This problem was solved and uploaded by: David Herrick

This problem was proofread by Michael Wallace

R 3.6[edit | edit source]

Question[edit | edit source]

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)
The particular solution to had been found in R3.3 p.7-11.
Find the particular solution , and then obtain the solution for the L2-ODE-CC (2) p.7-11 with initial conditions (2b) p.3-6.

Given[edit | edit source]

First particular solution:
Initial Conditions:

Solution[edit | edit source]

Particular Solution[edit | edit source]
Because of the specific excitation , using table 2.1 from K 2011 p.82, the correct form for the particular solution is
Then the following is presented:


Plug these equations back into the original



Use coefficient matching, the following equations are a result:
Use back substitution method to solve for every coefficient, starting with


Plug these values back into  :


                                        


Superposition principle applies ( L2-ODE-CC ), gives the general particular solution:


                                         
Homogeneous Solution[edit | edit source]


Because of the linearity, a combination of two linear independent solutions is also a solution to this homogeneous equation:


With the solutions as:


To determine the value of , the characteristic equation must be determined from the homogeneous equation


The solutions for each distinct linearly independent homogeneous equation become:


The combination of the previous two equations, multiplied by two constants that satisfy two initial conditions, is also a solution:
                                                    

General Solution[edit | edit source]

The general or overall solution for the L2-ODE-CC:


Use initial conditions to solve for and :


The general solution:
                 

Author[edit | edit source]

This problem was solved and uploaded by Derik Bell

This problem was proofread by Michael Wallace

R 3.7[edit | edit source]

Question[edit | edit source]

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

Equation (1)


Equation (2)


Solution[edit | edit source]

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


Therefore, they are equivalent.

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

Therefore, they are equivalent.

Author[edit | edit source]

This problem was solved and uploaded by: William Knapper

This problem was proofread by: Joshua House

R 3.8[edit | edit source]

Question[edit | edit source]

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[edit | edit source]


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


Solve for the determinate:


Indicates a double real root, therefore:


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

since k = 1, alpha = -1, and omega = 1.



Plugging particular solution to original equation:


Simplifying and canceling gives:


Further simplification gives:


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


Therefore K = 0.


Therefore M = .
Therefore the General Solution is:





Problem 6 Solution[edit | edit source]


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


Find the Determinate:


Indicates unreal solutions. Therefore, real homogeneous solution is:


where:



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


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


Substituting in to the original equation:


Simplifying and Canceling gives:


Comparing and terms gives:


Solve for K and M:


Therefore:


Reducing gives:


Solving for K gives K = 0.05.
Therefore:


Solving for M gives M = -0.046.
Therefore:


Author[edit | edit source]

This problem was solved and uploaded by: John North

This problem was proofread by: Michael Wallace

R 3.9[edit | edit source]

Question[edit | edit source]

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

Solution[edit | edit source]

Problem 13[edit | edit source]

First, we find the homogeneous ODE solution




which gives the general solution:



Second, we get the particular solution of the non homogeneous ODE.
We can substitute
Using the sum rule we know that .
Then using Table 2.1 we can solve:


Then we get




The original ODE becomes:


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


and


Solving these two equations we get:



Thus,


We know that .
so,



Finding the solution to the initial value problem:








Substituting the known value for




Solving this we find that:



The final solution is:

 
Problem 14[edit | edit source]

First, we find the homogeneous ODE solution




which gives the general solution:



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


is a homogeneous solution so becomes:


Then we find:




And,








Substituting into the original ODE:





Separating into components we get:



Solving the two equations we get:



Thus,


We know that .
so,


Finding the solution to the initial value problem:


We solve,


Also,



We solve,


The final solution is:

 

Author[edit | edit source]

This problem was solved and uploaded by: Radina Dikova

This problem was proofread by: David Herrick

Contribution Summary[edit | edit source]

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