University of Florida/Egm4313/s12.team1/R6

From testwiki
Revision as of 02:11, 17 October 2020 by imported>MaintenanceBot (Category:Pages with broken file links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Big3

Problem R6.1

Statement

Find the (smallest) period of cosnωx and sinnωx.
Show that these functions also have period p.
Show that the constant a0 is also a periodic function with period p .

Solution

First, we identify the property of periodic functions, as shown on p9-2 of the notes, equation (1)

f(x+np)=f(x)

(1.0)


So for cosnωx, the following determines the smallest period.

cos(nωx)

(1.1)


We then add 2π to see a final expression that will be equal to f(x+np)=f(x)

cos(nωx+2π)

(1.2)


We then pull out a term that leaves an x plus a number (our period) inside the trigonometric function, cosine.

cos[nω(x+2πnω)]

(1.3)


This means the smallest period is 2πnω.

For sinnωx, the following determines the smallest period.

sin(nωx)

(1.4)


We then add 2π to see a final expression that will be equal to f(x+np)=f(x)

sin(nωx+2π)

(1.5)


We then pull out a term that leaves an x plus a number (our period) inside the trigonometric function, cosine.

sin[nω(x+2πnω)]

(1.6)


This means the smallest period is 2πnω, just as for its cosine equivalent.


From the notes (page 9-5, (1)), it can be stated that ω=2πp where p is the period. Both of these functions have 2πnω as their period. If we put in 1 for n, and 2πp for ω, the period simplifies to simply p.

As for the constant a0, a constant is, almost by definition, a periodic function. The property of periodic functions as referenced in (1.0) supports this.

f(x+np)=f(x)

(1.0)


For a function of f that is a constant, x is not a factor effecting its value. This means, no matter what is added to x, the function will return the same constant number. This added value can just as well be p, and thus, ao is a periodic function with period p.

Author

Solved and Typed By -Egm4313.s12.team1.silvestri (talk) 02:19, 7 April 2012 (UTC)
Reviewed By - --Egm4313.s12.team1.rosenberg (talk) 01:19, 11 April 2012 (UTC)




Problem R6.2 Fourier Series Expansions for Odd and Even Functions

Statement

Kreyszig pg 491 pbs. 11,12
Is the given function odd or even or neither even nor odd? Show details of your work.


11)

f(x)=x2(1<x<1),p=2



12)

f(x)=1x24(2<x<2),p=4


-----



Continued)Find the Fourier series expansion for f(x) on p.9-8 as follows:
1. Develop the Fourier series expansion of f(x¯)
Plot f(x¯) and the truncated Fourier series fn(x¯)

dsfawf

for n=0,1. Observe the values of f(x¯) at the points of discontinuities, and the Gibbs phenomenon. Transform the variable so to obtain the Fourier series expansion of f(x).
Hint: f(x¯) is an even function; what would become of the coefficients b¯k?

2. Do the same as above, but using f(x~) to obtain the Fourier series expansion of f(x); compare to the result obtained above.
Hint: Transform f(x~) into an odd function, and expand this odd function into Fourier series; observe the coefficients of this series.

Solution

Part 1: K 2011 p.491 pb. 11

f(x)=x2,(1<x<1),p=2

(2.0)

The preceding function is an even function. Even functions are functions where f(x)=f(x). Odd functions on the other hand are functions where f(x)=f(x). The Fourier series of even and odd functions can be found more easily than the Fourier series of a function that is neither even nor odd. Normal Fourier series contain both sine and cosine terms. Because of the nature of even functions, the coefficient of all sine terms in their series is zero. Likewise, all cosine terms in odd functions have a coefficient of zero. Therefore its Fourier series expansion will be of the form:

f(x)=a0+n=1ancosnπLx

(2.1)

Where:

a0=1L0Lf(x)dx

(2.2)

And

an=2L0Lf(x)cosnπxLdx

(2.3)

To get the constant term of the expansion, equation (2.0) will be substituted into equation (2.2) with L=1:

a0=1101x2dx=[x33]01=13

(2.4)

To get the coefficients of the rest of the terms in the expansion, equation (2.0) will be substituted into equation (2.3) with L=1:

an=2101x2cosnπx1dx=2[(π2n2x22)sin(πnx)+2πnxcos(πnx)π3n3]01

(2.5)

Simplifying, this yields:

an=4n2π2cosnπ

(2.6)

