University of Florida/Egm4313/s12.teamboss/R4

Report 4


Problem R4.1 Expanding Particular Solutions and the Coefficient Matrix A

edit

Statement

edit

4.1 from lecture notes R4.1 Lect. 7c pgs. 19-22

Given the general form of polynomial excitation.

 

(1.1)

The particular solution that satisfies:

 

(1.2)

The first and second derivative of the particular solution that solves the original polynomial excitation equation.

 

(1.3)

 

(1.4)

The particular solutions are put into the polynomial excitation equation to give the general summation form:

 

(1.5)

Obtain the equations associated with  , coefficients of  ;  , coefficients of  ;  , coefficients of  ;  , coefficients of  ;  , coefficients of  . Five total equations for coefficients.

Also set up the matrix   that satisfies  .

Solution

edit

The given equation associated with   taking  

 

(1.6)

Taking  

 

(1.7)


 

(1.8)

The equation associated with   , coefficients of  

 

(1.9)

Taking  

 

(1.10)

 

(1.11)

The equation associated with   , coefficients of  

 

(1.12)

Taking  

 

(1.13)

 

(1.14)

The equation associated with   , coefficients of  

 

(1.15)

For   (the summation term only goes to  )

 

(1.16)

 

(1.17)

The equation associated with   , coefficients of  

 

(1.18)

For  .

 

(1.19)


The equation associated with   , coefficients of  

 

(1.20)

Now set up the equation:

 

(1.21)

 

(1.22)

Therefore the matrix   that satisfies the matrix equation is:

 

(1.23)

Author

edit

Solved and Typed By - Chris Stewart Egm4313.s12.team1.stewart (talk) -- 21:12, 11 March 2012 (UTC)

Reviewed By - --Egm4313.s12.team1.durrance (talk) 23:14, 11 March 2012 (UTC)


Problem R4.2 Taylor Series Approximation of ODE with Excitation sin(x)

edit

Statement

edit

Consider the L2-ODE-CC with   as excitation (see R4.2 Lect. 7c pgs. 26-27):

 
 

and the initial conditions

 

1) Use the Taylor series for   to reproduce the figure on p.7-24.

2) Let   be the particular soln corresponding to the excitation  :

 

Let  be the truncated Taylor series of  :

 

Let   be the overall soln for the L2-ODE-CC:  
With the same initial conditions as stated above.

Find   for n=3,5,9; plot these solns for x in the interval [0,4π].

3)Find the exact overall soln  , and plot it in the above figure to compare with   for n=3,5,9.

Solution

edit

To approximate the value of the excitation, the Taylor expansion must be found:

 

(2.0)

For the sine function, the Taylor series approximated to 13 places is:

 

(2.1)

Any lower approximation would include all of the terms above without any terms with a higher order than the desired order:

Plotting every order approximation of the Taylor series up to n=13 with the actual sine function produces the following:

Figure 4.2-1

 


In order to find the overall solution for the L2-ODE-CC corresponding to the Taylor series expansion of the sine function, both the homogenous and particular solutions must be found. The homogenous equation can be found through this method:

 

(2.2)

 

(2.3)

 

(2.4)

Next, the excitation must be expanded to the desired n. The following shows the excitation expanded to n=3, 5, and 9:

 

(2.5)

 

(2.6)

 

(2.7)

Next, the particular solution must be found. The particular solution will be of the form:

 

(2.8)

Using the derivation discussed in R4.1, a matrix equation in the form Ak = d can be found, where k is the matrix containing the coefficients of the particular solution and d is the matrix containing the coefficients of each power of x in the expansion of the excitation. The general formula for A is:

 

(2.9)

n=3
The matrix A is found as:

 

(2.10)

Therefore, the matrix equation is:

 

(2.11)

 

(2.12)

Therefore the particular solution is:

 

(2.13)

And the overall solution for n=3 is:

 

(2.14)

Using the initial conditions:

 

(2.15)

Solving yields  . Therefore the overall solution is:

 

(2.16)

n=5
The matrix equation is:

 


Therefore the particular solution is:

 

(2.18)

