Egm4313.s12.team11.R7
| A suggestion to move this page to userspace is proposed because assignment work belongs in the user space.. (Discuss) |
Contents |
Report 7 [edit]
Intermediate Engineering Analysis
Section 7566
Team 11
Due date: April 25, 2012.
R7.1 [edit]
Solved by Andrea Vargas
Problem Statement [edit]
Verify (4)-(5) pg 19-9:
(4)
for 
(5)
for 
Solution [edit]
From the lecture notes on p.19-9 we know that:
(2) 
(3) 
Then, we have

Since the period of
is
and we know that
, we can assume that
for simplicity.
We can compute the result of the previous integral using Wolfram ALpha (Mathematica software). The following is the input given to the software:
int from 0 to pi sin(ax)sin(bx)
where a is
and b is
. The software generates the following answer:

Substituting for
and
:

We also know that
where c is any integer. We can cancel any terms with
or
as they are equal to zero.
Then, we can verify:
(4)
for 
Similarly we can verify (5).
We have

Here, we will keep the integration boundaries as
to be consistent with the problem statement.
We can compute the result of the previous integral using Wolfram ALpha (Mathematica software). The following is the input given to the software:
int 0 to L (sin(ax))^2
where a is
. The software generates the following answer:

Substituting for
:

We know from the previous explanation that
.So,we can apply the same assumption as before that
where c is any integer. This allows us to cancel any terms with
as they are equal to zero.
Then, we can verify:
(5)
for 
R7.2 [edit]
Solved by Francisco Arrieta
Problem Statement [edit]
Plot the truncated series
with
and for:


Solution [edit]
Using:

Then:

for all even values of j
Plugging back to the truncated series:
![u(x,t)=\sum_{j=1}^{n}2\left [ \frac{(-1)^j-1}{\pi^3j^3} \right ]\cos [C \frac{j\pi}{L} \alpha \frac{2L}{C}] \sin[\frac{j\pi}{L}x] \!](http://upload.wikimedia.org/math/e/6/0/e6071a742d7058596897281735aadb01.png)
For
:
![u(x,t)=[\frac{-4}{\pi^3}\cos (2\pi \alpha) \sin(\frac{\pi x}{2})]+[\frac{-4}{27\pi^3}\cos (6\pi \alpha) \sin(\frac{3\pi x}{2})]+[\frac{-4}{125\pi^3}\cos (10\pi \alpha) \sin(\frac{5\pi x}{2})] \!](http://upload.wikimedia.org/math/f/7/4/f74090743311653808ab59f65739377b.png)
When
:
When
:
When
:
When
:
--Egm4313.s12.team11.arrieta (talk) 06:20, 22 April 2012 (UTC)
R7.3 [edit]
Problem Statement [edit]
Find (a) the scalar product, (b) the magnitude of
and
,(c) the angle between
and
for:
1) 
2) 
Part 1 [edit]
solved by Kyle Gooding
Scalar Product [edit]