Therefore, the Fourier expansion of f(x) is:

x2=13+n=1(4n2π2cosnπ)cosnπx

(2.7)

Part 2: K 2011 p.491 pb. 12

f(x)=1x24,(2<x<2),p=4

(2.8)

The preceding function is an even function. Therefore, equations (2.1)-(2.3) are applicable.
To get the constant term of the expansion, equation (2.8) will be substituted into equation (2.2) with L=1:

a0=12021x24dx=12[xx312]02=43

(2.9)

To get the coefficients of the rest of the terms in the expansion, equation (2.0) will be substituted into equation (2.3) with L=1:

an=2202(1x24)cosnπx2dx=[(8π2n2(x24))sinnπx24nπxcosnπx22π3n3]02

(2.10)

Simplifying, this yields:

an=4cos(nπ)n2π2

(2.11)

Therefore, the Fourier expansion of f(x) is:

1x24=43+n=1(4cos(nπ)n2π2)cosnπx2

(2.12)

Part 3 The Fourier series expansion of the function f(x) in Figure 1 can be found in one of two ways. The first way involves transforming x in the following way:

x¯=x54

(2.13)

The resulting function is now an even function that alternates between the constant value A and zero and has period 4. Using the same methods used above, the Fourier series of the function can be found.
The constant coefficient of the series is found by:

a¯0=1202f(x)dx=1201Adx+12120dx=1/2[Ax]01=A2

(2.14)

Note that because the function is discontinuous at the midpoint, the integral must be split into two different integrals.
The coefficients of the cosine terms of the series can be found by:

a¯n=2202f(x)cosnπx2dx=01Acosnπx2dxdx+12120dx=[2Anπsinnπx2]01=2Anπsinnπ2

(2.15)

Therefore, the Fourier series for the transformed function is:

f(x¯)=A2+n=0(2Anπsinnπ2)(cosnπx¯2)

(2.16)

Through a change in variables, the Fourier series of the original function, f(x), can be found:

f(x)=A2+n=0(2Anπsinnπ2)(cosnπ(x1.25)2)

(2.17)

The following figure shows a plot of f(x¯) with its truncated Fourier series for n=0,1.


Figure 2
Figure 3 shows the same plot with more values of n:


Note that all plots assume that A=1.
It should be noted that the accuracy of the expansion increases with an increase in the number of terms in the expansion. Also, there is strong fluctuation at points of discontinuity. These fluctuations are apparent even at high values of n, but they decrease in size and move closer to the points of discontinuity. This is a property of Fourier series known as the Gibbs phenomenon.
The other method of developing the Fourier series is to transform the function into an odd function. This can be done by transforming both the independent variable and overall function as follows:

x~=x14

(2.18)

f(x^)=f(x~)A2

(2.19)

An odd function has a Fourier series expansion of the form:

f(x)=n=0bnsinnπxL

(2.20)

Where:

bn=2L0Lf(x)sinnπxLdx

(2.21)

Applying this to the transformed function, with L=2:

b^n=2202f(x)sinnπx^2dx^=02A2sinnπx^2dx^=[Anπcosnπx^2]02=Anπ(1cosnπ)

(2.22)

The Fourier series is therefore:

f(x^)=n=0(Anπ(1cosnπ))(sinnπx^2)

(2.23)

f(x~)=A2+n=0(Anπ(1cosnπ))(sinnπx~2)

(2.24)

f(x)=A2+n=0(Anπ(1cosnπ))(sinnπ(x0.25)2)

(2.25)

The following figure shows a plot of f(x~) with its truncated Fourier series for n=0,1.


Figure 4
Note that all plots assume A=1.
The accuracy of the expansion as shown on the plot is expected given the low number of terms used in the expansion. As Figure 3 shows, if the number of terms used to form the plot in Figure 4 is increased, the accuracy of the expansion will greatly increase (but more slowly at points of discontinuity because of the Gibbs phenomenon). This level of accuracy is shown in Figure 5, which contains the expansion to 100 and 200 terms.

Author

Solved and Typed By - Egm4313.s12.team1.armanious (talk) 07:10, 11 April 2012 (UTC)
Reviewed By - Egm4313.s12.team1.silvestri (talk) 18:30, 11 April 2012 (UTC)




Problem R6.3 Finding Fourier Series for Odd and Even Functions

Statement