And the overall solution for n=5 is:

 

(2.19)

Using the initial conditions:

 

(2.20)

Solving yields  . Therefore the overall solution is:

 

(2.21)

n=9
The matrix equation is:

 


Therefore the particular solution is:

 

(2.23)

And the overall solution for n=9 is:

 

(2.24)

Using the initial conditions:

 

(2.25)

Solving yields  . Therefore the overall solution is:

 

(2.26)


The following plot shows the overall solution of the ODE at n=3,5,9 over the domain [0,4π]:

Figure 4.2-2

 


The near perfect overlap between all three graphs shows that the approximations converge quickly for very low values of n.

Next, the exact ODE will be calculated to find the accuracy of the above approximations. The homogeneous solution is the same as the homogeneous solution above, only with different coefficients. The particular solution will be in the form:

 

(2.27)

 

(2.28)

 

(2.29)

Plugging these values into the ODE:

 

(2.30)

Separating sine and cosine terms yield two linear equations which can be used to solve for the unknown coefficients:

 

(2.31)

Solving these equations yield K = 0.3 and M = 0.1.

 

(2.32)

Therefore the exact overall solution is:

 

(2.33)

 

(2.34)

Using the initial conditions yield the equations:

 

(2.35)

Solving these two equations yield  . Therefore the exact overall solution is:

 

(2.36)

The following figure shows the plot of the exact solution over the plot in Fig. 4.2-2:

Figure 4.2-3

 


The overlap of the plots shows that the Taylor series approximation approach to the ODE is actually accurate to a very large degree with respect to the exact solution of the ODE.

Author

edit

Solved and Typed By - Egm4313.s12.team1.armanious (talk) 04:02, 14 March 2012 (UTC)

Reviewed By - Chris Stewart Egm4313.s12.team1.stewart (talk) 04:52, 14 March 2012 (UTC)


Problem R4.3

edit

Statement

edit

Consider the L2-ODE-CC (5) p7b-7 with log(1+x) as excitation:

 

(3.0)


 

(3.1)


And the initial conditions

 

(3.2)


1. Develop log(1+x) in Taylor series, about   to reproduce the figure on p.7-25

2. Let   be the truncated Taylor series, with n terms--which is also the highest degree of the Taylor (power) series -- of lg(1+x).

Find   , for n=4,7,11, such that:


with the same initial conditions (2).

Plot   for n = 4,7,11 for x in  .


3. Use the matlab command ode45 to integrate numerically (5) p.7b-7 with (1)-(2) p 7-28 o obtain the numerical soln for y(x). Plot y(x) in the same figure with  

Solution

edit

1. Developing the Taylor series
First, we take the generic Taylor series formula:

 

(3.3)


Then, log(1+x) is expanded into a power series:

 

(3.4)


2. Yn(x) at different n values First we create the characteristic equation in standard form:

 

(3.5)


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

 

(3.6)

 

(3.7)


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

 

(3.8)

The particular solution at n=4 is of the form:

 

(3.9)

It's derivative would look like this:

 

(3.10)

And the second derivative to follow would then become:

 

(3.11)

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

 

(3.12)


 

(3.13)


 

(3.14)

 

(3.15)


 

(3.16)

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

 


 


 


 


 


The resulting particular equation looks like this:

 

(3.17)


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

 

(3.18)

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

 

(3.19)

By plugging in -3/4 for x, 1 for y, and 0 for y', we can solve for the constants  :

 

(3.20)

 

(3.21)

Solving the equations proves that  :
The resulting complete solution at n=4 with consideration for initial conditions then becomes:

 

(3.22)

The particular solution at n=7 is found using this matrix equation:

 

(3.23)

The values for A then look like this:

 
 

 

 

 

 

 

The resulting particular equation looks like this:

 

(3.24)


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

 

(3.25)

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

 

(3.26)

By plugging in -3/4 for x, 1 for y, and 0 for y', we can solve for the constants  :

 

(3.27)

 

(3.28)

Solving the equations proves that  :
The resulting complete solution at n=7 with consideration for initial conditions then becomes:

 

(3.29)


