University of Florida/Egm4313/IEA-f13-team10/R3

From testwiki
Jump to navigation Jump to search

Report 3

Problem 1

Problem Statement

Find the complete homogeneous solution using variation of parameters
16y+8y+y=r(x)

Solution

16y+8y+y=0

The solution is y=erx
Therefore, y=rerx and y=r2erx

Plugging this back into the original homogeneous equation, erx(16r2+8r+1)=0
16r2+8r+1=0
(4r+1)(4r+1)=0 so r=1/4
yh=y1,h+y2,h=y1,h+xy1,h
yh(x)=cbar1ex/4+cbar2xex/4


Checking the answer
y2=u(x)y1
y=ex/4
y=1/4*ex/4
y=1/16*ex/4
y'2=uy1+uy'1
y'2=uy1+2uy'1+uy


Plugging this into the original homogeneous equation
16(uy1+2uy'1+uy'1)+8(uy1+uy'1)+(uy)=0

Plugging in values for y and its derivatives, everything cancels out to zero.


Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.

Problem 2

Problem Statement

Find and plot the solution for the L2-ODE_CC
y10y+25y=r(x) y(0)=1,y(0)=1,r(x)=0

Solution

y10y+25y=r(x)
y10y+25y=0
This is a linear, first order ODE with constant coefficients.

To find the general solution to this ODE set y=erx

so that y=rerx and y=r2erx

Substituting in y to the ODE and factoring out erx we get:

r210r+25=0

Using the quadratic formula to solve for r we get

r=b±b24ac2a where a=1,b=10, and c=25

Solving to get r=5

Since we have a repeated root, we need to find v(x) so that y2(x) = v(x)y1(x)

Taking the first and second derivative of y2(x) we get:

y2(x)=v(x)y1(x)+v(x)y1(x)
y2(x)=v(x)y1(x)+2v(x)y1(x)+v(x)y1(x)

Substituting into the original ODE, we get:

(v(x)y1(x)+2v(x)y1(x)+v(x)y1(x))10(v(x)y1(x)+v(x)y1(x))+25(v(x)y1(x))=0
solving for v(x)=0 so v(x) = kx + c

So y2(x) = x y1(x)


We get the general solution y(x)=C1e5x+C2xe5x

Now with the initial values y(0) = 1 and y'(0) = 0


y(0)=C1=1

y(0)=5(1)+C2=0

C1=1 , C2=5

y(x)=e5x5xe5x

File:2.3graph.png

Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.

Problem 3

Problem Statement

Problem Sec 2.4 problem 3

How does the frequency of the harmonic oscillation change if we (i) double the mass (ii) take a spring of twice the modulus?

Problem Sec 2.4 problem 4

Could you make a harmonic oscillation move faster by giving the body a greater push?

Solution

Problem Sec 2.4 problem 3
Part 1

ω=km
f=ω2π=km2π
Now double the mass
f=ω2π=k2m2π
f=km22π
The frequency is decreased by 2.

Part 2

Multiply k by 2
f=2km2π
The frequency is increased by 2.

Problem Sec 2.4 problem 4

No because frequency depends on the ratio of the spring modulus and mass.

Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.

Problem 4

Problem Statement

Section 2.4 Problem 16

Show the maxima of an underdamped motion occur at equidistant t-values and find the distance.

Section 2.4 Problem 17

Determine the values of t corresponding to the maxima and minima of the oscillation y(t)=etsin(t). Check your result by graphing y(t).

Solution

Section 2.4 Problem 16

Part 1=

The general solution of underdamped motion is
y(t)=Ceαtcos(ω*tδ)
The maximas occur at y(t)=Ceαt
Set the two equations equal to each other a solve for t.
Ceαt=Ceαtcos(ω*tδ)
1=cos(ω*tδ)
cos1(1)=ω*tδ
t=2πn+δω* where n=0,1,2,3.....

Part 2

tan(δ)=BA shows delta is a constant.
The periodic distance between maximas is 2πω

Section 2.4 Problem 17

y(t)=etsin(t)
y(t)=et[sin(t)+cos(t)]

To find critical points, set y'(t)=0

et[sin(t)+cos(t)]=0
[sin(t)+cos(t)]=0
sin(t)=cos(t)
sin(t)cos(t)=1
tan(t)=1
t=tan1(1)
t=nπ+π4where n=0,1,2,3...
File:2.4.17.JPG
As seen in the graph, the maximum of t was at π4 and the minimum was at 5π4.

Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.

Problem 5

Problem Statement

Using the formula for Taylor series at x = 0 (the origin, i.e., McLaurin series), develop into Taylor series at the origin x = 0 for the following functions: cos x, sin x, exp(x), tan x, and write these series in compact form with the summation sign and a single summand.

Solution

Part 1
cos x
Taylor Series:
f(x)=sum(1n!)(f(n)(xo))(xxo)n)
when xo=0

f(x)=cos(x):

f(0)=cos(0)=1

f(0)=sin(0)=0

f(0)=cos(0)=1

f(0)=sin(0)=0

f(0)=sum((1)nx2n2n!)

f(0)=1x22!+x44!x66!+x88!x1010!+....

n = 0, 1, 2, 3 ... N

2n = 0, 2, 4, 6, ... 2N

cos(x)=sum((1)nx2n2n!)