Kreyszig pg 491 pbs 15,17
Is the given function even or odd or neither even not odd? Find its Fourier series. Show details of your work.




Plot the truncated Fourier series for n=2,4,8

Solution

By definition, a function, f(x) is even if f(x)=f(x), and its Fourier series reduces to a Fourier cosine series:

f(x)=a0+n=1ancosnπLx

(3.0)


A function, f(x) is odd if f(x)=f(x), and its Fourier series reduces to a Fourier sine series:

f(x)=n=1bnsinnπLx

(3.1)



15)

By inspection, it is evident that the given function in problem 15 is odd because for every x value that is negative, f(x) is negative. Therefore, f(x)=f(x).

The following are the defining functions for the given graph:

f(x)={πx if x=π<x<π2x if x=π2<x<π2πx if x=π2<x<π

(3.2)


Because the function is odd, we use equation (3.1) to develop the Fourier series, where the period is 2π and L equals π:

f(x)=n=1bnsinnπLx=n=1bnsin(nx)

(3.3)


Now we need to find bn, which is of the following form for odd functions:

bn=2L0Lf(x)sinnπxLdx

(3.4)


bn=2π0πsin(nx)dx=2π[0π/2xsin(nx)dx+π/2π(πx)sin(nx)dx]

(3.5)


bn=2π[[sin(nx)nxcos(nx)n2]0π/2+[sin(nx)+n(πx)cos(nx)n2]π/2π]

(3.6)


Evaluating and simplifying the definite integral gives the following:

bn=2n2π[2sin(nπ2)sin(nπ)]

(3.7)


Evaluating equation (3.7) at n=1,2,3,4,5,6,7,8

b1=4π,b2=0,b3=49π,b4=0,b5=425π,b6=0,b7=449π,b8=0

(3.8)


Thus:

f(x)=4π(sinx19sin3x+125sin5x149sin7x+...)

(3.9)

Plots of truncated Fourier series:
n = 2:
File:N = 2.png
n = 4:
File:N = 4.png
n = 8:
File:N = 8.png


17)

By inspection, it is evident that the given function in problem 17 is even because for every x value that is negative, f(x) is positive. Therefore, f(x)=f(x).

The following are the defining functions for the given graph:

f(x)={x+1 if 1<x<01x if 0<x<1

(3.10)


Because the function is even, we use equation (3.0) to develop the Fourier series, where the period is 2 and L=1:

f(x)=a0+n=1ancosnπLx=a0+n=1ancos(nπx)

(3.11)


Now we need to find a0 using Euler's Formula:

a0=12LLLf(x)dx

(3.12)


a0=1211f(x)dx=12[10(x+1)dx+01(1x)dx]

(3.13)


a0=12[[x22+x]10+[xx22]01]

(3.14)


Evaluating the definite integral in equation (3.14) yields a0:

a0=12

(3.15)


Now we find an using Euler's Formula:

an=1LLLf(x)cosnπxLdx=11f(x)cos(nπx)dx

(3.16)


an=10(x+1)cos(nπx)dx+01(1x)cos(nπx)dx

(3.17)


an=[πn(x+1)sin(πnx)+cos(πnx)n2π2]10+[πn(x1)sin(πnx)+cos(πnx)n2π2]01

(3.18)


Evaluating the definite integral in equation (3.18) yields the following equation for an:

an=2(1cos(π))n2π2

(3.19)


Evaluating equation (3.19) at n=1,2,3,4,5,6,7,8 yields:

a1=4π2,a2=0,a3=49π2,a4=0,a5=425π2,a6=0,a7=449π2,a8=0

(3.20)


Thus, the Fourier series is:

f(x)=12+4π2(cos(πx)+19cos(3πx)+125cos(5πx)+149cos(7πx)+...)

(3.21)

Plots of truncated Fourier series:
n = 2:
File:2N.png
n = 4:
File:4N.png
n = 8:
File:8N.png

Author

Solved and Typed By ---Egm4313.s12.team1.wyattling (talk) 06:19, 11 April 2012 (UTC)
Reviewed By -Egm4313.s12.team1.armanious (talk) 15:18, 11 April 2012 (UTC)




Problem R6.4 Fourier Series as an ODE Excitiation

Statement

Consider the L2-ODE-CC (5) p7b-7 with the window function f(x) p.9-8 as excitation:

y3y+2y=r(x)
r(x)=f(x)

(4.0)


and the initial conditions

y(0)=1,y(0)=0

(4.1)


1. Find yn(x) such that:

y'n+ay'n+byn=rn(x)

(4.2)


with the same initial conditions (4.1).
Plot yn(x) for n=2,4,8, for x in [0,10].
2.Use the matlab command ode45 to integrate the L2-ODE-CC, and plot the numerical solution to compare with the analytical solution. Level 1:n=0,1

Part 1 Solution

First, we shift the excitation f(x) to the left by introducing a new independent variable, t. This allows the period to start at zero.

t=x14

(4.3)


The piecewise representation of the window function is now (in terms of t) as follows:

f(t)=A for t=[0,2]
f(t)=0 for t=[2,4]

(4.4)


To find the Fourier transform, the period of oscillation is determined:

p=2L=4

(4.5)


And the frequency of oscillation:

ω=2πp=π2

(4.6)


The general form of a Fourier transform is

f(t)=a0+1n[ancos(nωt)+bnsin(nωt)]

(4.7)


The following equations are given values of the constants in (4.7), evaluated for the function in (4.4):

a0=12L02Lf(t)dt=1402Adt=A4(20)=A2

(4.8)


an=1L02Lf(t)cos(nωt)dt=1202Acos(nπ2t)dt=Anπ(sinnπsin0)

(4.9)


bn=1L02Lf(t)sin(nωt)dt=1202Asin(nπ2t)dt=Anπ(cosnπcos0)=Anπ(1cosnπ)

(4.10)


In their simplest forms:

an=0

(4.11)


bn={0,Aπ,0,A2π,0,A3π,0,A4π,...,0,2Anπ}

(4.12)


Plugging in r(x)=f(t) in (4.0),

y3y+2y=12+2nπsin(nπ2t)

(4.13)


From the general form, a particular solution to (4.13) and its derivatives are as follows:

yn=Ancos(nπ2t)+Bnsin(nπ2t)

(4.14)


yn'=Annπ2sin(nπ2t)+Bnnπ2cos(nπ2t)

(4.15)


yn'=Ann2π24cos(nπ2t)Bnn2π24sin(nπ2t)

(4.16)


By plugging in (4.14), (4.15), and (4.16) into (4.13), we find An and Bn in terms of another constant, Cn:

An=6nπCn

(4.17)


Bn=(8n2π2)Cn

(4.18)


Cn=[18nπ((8n2π2)2+(6nπ)2)]1

(4.19)


After substituting t with (4.3), the solutions are shown for n=2,4,8.

y2=y1+y2

(4.20)


y4=y1+y2+y3+y4

(4.21)


y8=y1+y2+y3+y4+y5+y6+y7+y8

(4.22)


Part 2 Solution

The excitation for n=0 and n=1 are the same, because a1=b1=0.

The homogeneous solution to (4.0) is

yh=C1e2t+C2et

(4.23)


For r(x)=a0, the particular solution is

yp=C3

(4.24)


Evaluating, we find that

C1=34
C2=32
C3=14

(4.25)


Thus, the complete solution y0 is

y0=1434e2(x14)+32ex14

(4.26)


Integrating y0 using MATLAB's ode45 command, the following plot is obtained for y:

Author

Solved and Typed By - Egm4313.s12.team1.essenwein (talk) 00:00, 11 April 2012 (UTC)
Reviewed By - --Egm4313.s12.team1.wyattling (talk) 14:02, 11 April 2012 (UTC)




Problem R6.5

Statement

Continuation of R4.2, R4.3, R4.4.
R4.2,p.7c-26:yn(x)=yh,n(x)+yp,n(x)
For each value of n=3,5,9, redisplay the expressions for the 3 functions yp,n(x),yh,n(x),yn(x), and plot these 3 functions separately over the interval [0,20π].
Exact solution: y(x)=yh(x)+yp(x)
Redisplay the expressions for yp(x),yh(x),y(x)
Superimpose each of the above plots with that of the exact solution.

R4.3,p.7c-28:
Level 1: Understand and run the TA's code to produce a similar plot, but over a larger interval [0,10]. Do zoom-in plots about points x=0.5,0,+0.5 and comment on the accuracy of different approximations.
R4.4,p.7c-29:
Level 1: Understand and run the TA's code to produce a similar plot, but over a larger interval [0.9,10], and for n=4,7. Do zoom-in plots about x=1,1.5,2,2.5 and comments on the accuracy of the approximations.

Solution

R4.2,p.7c-26

This first part of the problem is to redo 4.2:

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:

y3y+2y=0

(5.0)

λ23λ+2=0λ=1,2

(5.1)

yh,n(x)=C1ex+C2e2x

(5.2)


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

r3(x)=xx33!+x55!x77!

(5.3)

r5(x)=xx33!+x55!x77!+x99!x1111!

(5.4)

r9(x)=xx33!+x55!x77!+x99!x1111!+x1313!x1515!+x1717!x1919!

(5.5)

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

yp,n=i=0nkixi

(5.6)

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:

[ba2b2a6b3a12.........ba(n1)n(n1)banb]

(5.7)

n=3
The matrix A is found as:

A=[23226629122122021530218422212]

(5.8)

Therefore, the matrix equation is:

[23226629122122021530218422212][k0k1k2k3k4k5k6k7]=[0101601120015040]

(5.9)

[k0k1k2k3k4k5k6k7]=[0.19920.39840.39840.09900.00780.00310.00109.9206×105]

(5.10)

Therefore the particular solution is:

yp,3(x)=9.9206×105x70.0010x60.0031x50.0078x40.0990x30.3984x20.3984x0.1992

(5.11)

And the overall solution for n=3 is:

y3(x)=C1ex+C2e2x9.9206×105x70.0010x60.0031x50.0078x40.0990x30.3984x20.3984x0.1992

(5.12)

Using the initial conditions:

1=C1+C20.1992 & 0=C1+2C20.3984

(5.13)

Solving yields C1=2 & C2=0.8008. Therefore the overall solution is:

y3(x)=2ex0.8008e2x9.9206×105x70.0010x60.0031x50.0078x40.0990x30.3984x20.3984x0.1992

(5.14)

n=5
The matrix equation is:
Therefore the particular solution is:

yp,5(x)=1.2526×108x112.0668×107x101.0334×106x94.6503×106x81.1781×104x7
0.0011x60.0033x50.0083x40.0999x30.3999x20.3999x0.2000

(5.15)

And the overall solution for n=5 is:

y5(x)=C1ex+C2e2x1.2526×108x112.0668×107x101.0334×106x94.6503×106x8
1.1781×104x70.0011x60.0033x50.0083x40.0999x30.3999x20.3999x0.2000

(5.16)

Using the initial conditions:

Solving yields C1=2.0001&C2=0.8001. Therefore the overall solution is:

y5(x)=2.0001ex0.8001e2x1.2526×108x112.0668×107x101.0334×106x94.6503×106x8
1.1781×104x70.0011x60.0033x50.0083x40.0999x30.3999x20.3999x0.2

(5.18)

n=9
The matrix equation is:

File:R4222.png


Therefore the particular solution is:

yp,9(x)=4.1103×1018x191.1714×1016x181.0543×1015x178.9615×1015x164.5405×1013x159.1408×1012x14
6.3985×1011x134.1590×1010x121.5021×108x112.2040×107x101.1020×106x94.9591×106x8
1.1904×104x70.0011x60.0033x50.0083x40.1000x30.4000x20.4000x0.2000

(5.19)

And the overall solution for n=9 is:

y9(x)=C1ex+C2e2x4.1103×1018x191.1714×1016x181.0543×1015x178.9615×1015x164.5405×1013x159.1408×1012x14
6.3985×1011x134.1590×1010x121.5021×108x112.2040×107x101.1020×106x9
4.9591×106x81.1904×104x70.0011x60.0033x50.0083x40.1000x30.4000x20.4000x0.2000

(5.20)

Using the initial conditions:

1=C1+C20.2&0=C1+2C20.4

(5.21)

Solving yields C1=2&C2=0.8. Therefore the overall solution is:

y9(x)=2ex0.8e2x4.1103×1018x191.1714×1016x181.0543×1015x17
8.9615×1015x164.5405×1013x159.1408×1012x146.3985×1011x13
4.1590×1010x121.5021×108x112.2040×107x101.1020×106x9
4.9591×106x81.1904×104x70.0011x60.0033x50.0083x40.1000x30.4000x20.4000x0.2000

(5.22)


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:

yp(x)=Kcosx+Msinx

(5.23)

yp(x)=Ksinx+Mcosx

(5.24)

yp(x)=KcosxMsinx

(5.25)

Plugging these values into the ODE:

KcosxMsinx+3Ksinx3Mcosx+2Kcosx+2Msinx=sinx

(5.26)

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

K3M=0 & 3K+M=1

(5.27)

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

yp(x)=0.3cosx+0.1sinx

(5.28)

Therefore the exact overall solution is:

y(x)=C1ex+C2e2x+0.3cosx+0.1sinx

(5.29)

y(x)=C1ex+2C2e2x0.3sinx+0.1cosx

(5.30)

Using the initial conditions yield the equations:

1=C1+C2+0.3 & 0=C1+2C2+0.1

(5.31)

Solving these two equations yield C1=1.5&C2=0.8. Therefore the exact overall solution is:

y(x)=1.5ex0.8e2x+0.3cosx+0.1sinx

(5.32)

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

R4.3,p.7c-28

In this problem we are given the TA's Matlab code but must change the interval on which we are plotting. This give us the following code:

x=-1:0.01:1.5;
y=log(1+x);
x1=-1.5:0.01:1.5;
y1=zeros(1,301);
for i=1:4
for j=1:301
y1(j)=y1(j)-((-x1(j))^i)/i;
end
end
y2=zeros(1,301);
for i=1:7
for j=1:301
y2(j)=y2(j)-((-x1(j))^i)/i;
end
end
y3=zeros(1,301);
for i=1:11
for j=1:301
y3(j)=y3(j)-((-x1(j))^i)/i;
end
end
y4=zeros(1,301);
for i=1:16
for j=1:301
y4(j)=y4(j)-((-x1(j))^i)/i;
end
end
h=plot(x,y);
orange = [1 0.5 0.2];
set(h,'Color',orange);
hold on;
plot(x1,y1,'r');
plot(x1,y2,'g');
plot(x1,y3,'b');
plot(x1,y4,'c');
axis([0 10 -10 10]);
legend('log(1+x)','T_4','T_7','T_1_1','T_1_6');
grid on;

Zooming at -0.5

This graph shows fairly accurate results with slight deviation, with largest deviation occurring at the T4 term.

Zooming about point 0

In this graph, only T16 shows, thus meaning that it is the best approximation.

Zooming at 0.5

All lines appear to be fairly good approximations with the exception of T4 which deviates from the rest.

R4.4,p.7c-29

Again we must adjust the TA's Matlab code:

syms x
f=log(x+1);
fT1=taylor(f,5,1);
fT2=taylor(f,8,1);
fT3=taylor(f,12,1);
X=.9:0.1:10;
Y(:,1)=subs(fT1,'x',X);
Y(:,2)=subs(fT2,'x',X);
Y(:,3)=subs(fT3,'x',X);
Y(:,4)=log(1+X);
figure
plot(X,Y);
axis([.9,10,-10,10]);


Zooming at 1

Since the three lines are all stacked, both n=4 and n=7 are good approximations at x=1.

Zooming at 1.5

Again, since the three lines are all stacked, both n=4 and n=7 are good approximations at x=1.5.

Zooming at 2

Here, both can again be said to be good approximations, however, you can see some very slight deviation in n=4.

Zooming at 2.5

In this plot, n=7 is still a pretty strong approximation, while n=4 is beginning to deviate at a fairly rapid rate and thus will soon be a poor approximation.

Author

Solved and Typed By - --Egm4313.s12.team1.rosenberg (talk) 01:19, 11 April 2012 (UTC)
Reviewed By ---Egm4313.s12.team1.durrance (talk) 19:12, 11 April 2012 (UTC)




Problem R6.6 Simplifying a Particular Solution

Statement

Verify (2) p.10-7 as follows:
Given the ODE:

y'p+4y'p+13yp=2e2xcos(3x)

(6.1)

1)Simplify the 1st term y'p on the lhs of (2) p.10-4.
2)Simplify the 2nd term 4y'p, and combine with the simplified 1st term.
3)Finally, add the 3rd term 13yp
4)Find the final expression for yp(x)

