University of Florida/Egm4313/s12.team5.R3

Report 3


R 3.1 edit

Question edit

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

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

This problem was solved and uploaded by: Joshua House

This problem was proofread by: David Herrick

R 3.2 edit

Question edit

Part 1 edit

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

Part 2 edit

Show that the following is a homogeneous solution:  

Part 3 edit

Find the limit of the homogeneous solution as  

Part 4 edit

Take the derivative of   with respect to  

Part 5 edit

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

Part 6 edit

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

Solution edit

Part 1 edit

Letting  
 
 
 
Replacing the x's with lambda's:
 

Part 2 edit

 


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

 


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

 

Part 5 edit

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

Part 6 edit

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

This problem was solved and uploaded by: Joshua House

This problem was proofread by: Michael Wallace

R 3.3 edit

Question edit

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

 

with initial conditions given as:

 

Plot the solution.

Solution edit

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

This problem was solved and uploaded by: David Herrick

This problem was proofread by: Michael Wallace

R 3.4 edit

Question edit

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

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

This problem was solved and uploaded by John North.

This problem was proofread by Michael Wallace

R 3.5 edit

Question edit

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

Part 1 edit

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

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

Put the system of equations for   in matrix form.

Part 4 edit

Solve for the coefficients   by back substitution.

Part 5 edit

Consider the initial conditions:

 .

Find the solution y(x) and plot it.

Solution edit

Part 1 edit

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

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

Matrix form of the solution:

 

Part 4 edit

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Part 5 edit

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

This problem was solved and uploaded by: David Herrick

This problem was proofread by Michael Wallace

R 3.6 edit

Question edit

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

First particular solution:
 
Initial Conditions:
 
 

Solution edit

Particular Solution edit
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


 
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

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


Use initial conditions to solve for   and  :
 
 
 


The general solution:
                  

Author edit

This problem was solved and uploaded by Derik Bell

This problem was proofread by Michael Wallace

R 3.7 edit

Question edit

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

Equation (1)

 

Equation (2)

 

Solution edit

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

This problem was solved and uploaded by: William Knapper

This problem was proofread by: Joshua House

R 3.8 edit

Question edit

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

 


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

 


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

This problem was solved and uploaded by: John North

This problem was proofread by: Michael Wallace

R 3.9 edit

Question edit

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

Solution edit

Problem 13 edit

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

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

This problem was solved and uploaded by: Radina Dikova

This problem was proofread by: David Herrick

Contribution Summary edit

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