Using integration by parts;
![<f,g>=[x\sin(x)+\cos(x)]_{-2}^{10}](http://upload.wikimedia.org/math/e/c/e/ece2146178961738e8bfbe251f0fa635.png)
Magnitude [edit]

![=\int_{-2}^{10} [\cos(x)]^2 \ dx\!](http://upload.wikimedia.org/math/b/1/e/b1e512e015bca9b5a4ee6b8cacdd1183.png)
![=[.5(x+\sin(x)\cos(x)|_{-2}^{10}]^{1/2}](http://upload.wikimedia.org/math/7/1/f/71f114dc3efdcddfa303221ff5c2947d.png)


![=[x^{3}/3]_{-2}^{10}](http://upload.wikimedia.org/math/6/f/a/6fa7fe7aa9d155b776a2c51b9affd1ff.png)
Angle Between Functions [edit]



The two functions are nearly orthogonal.
Part 2 [edit]
solved by Luca Imponenti
Scalar Product [edit]

![<f,g>=\int_{-1}^{1}[\frac{1}{2}(3x^2-1)][\frac{1}{2}(5x^3-3x)] \ dx\!](http://upload.wikimedia.org/math/c/9/6/c967583305ee163030e9f68ca3bbbba8.png)
Since all exponents are even, everything in brackets cancels out
Magnitude [edit]


Angle Between Functions [edit]

Since
the two functions are orthogonal
R7.4 [edit]
Solved by Gonzalo Perez
K 2011 pg.482 pb. 6 [edit]
Problem Statement [edit]
Sketch or graph
which for
is given as follows:

Solution [edit]
The MATLAB code shown below was used to developed the graph of
:
K 2011 pg.482 pb. 9 [edit]
Problem Statement [edit]
Sketch or graph
which for
is given as follows:

Solution [edit]
The MATLAB code shown below was used to developed the graph of the piecewise function
:
Solved by Jonathan Sheider
K 2011 p.482 pb. 12 [edit]
Problem Statement [edit]
Find the Fourier series of the given function which is assumed to have a period of
. Show the details of your work.
Sketch or graph the partial sums up to that including
and 
Given:

Solution [edit]
The Fourier series of a function with a period of
is defined:

Where:



This particular function given in the problem can be also defined in a piecewise manner over this interval, namely:

Calculating the first term
:

![a_{0} = \frac{1}{2\pi} \left ( \left [\frac{-x^2}{2} \right ]_{-\pi}^{0} + \left [\frac{x^2}{2} \right ]_{0}^{\pi} \right)\!](http://upload.wikimedia.org/math/d/8/d/d8d7fcf52d2b6c9629df766df95431ab.png)



Calculating the coefficient
:


Using integration by parts with the following substitutions:
and therefore 
and therefore 
This yields for the integral:
![a_{n} = \frac{1}{\pi} \left( -\left[\frac{1}{n} x sin(nx) - \int \frac{1}{n}sin(nx)dx \right]_{-\pi}^{0} + \left[\frac{1}{n} x sin(nx) - \int \frac{1}{n}sin(nx)dx \right]_{0}^{\pi} \right ) \!](http://upload.wikimedia.org/math/2/a/e/2ae73f476bbddcb73a615a2b861f9678.png)
![a_{n} = \frac{1}{\pi} \left( -\left[\frac{1}{n} x sin(nx) + \frac{1}{n^2}cos(nx) \right]_{-\pi}^{0} + \left[\frac{1}{n} x sin(nx) + \frac{1}{n^2}cos(nx) \right]_{0}^{\pi} \right ) \!](http://upload.wikimedia.org/math/5/f/d/5fd92878c9206d9deb7b55fde95a0716.png)
![a_{n} = \frac{1}{\pi} \left( -\left[\frac{1}{n^2} - \left (\frac{1}{n} (-\pi) sin(-n\pi) + \frac{1}{n^2}cos(-n \pi) \right) \right] + \left[\frac{1}{n} \pi sin(n\pi) + \frac{1}{n^2}cos(n\pi) - \frac{1}{n^2} \right] \right ) \!](http://upload.wikimedia.org/math/9/8/c/98cd4b3b7a89c690e02990337efb8fd3.png)
Note that for all n = 1,2,3... :
as
therefore these terms are evaluated as zero, which yields:
![a_{n} = \frac{1}{\pi} \left( -\left[\frac{1}{n^2} - \left (0 + \frac{1}{n^2}cos(-n \pi) \right) \right] + \left[0 + \frac{1}{n^2}cos(n\pi) - \frac{1}{n^2} \right] \right ) \!](http://upload.wikimedia.org/math/e/a/0/ea0a8097d6cdd905f37d4a710108c8ce.png)

Note that
therefore:




To evaluate the term
:
Note that
for odd n values as 
And that
for even n values as
.
Therefore, it can be concluded that for odd n values:

And for even n values:

Therefore, for the coefficient
, all even terms will equal zero while all odd terms will have a multiplier of 2, this yields (for all odd n values):

Calculating the coefficient
:


Using integration by parts with the following substitutions:
and therefore 
and therefore 
This yields for the integral:
![b_{n} = \frac{1}{\pi} \left( -\left[\frac{-1}{n} x cos(nx) - \int \frac{-1}{n}cos(nx)dx \right]_{-\pi}^{0} + \left[\frac{-1}{n} x cos(nx) - \int \frac{-1}{n}cos(nx)dx \right]_{0}^{\pi} \right ) \!](http://upload.wikimedia.org/math/9/8/2/982e8b17f6c58539a043be2222a860c2.png)
![b_{n} = \frac{1}{\pi} \left( -\left[\frac{-1}{n} x cos(nx) + \frac{1}{n^2}sin(nx) \right]_{-\pi}^{0} + \left[\frac{-1}{n} x cos(nx) + \frac{1}{n^2}sin(nx) \right]_{0}^{\pi} \right ) \!](http://upload.wikimedia.org/math/2/0/4/204556275cc4a68849b88eaee7666a4e.png)
![b_{n} = \frac{1}{\pi} \left( -\left[0 - \left (\frac{-1}{n} (-\pi) cos(-n\pi) + \frac{1}{n^2}sin(-n \pi) \right) \right] + \left[\frac{-1}{n} \pi cos(n\pi) + \frac{1}{n^2}sin(n\pi) - 0 \right] \right ) \!](http://upload.wikimedia.org/math/f/7/b/f7b14bb7095b87a385b65647fba541dd.png)
Note that for all n = 1,2,3... :
as
therefore these terms are evaluated as zero, which yields:
![b_{n} = \frac{1}{\pi} \left( -\left[0 - \left (\frac{-1}{n} (-\pi) cos(-n\pi) + 0 \right) \right] + \left[\frac{-1}{n} \pi cos(n\pi) + 0 \right] \right ) \!](http://upload.wikimedia.org/math/b/6/b/b6bd4e34c2040c912f215a8882534fd7.png)
![b_{n} = \frac{1}{\pi} \left( \left[\frac{1}{n} (\pi) cos(-n\pi) \right] + \left[\frac{-1}{n} \pi cos(n\pi) \right] \right ) \!](http://upload.wikimedia.org/math/8/8/c/88c16a495a0d58c136a8df92468b6eea.png)
Note that
therefore:


Therefore there will be no
terms in the Fourier representation. In conclusion, the Fourier series representation for the given function is as follows:

A graph of the function, and the Fourier series for
is shown below:

--Egm4313.s12.team11.sheider (talk) 06:00, 22 April 2012 (UTC)
K 2011 p.482 pb. 13 [edit]
Problem Statement [edit]
Find the Fourier series of the given function which is assumed to have a period of
. Show the details of your work.
Sketch or graph the partial sums up to that including
and 
Given:

Solution [edit]
The Fourier series of a function with a period of
is defined:

Where:



Calculating the first term
:

![a_{0} = \frac{1}{2\pi} \left ( \left [\frac{x^2}{2} \right ]_{-\pi}^{0} + \left [\pi x - \frac{x^2}{2} \right ]_{0}^{\pi} \right)\!](http://upload.wikimedia.org/math/8/0/b/80bba200e53be305dd7043f869659d85.png)




Calculating the coefficient
:

Using integration by parts with the following substitutions for the integral
:
and therefore 
and therefore 
Using integration by parts with the following substitutions for the integral
:
and therefore 
and therefore 
This yields for the overall expression:
![a_{n} = \frac{1}{\pi} \left( \left[\frac{1}{n} x sin(nx) - \int \frac{1}{n}sin(nx)dx \right]_{-\pi}^{0} + \left[\frac{1}{n} (\pi - x) sin(nx) - \int -\frac{1}{n}sin(nx)dx \right]_{0}^{\pi} \right ) \!](http://upload.wikimedia.org/math/b/6/7/b670981514cb011887028c38dec27d42.png)
![a_{n} = \frac{1}{\pi} \left( \left[\frac{1}{n} x sin(nx) + \frac{1}{n^2}cos(nx) \right]_{-\pi}^{0} + \left[\frac{1}{n} (\pi - x) sin(nx) - \frac{1}{n^2}cos(nx) \right]_{0}^{\pi} \right ) \!](http://upload.wikimedia.org/math/4/9/1/491842161818b8f17272e55f6fb5c3d2.png)
![a_{n} = \frac{1}{\pi} \left( \left[\frac{1}{n^2} - \left (\frac{1}{n} (-\pi) sin(-n\pi) + \frac{1}{n^2}cos(-n \pi) \right) \right] + \left[-\frac{1}{n^2}cos(n\pi) + \frac{1}{n^2} \right] \right ) \!](http://upload.wikimedia.org/math/4/b/f/4bf0f8826899f10d8e38821b8f8b3615.png)
Note that for all n = 1,2,3... :
as
therefore these terms are evaluated as zero, which yields:
![a_{n} = \frac{1}{\pi} \left( \left[\frac{1}{n^2} - 0 - \frac{1}{n^2}cos(-n \pi) \right] + \left[-\frac{1}{n^2}cos(n\pi) + \frac{1}{n^2} \right] \right ) \!](http://upload.wikimedia.org/math/6/2/f/62ffc30a7460e88aeedb0b7a6357f5da.png)

Note that
therefore:




To evaluate the term
:
Note that
for odd n values as 
And that
for even n values as
.
Therefore, it can be concluded that for odd n values:

And for even n values:

Therefore, for the coefficient
, all even terms will equal zero while all odd terms will have a multiplier of 2, this yields (for all odd n values):

Calculating the coefficient
:

Using integration by parts with the following substitutions for the integral
:
and therefore 
and therefore 
Using integration by parts with the following substitutions for the integral
:
and therefore 
and therefore 
This yields for the overall expression:
![b_{n} = \frac{1}{\pi} \left( \left[\frac{-1}{n} x cos(nx) - \int \frac{-1}{n}cos(nx)dx \right]_{-\pi}^{0} + \left[\frac{-1}{n}(\pi - x) cos(nx) - \int -\frac{-1}{n}cos(nx)dx \right]_{0}^{\pi} \right ) \!](http://upload.wikimedia.org/math/a/a/6/aa6d1b9dceb555b499f823843d343edd.png)
![b_{n} = \frac{1}{\pi} \left( \left[\frac{-1}{n} x cos(nx) + \frac{1}{n^2}sin(nx) \right]_{-\pi}^{0} + \left[\frac{-1}{n}(\pi- x) cos(nx) - \frac{1}{n^2}sin(nx) \right]_{0}^{\pi} \right ) \!](http://upload.wikimedia.org/math/a/1/3/a13773dd499b98095914b1422b92e0e9.png)
![b_{n} = \frac{1}{\pi} \left( \left[0 - \left (\frac{-1}{n} (-\pi) cos(-n\pi) + \frac{1}{n^2}sin(-n \pi) \right) \right] + \left[- \frac{1}{n^2}sin(n\pi) - \left( \frac{-1}{n}\pi \right) \right] \right ) \!](http://upload.wikimedia.org/math/3/f/2/3f2bafccd536ea89abc2f29d5e04bdea.png)

Note that for all n = 1,2,3... :
as
therefore these terms are evaluated as zero, which yields:


Note that
therefore:



To evaluate the term
:
Note that
for odd n values as 
And that
for even n values as
.
Therefore, it can be concluded that for odd n values:

And for even n values:

Therefore, for the coefficient
, all even terms will equal zero while all odd terms will have a multiplier of 2, this yields (for all odd n values):

In conclusion, the Fourier series representation for the given function is as follows:


A graph of the function, and the Fourier series for
is shown below:

--Egm4313.s12.team11.sheider (talk) 06:00, 22 April 2012 (UTC)
R7.5 [edit]
Solved by Daniel Suh
Problem Statement [edit]
Consider the following,


with
, and 
1. Find the integration with the given data.
2. Confirm the results with Matlab's trapz command for the trapezoidal rule.
Solution [edit]
Part 1 [edit]
Trigonometric Identities [edit]
Angle Sum and Difference Identities


Rearrange


Substitute and Combine



Utilize Trig Identities [edit]






Part 2 [edit]
>> X = 0:2*pi/100:2*pi;
>> Y = sin(2*X).*sin(3*X);
>> Z = trapz(X,Y)
Z =
2.9490e-017
![=2\left [ \frac{(-1)^j-1}{\pi^3j^3} \right ] \!](http://upload.wikimedia.org/math/8/9/b/89b209bb44a2d43848771fd0fdfa84eb.png)
![=\sum_{j=1}^{n}2\left [ \frac{(-1)^j-1}{\pi^3j^3} \right ]\cos (\alpha j2\pi) \sin(\frac{j\pi}{2}x) \!](http://upload.wikimedia.org/math/8/e/5/8e5fed969c6c57ba50f8454a10156aaa.png)







![=\frac{1}{4}[(\frac{15}{6}1^6-1^4+\frac{3}{2}1^2)-(\frac{15}{6}(-1)^6-(-1)^4+\frac{3}{2}(-1)^2)]\!](http://upload.wikimedia.org/math/3/1/3/313e7bb25f37462ead7698034099902f.png)
![=\int_{-1}^{1} [\frac{1}{2}(3x^2-1)]^2 \ dx\!](http://upload.wikimedia.org/math/2/f/a/2fa2e3f6dafaaaa262d27eec944a6f2d.png)


![=\frac{1}{4}[(\frac{9}{5}1^5-2(1)^3+1)-(\frac{9}{5}(-1)^5-2(-1)^3+(-1))]\!](http://upload.wikimedia.org/math/d/7/a/d7a4d109ba35dea89a996a3b67859067.png)
![=\frac{1}{4}[\frac{4}{5}-(-\frac{4}{5})]\!](http://upload.wikimedia.org/math/c/0/4/c04463ff6e5f035855ffa4abc169d800.png)
![=\int_{-1}^{1} [\frac{1}{2}(5x^3-3x)]^2 \ dx\!](http://upload.wikimedia.org/math/f/1/6/f16723f63b651d78e8912a8b0b46b5da.png)


![=\frac{1}{4}[(\frac{25}{7}1^7-6(1)^5+3(1)^3)-(\frac{25}{7}(-1)^7-6(-1)^5+3(-1)^3)]\!](http://upload.wikimedia.org/math/1/5/3/1539f4a6fc9ee693bec82f71cefae7ec.png)
![=\frac{1}{4}[\frac{4}{7}-(-\frac{4}{7})]\!](http://upload.wikimedia.org/math/2/3/8/238042689e2f2f2e02aa92da24262c5e.png)