Solution

From Lecture 10 Pg. 9

To find the particular solution of an ODE we can use the method of undetermined coefficients. In report 3 we used the table 2.1 below to find the standard form of the particular solution given the form of the excitation r(x).

Table 2.1

File:Table2.1.JPG


So the general form of the particular solution is:

yp(x)=xe2x[Mcos3x+Nsin3x]

(6.2)

Task 1 asks to simplify they first term of the given ODE which is yp(x). This is done by taking the second derivative of yp(x) and plugging it into equation 6.1

y'p(x)=x(xe2x[Mcos3x+Nsin3x])x

(6.3)

yp(x) simplifies to:

y'p(x)=e2x(sin(3x)[6M(2x1)N(5x+4)]cos(3x)[M(5x+4)+6N(2x1)])

(6.4)

Now we must do the same for the second term 4yp(x).

4y'p(x)=(4xe2x[Mcos3x+Nsin3x])x

(6.5)

4y'p(x)=4e2x[sin(3x)(3Mx2Nx+N)+cos(3x)(2Mx+M+3Nx)]

(6.6)

Add the second term to the first to continue building the original ODE (equation 6.1).

y'p(x)+4y'p(x)=x(xe2x[Mcos3x+Nsin3x])x+(4xe2x[Mcos3x+Nsin3x])x