Part 2
sin x
Taylor Series:
f(x)=sum(1n!)(f(n)(xo))(xxo)n)
when xo=0

f(x)=sin(x):

f(0)=sin(0)=0

f(0)=cos(0)=1

f(0)=sin(0)=0

f(0)=cos(0)=1

f(0)=(1)(n+1)sum(x(2n1)(2n1)!)

sin(x)=x1!x23!+x55!x77!+....

sin(x)=(1)(n+1)sum(x(2n1)(2n1)!)

Part 3
exp x
Taylor Series:
f(x)=sum(1n!)(f(n)(xo))(xxo)n)
when xo=0

f(x)=ex:

f(0)=e0=1

f(0)=e0=1

f(0)=e0=1

f(0)=e0=1

ex=x1!+x22!+x33!+x44!+....

ex=sum(xnn!)


Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.

Problem 6

Problem Statement

Part 1
Find and plot the solution for the L2-ODE-CC
y+4y+13y=r(x)
Initial conditions: y(0) = 1, y'(0) = 0
No excitation: r(x) = 0

Part 2
In another Fig., superpose 3 Figs.: (a) this Fig.,
(b) the Fig. in R2.6 P. 5-6, (c) the Fig. in R2.1 P. 3-7.

Solution

Part 1
y+4y+13y=0

The characteristic equation of the given ODE is:

λ2+4λ+13=0

Using the quadratic formula to solve for λ

λ=b±b24ac2a where a=1,b=4,c=13

Solving to get λ=4±6i2

λ1=2+3i, λ2=23i

Therefore, the general solution of the given ODE is y=e2x[C1cos3x+C2sin3x]

Now we solve for C1, C2 using the given initial conditions

We have y(0)=1

Substituting x=0,y=1 into y=e2x[C1cos3x+C2sin3x],

We get,

1=e2(0)[C1cos3(0)+C2sin3(0)]

1=C1cos3(0)+C2sin3(0)

1=C1

We have y(0)=0

Differentiating y=e2x[C1cos3x+C2sin3x], we get:

y=2e2x[C1cos3x+C2sin3x]+e2x[3C1cos3x+3C2sin3x]
.

Substituting x=0,y=0 into y=2e2x[C1cos3x+C2sin3x]+e2x[3C1cos3x+3C2sin3x], we get:

0=2e2(0)[C1cos3(0)+C2sin3(0)]+e2(0)[3C1cos3(0)+3C2sin3(0)]

0=2C1+3C2

2C1=3C2

2(1)=3C2

C2=2/3

Therefore, we get C1=1,C2=2/3

Hence the solution of the given ODE is y=e2x[cos3x+2/3sin3x]

Fig. 1:

File:Problem6 Part1.jpg

Part 2
x=0:0.2:20
y=e2x[cos3x+2/3sin3x]
y2=e5x5xe5x
y3=57e2x+27e5x

Fig. 2:

File:Problem6 Part1.jpg

Fig. 3:

File:Problem6 Part2 2.jpg

Fig. 4:

File:Problem6 Part2 3.jpg

Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.

Problem 7

Problem Statement

Consider the same system as in the Example p.7-3, i.e., the same L2-ODE-CC (4) p.5-5 and initial condi- (2) p.3-4, but with the following excitation: r(x)=7e5x2x2

Solution

y10y+25y=7e65x2x2

yp=C1x2e5xC2x3

Replacing y with yp and after simplifying we get,

2C1e5xC2x(25x230x+6)=7e5x2x

The root here is λ=5. So we can solve for our constants,

C1=72
C2=2481

y(x)=yh+yp=c1e5x+c2xe5x+72x2e5x2481x3

Using the initial conditions y(0)=4 and y'(0)=-5 we can solve for our constants,

c1=4
c2=1

So the solution is,

y=4e5x+xe5x+72x2e5x2481x3

Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.


Problem 8

Problem Statement

Plot the error between the exact derivative and the approximate derivative, i.e.

xeλxe(λ+ϵ)xeλxϵ from

15x15

For ε = .0001, .0003, .0006, and .001 and λ =.3

Solution

Since the above equation is the error between the exact derivative and the approximate derivative, it must be plotted with the correct values of \epsilon and \lambda, from x = -15 to 15

Case 1

ε=.0001
File:Pic1.png

Case 2

ε=.0003
File:Pic2.png

Case 3

ε=.0006
File:Pic3.png

Case 4

ε=.001
File:Pic4.png

Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.

Problem 9

Problem Statement

Find the complete solution for y3y+2y=4x2, with the initial conditions
y(0)=1, y(0)=0
plot the solution y(x)

Solution

Particular Solution
yp(x)=Ax2+Bx+c
yp=2Ax+B
yp=2A
2A6Ax3B+2Ax2+2Bx+2c=4x2
2A=4

6A+2B=0

2A3B+2C=0


A=2
B=6
C=7


yp(x)=2x2+6x+7


Homogeneous Solution
yh(x)=c1ex+c2e(2x)
yh=c1ex+2c2e(2x)


Initial conditions
y(0)=1
1=c1+c2

y(0)=0
0=c1+2c2


c1=2,c2=1


General Solution
yg=2exe(2x)+2xx+6x+7
File:R3plots.PNG

Honor Pledge

On our honor, we solved this problem on our own, without aid from online solutions or solutions from previous semesters.

Template:CourseCat