R5.9
Problem Statement
Consider the L2-ODE-CC (5) p.7b-7 with  as excitation:
 as excitation:
 (5) p.7b-7
   (5) p.7b-7
 (1) p.7c-28
     (1) p.7c-28
and the initial conditions
 .
.
Part 1
Project the excitation  on the polynomial basis
 on the polynomial basis
 (1)
    (1)
i.e., find  such that
 such that
 (2)
    (2)
for x in ![{\displaystyle [{\frac {-3}{4}},3]\!}](../../../efbbc5a8b7f6494e546480187267b0e87c07e6fd.svg) , and for n = 3, 6, 9.
, and for n = 3, 6, 9.
Plot  and
 and  to show uniform approximation and convergence.
 to show uniform approximation and convergence.
Note that:
 (3)
     (3)
Solution
Using Matlab, this is the code that was used to produce the results:
Part 2
Find  such that:
 such that:
 (1) p.7c-27
    (1) p.7c-27
with the same initial conditions as in (2) p.7c-28.
Plot  for n = 3, 6, 9, for x in
 for n = 3, 6, 9, for x in ![{\displaystyle [{\frac {-3}{4}},3]\!}](../../../efbbc5a8b7f6494e546480187267b0e87c07e6fd.svg) .
.
In a series of separate plots, compare the results obtained with the projected excitation on polynomial basis to those with truncated Taylor series of the excitation. Plot also the numerical solution as a baseline for comparison.
Solution
Using integration by parts, and then with the help of of 
General Binomial Theorem

Solution
For  :
:
 
 
For substitution by parts,  
 
 
 


Therefore:
                                     
Using the General Binomial Theorem:

Therefore:
 
 
Which we have previously found that answer as:
                                     
For  :
:
 
 
Initially we use the following substitutions:  
 
 
 
First let us consider the first term: 
Next, we use the integration by parts:  
 



Next let us consider the second term: 
Again, we will use integration by parts:  
 



Therefore:


Re-substituting for t: 



Therefore:
                                     
Using the General Binomial Theorem for the integral with t substitution  :
: 

Therefore:
 
 
Which we have previously found that answer as:
                                     