(6.7)

y'p(x)+4y'p(x)=4e2x[sin(3x)(3Mx2Nx+N)+cos(3x)(2Mx+M+3Nx)]
+e2x(sin(3x)[6M(2x1)N(5x+4)]cos(3x)[M(5x+4)+6N(2x1)])

(6.8)

Finally add the third term 13yp(x) to the other two to have the lhs of the ODE 6.1

13yp(x)=13xe2x[Mcos3x+Nsin3x]

(6.9)

y'p(x)+4y'p(x)+13yp(x)=e2x(sin(3x)[6M(2x1)N(5x+4)]cos(3x)[M(5x+4)+6N(2x1)])+4e2x[sin(3x)(3Mx2Nx+N)
+cos(3x)(2Mx+M+3Nx)]+13xe2x[Mcos3x+Nsin3x]

(6.10)

yp(x)=xe2x[Mcos3x+Nsin3x]=6e2x[Ncos(3x)Msin(3x)]

(6.11)

This simplifies to the particular solution below:

yp(x)=6e2x[Ncos(3x)Msin(3x)]

(6.12)

Author

Solved and Typed By ---Egm4313.s12.team1.stewart (talk) 23:50, 10 April 2012 (UTC)
Reviewed By - Egm4313.s12.team1.essenwein (talk) 18:12, 11 April 2012 (UTC)