The particular solution at n=11 is found using this matrix equation:

 

(3.30)

The values for A then look like this:

 
 

 

 

 

 

 

 

 

 

 

The resulting particular equation looks like this:

 

(3.31)


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

 

(3.32)

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

 

(3.33)

By plugging in -3/4 for x, 1 for y, and 0 for y', we can solve for the constants  :

 

(3.34)

 

(3.35)

Solving the equations proves that  :
The resulting complete solution at n=11 with consideration for initial conditions then becomes:

 

(3.36)

Plot of all n=4 (red), n=7 (blue), n=11 (green).
 

3. Plotting the actual y(x) against approximations

Author

edit

Solved and Typed By - Egm4313.s12.team1.silvestri (talk) 23:17, 12 March 2012 (UTC)
Reviewed By ---Egm4313.s12.team1.rosenberg (talk) 03:10, 13 March 2012 (UTC)




Problem R4.4

edit

4.4 from lecture notes R4.1 Lect. 7c pgs. 29-30

Extend the accuracy of the solution beyond  .

Part 1 Statement

edit

1. Back up away a little from the brink of non-convergence at   for the Taylor series of   about  , and consider the point  .

Find the value of   that will serve as initial conditions for the next iteration to extend the domain of accuracy of the analytical solution. Find   sufficiently high so that   do not differ from the numerical solution by more than  .

Part 1 Solution

edit

Part 2 Statement

edit

2. Develop   in Taylor series about   for  , and plot these truncated series vs the exact function.

What is now the domain of convergence? (by observation of your results.)

Part 2 Solution

edit

First, we have the general form of a Taylor series:

 

(4.2.0)

Next, we set   and take several derivatives of  :

 

Using these derivatives, we can now develop   in Taylor series about  :

 

(4.2.1)

 

(4.2.2)

Now the Taylor series for   can be developed:

For  :

 

(4.2.3)

For  :

 

(4.2.4)

For  :

 

(4.2.5)

Part 3 Statement

edit

3. Find  , for  , such that:
 
for   in   with the initial conditions found i.e.,  .

Plot   for   for   in  .

Part 3 Solution

edit

Using the same characteristic in problem 4.3 (3.5), we see that the homogenous solution is the same (3.8):

 

(4.3.0)

The particular solution at n=4 is of the form:

 

(4.3.1)

It's derivative would look like this:

 

(4.3.2)

And the second derivative to follow would then become:

 

(4.3.3)

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

 

(4.3.4)


 

(4.3.5)


 

(4.3.6)

 

(4.3.7)


 

(4.3.8)

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

 


 


 


 


 


The resulting particular equation looks like this:

 

(4.3.9)


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

 

(4.3.10)


The particular solution at n=7 is found using this matrix equation:

 

(4.3.11)

The values for A then look like this:

 

 

 

 

 

 

 

The resulting particular equation looks like this:

 

(4.3.12)


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

 

(4.3.13)

The particular solution at n=11 is found using this matrix equation:

 

Part 4 Statement

edit

4. Use the matlab command ode45 to integrate numerically   with   and the initial conditions   to obtain the numerical solution for  .

Plot   in the same figure with  .

Part 4 Solution

edit

Author

edit

Solved and Typed By - --Egm4313.s12.team1.wyattling (talk) 19:44, 14 March 2012 (UTC)

Reviewed By - Egm4313.s12.team1.essenwein (talk) 19:52, 14 March 2012 (UTC)


Contributing Members

edit
Team Contribution Table
Problem Number Lecture Assigned To Solved By Typed By Proofread By
4.1 R4.1 Lect. 7c pgs. 19-22 Chris Stewart Chris Stewart Chris Stewart Jesse Durrance
4.2 R4.2 Lect. 7c pgs. 26-27 George Armanious George Armanious George Armanious Chris Stewart
4.3 [Lecture link] Emotion Silvestri Emotion Silvestri Emotion Silvestri Steven Rosenberg
4.4 R4.1 Lect. 7c pgs. 29-30 Wyatt Ling Wyatt Ling Wyatt Ling Eric Essenwein