University of Florida/Egm4313/s12.team11.gooding/R5

From testwiki
Jump to navigation Jump to search

Problem 5.5

Part 1

Problem Statement

Show that cos(7x) and sin(7x) are linearly independant using the Wronskian and the Gramain (integrate over 1 period)

Solution

f=cos(7x),g=sin(7x)
One period of 7x=π/7
Wronskian of f and g
W(f,g)=det[fgfg]

Plugging in values for f,f,g,g;
W(f,g)=det[cos(7x)sin(7x)sin(7x)cos(7x)] =7cos2(7x)+7sin2(7x)
=7[cos2(7x)+sin2(7x)]
=7[1]

 They are linearly Independant using the Wronskian.

<f,g>=abf(x)g(x)dx
Γ(f,g)=det[<f,f><f,g><g,f><g,g>]
0π/7cos2(7x)dx=π/14
0π/7sin2(7x)dx=π/14
0π/7cos(7x)*sin(7x)dx=0
Γ(f,g)=det[π/1400π/14]
Γ(f,g)=π2/49

 They are linearly Independent using the Gramain.

Problem Statement

Find 2 equations for the 2 unknowns M,N and solve for M,N.

Solution

yp(x)=Mcos7x+Nsin7x
y'p(x)=M7sin7x+N7cos7x
y'p(x)=M72cos7xN72sin7x
Plugging these values into the equation given (y3y10y=3cos7x) yields;
M72cos7xN72sin7x3(M7sin7x+N7cos7x)10(Mcos7x+Nsin7x)=3cos7x
Simplifying and the equating the coefficients relating sin and cos results in;
59M21N=3
59N+21M=0
Solving for M and N results in;

  M=177/3922,N=63/3922

Problem Statement

Find the overall solution y(x) that corresponds to the initial conditions y(0)=1,y(0)=0. Plot over three periods.

Solution

From before, one period =π/7 so therefore, three periods is 3π/7.
Using the roots given in the notes λ1=2,λ2=5, the homogenous solution becomes;
yh(x)=c1e2x+c2e5x
Using initial condtion y(0)=1;
1=c1+c2
y'h(x)=2c1e2x+5c2e5x
with y(0)=0
0=2c1+5c2
Solving for the constants;
c1=5/7,c2=2/7
yh(x)=5/7e2x+2/7e5x
Using the yp(x) found in the last part;
y=yh+yp

 y=5/7e2x+2/7e5x177/3922cos7x63/3922sin7x

File:R5 code.jpg

File:R5 plot.jpg

Template:CourseCat