Problem R6.7: Separated ODEs

Statement

Find the separated ODEs for the heat equation:

ut=κ2ux2

(7.0)


Where κ is the coefficient of heat conductivity.


Solution

Assume:

u(x,t)=F(x)G(t)

(7.1)



So, by take partial derivatives of Eq. (7.1) with respect to the individual variables:

u(x,t)t=F(x)G˙(t)

(7.2)



2u(x,t)x2=F(x)G(t)

(7.3)



By substituting the partial derivatives back into Eq. (7.0):

F(x)G˙(t)=κF(x)G(t)

(7.4)



Separating the equations to similar variables yields:

G˙(t)G(t)=κF(x)F(x)=C (constant)

(7.4a)



Therefore the separated ODEs are:

G˙(t)CG(t)=0

F(x)CκF(x)=0

(7.5)

Author

Solved and Typed By - --Egm4313.s12.team1.durrance (talk) 02:13, 9 April 2012 (UTC)
Reviewed By - --Egm4313.s12.team1.stewart (talk) 23:48, 10 April 2012 (UTC)




Contributing Members

Template:Center topTeam Contribution TableTemplate:Center bottom
Problem Number Lecture Assigned To Solved By Typed By Proofread By
6.1 Sec. 9-1 p. 9-5 Emotion Silvestri Emotion Silvestri Emotion Silvestri Steven Rosenberg
6.2 Sec. 9-1 p. 9-8 George Armanious George Armanious George Armanious Emotion Silvestri
6.3 Lecture 9-1 Pg. 9-12 Wyatt Ling Wyatt Ling Wyatt Ling George Armanious
6.4 Sec. 9-1 p. 9-8 Eric Essenwein Eric Essenwein Eric Essenwein Wyatt Ling
6.5 Lecture 9-1 Pg. 28 Steven Rosenberg Steven Rosenberg Steven Rosenberg Jesse Durrance
6.6 Lecture 10 Pg. 9 Chris Stewart Chris Stewart Chris Stewart Eric Essenwein
6.7 Sec. 19a-1 p. 19-3 Jesse Durrance Jesse Durrance Jesse Durrance Chris Stewart