Practice Exam 3 Solutions

Math 231.04, Spring 2010: Practice Exam 3 Solutions
Math 231.04
1
Practice Exam 3 Solutions
NAME:
#1.)
/20
#2.)
/20
#3.)
/10
#4.)
#5.)
/20
#6.)
/10
#7.)
/10
Total:
/10
/100
Instructions: There are 5 pages, each containing one problem worth 20 points, for a total of 100
points on the exam. You must show all necessary work to get credit. You may not use your book,
notes, or calculator. Partial credit will only be given for progress toward a correct solution.
1.) (20 points) Solve
𝑦 β€²β€² βˆ’ 4𝑦 β€² + 5𝑦 = 0,
𝑦(0) = 3,
𝑦 β€² (0) = 4.
We guess a solution of the form 𝑦 = π‘’π‘Ÿπ‘‘ , which leads to the characteristic equation
π‘Ÿ2 βˆ’ 4π‘Ÿ + 5 = 0.
We cannot factor this quadratic, so using the quadratic formula we get
√ √
√
√
4 ± 16 βˆ’ 4 β‹… 5
4 ± βˆ’4
4 ± 4 βˆ’1
4 ± 2𝑖
=
=
=
= 2 ± 𝑖.
π‘Ÿ=
2
2
2
2
This implies that the general solution is
𝑦 = 𝐢1 𝑒2𝑑 cos 𝑑 + 𝐢2 𝑒2𝑑 sin 𝑑.
Then the condition 𝑦(0) = 3 yields
3 = 𝐢1 𝑒0 cos 0 + 𝐢2 𝑒0 sin 0 = 𝐢1 + 0 = 𝐢1 .
Hence
𝑦 = 3𝑒2𝑑 cos 𝑑 + 𝐢2 𝑒2𝑑 sin 𝑑.
Next, we calculate 𝑦 β€² using the product rule:
𝑦 β€² = 6𝑒2𝑑 cos 𝑑 βˆ’ 3𝑒2𝑑 sin 𝑑 + 𝐢2 2𝑒2𝑑 sin 𝑑 + 𝐢2 𝑒2𝑑 cos 𝑑.
Hence the condition 𝑦 β€² (0) = 4 yields
4 = 6 βˆ’ 0 + 0 + 𝐢2 .
Hence 𝐢2 = 4 βˆ’ 6 = βˆ’2. So finally
𝑦 = 3𝑒2𝑑 cos 𝑑 βˆ’ 2𝑒2𝑑 sin 𝑑.
Math 231.04, Spring 2010: Practice Exam 3 Solutions
2
2.) (20 points) Assuming the fact that the function 𝑦1 = 𝑒𝑑 is a solution of the equation
(
)
(
)
2
2
β€²β€²
β€²
(β˜…)
𝑦 βˆ’ 2+
𝑦 + 1+
𝑦 = 0,
𝑑
𝑑
find the general solution of (β˜…).
To get the general solution, we need two linearly independent solutions. Since we have one
solution, we use the method of reduction of order. We guess a second solution of the form 𝑦2 = 𝑣𝑦1 ,
where 𝑣 is a function of 𝑑. Here 𝑦2 = 𝑣𝑒𝑑 = 𝑒𝑑 𝑣; hence by the product rule, 𝑦2 β€² = 𝑒𝑑 𝑣 + 𝑒𝑑 𝑣 β€² and
𝑦2 β€²β€² = 𝑒𝑑 𝑣 + 𝑒𝑑 𝑣 β€² + 𝑒𝑑 𝑣 β€² + 𝑒𝑑 𝑣 β€²β€² = 𝑒𝑑 𝑣 + 2𝑒𝑑 𝑣 β€² + 𝑒𝑑 𝑣 β€²β€² . Substituting this in the equation, we get
)
(
)
(
2
2
β€²
β€²β€²
𝑦2 + 1 +
𝑦2
𝑦2 βˆ’ 2 +
𝑑
𝑑
(
)
(
)
2
2 𝑑
𝑑
𝑑 β€²
𝑑 β€²β€²
𝑑
𝑑 β€²
= 𝑒 𝑣 + 2𝑒 𝑣 + 𝑒 𝑣 βˆ’ 2 +
(𝑒 𝑣 + 𝑒 𝑣 ) + 1 +
𝑒𝑣
𝑑
𝑑
2
2
2
= 𝑒𝑑 𝑣 + 2𝑒𝑑 𝑣 β€² + 𝑒𝑑 𝑣 β€²β€² βˆ’ 2𝑒𝑑 𝑣 βˆ’ 2𝑒𝑑 𝑣 β€² βˆ’ 𝑒𝑑 𝑣 βˆ’ 𝑒𝑑 𝑣 β€² + 𝑒𝑑 𝑣 + 𝑒𝑑 𝑣
𝑑
𝑑
𝑑
(
)
(
)
2
2
2
= 𝑒𝑑 𝑣 β€²β€² + 2𝑒𝑑 βˆ’ 2𝑒𝑑 βˆ’ 𝑒𝑑 𝑣 β€² + 𝑒𝑑 βˆ’ 2𝑒𝑑 βˆ’ 𝑒𝑑 + 𝑒𝑑 + 𝑒𝑑 𝑣
𝑑
𝑑
𝑑
2
= 𝑒𝑑 𝑣 β€²β€² βˆ’ 𝑒𝑑 𝑣 β€² .
𝑑
𝑑 β€²β€²
Setting this equal to 0 and we get the equation 𝑒 𝑣 βˆ’ 2𝑑 𝑒𝑑 𝑣 β€² = 0. Dividing through by 𝑒𝑑 we get
2
𝑣 β€²β€² βˆ’ 𝑣 β€² = 0.
𝑑
We make the substitution 𝑒 = 𝑣 β€² . This gives the equation 𝑒 β€² βˆ’ 2𝑑 𝑒 = 0, which is a first order linear
equation which we can solve by the method of the integrating factor. The integrating factor is
∫
𝑒
βˆ’ 2𝑑 𝑑𝑑
βˆ’2 )
= π‘’βˆ’2 ln 𝑑 = 𝑒ln(𝑑
= π‘‘βˆ’2 =
1
.
𝑑2
Multiplying through the equation 𝑒 β€² βˆ’ 2𝑑 𝑒 = 0 by the integrating factor
1
𝑑2
gives
1 β€² 2
𝑒 βˆ’ 3 𝑒 = 0.
𝑑2
𝑑
( )
( )
The left side is 𝑑12 𝑒 β€² , by the product rule.
So∫ we have 𝑑12 𝑒 β€² = 0, which implies
∫
𝑒 = 𝐢1 𝑑2 . Then since 𝑒 = 𝑣 β€² , we get 𝑣 = 𝑒 = 𝐢1 𝑑2 𝑑𝑑 = 𝐢1 𝑑3 /3 + 𝐢2 . Then
𝑦2 = 𝑣𝑒𝑑 = (𝐢1
1
𝑒
𝑑2
= 𝐢1 , or
𝑑3
𝐢1 3 𝑑
+ 𝐢2 )𝑒𝑑 =
𝑑 𝑒 + 𝐢2 𝑒 𝑑 .
3
3
Since we are just looking for one 𝑦2 , we can take 𝐢1 = 3 and 𝐢2 = 0 to obtain 𝑦2 = 𝑑3 𝑒𝑑 . Then the
general solution is 𝑦 = 𝐢1 𝑦1 + 𝐢2 𝑦2 , or
𝑦 = 𝐢1 𝑒𝑑 + 𝐢2 𝑑3 𝑒𝑑 ,
for arbitrary constants 𝐢1 and 𝐢2 .
Math 231.04, Spring 2010: Practice Exam 3 Solutions
3
3.) (10 points) For the equations below, write down the general form of the particular solution 𝑦𝑝
that you would use in the method of undetermined coefficients. Just write down the form; do not
attempt to solve for the coefficients.
a.) (5 points) 𝑦 β€²β€² βˆ’ 9𝑦 = 𝑑2 sin 4𝑑.
We first find π‘¦β„Ž , the solution to the homogeneous equation 𝑦 β€²β€² βˆ’ 9𝑦 = 0. For this we guess
π‘¦β„Ž = π‘’π‘Ÿπ‘‘ , which leads to the characteristic equation π‘Ÿ2 βˆ’ 9 = 0. Factoring, we get (π‘Ÿ + 3)(π‘Ÿ βˆ’ 3) = 0,
so π‘Ÿ1 = βˆ’3 and π‘Ÿ2 = +3 are the roots of the characteristic equation. Thus the general form of π‘¦β„Ž is
π‘¦β„Ž = 𝐢1 π‘’βˆ’3𝑑 + 𝐢2 𝑒3𝑑 .
Now we look for a particular solution 𝑦𝑝 . The right side of the equation is 𝑑2 sin 4𝑑 we guess
𝑦𝑝 = (𝐴𝑑2 +𝐡𝑑+𝐢) sin 4𝑑+(𝐷𝑑2 +𝐸𝑑+𝐹 ) cos 4𝑑. Since none of these terms, after you multiply them
out, has any term in which is a constant multiple of any term in π‘¦β„Ž , this form of 𝑦𝑝 is sufficient.
Hence
𝑦𝑝 = (𝐴𝑑2 + 𝐡𝑑 + 𝐢) sin 4𝑑 + (𝐷𝑑2 + 𝐸𝑑 + 𝐹 ) cos 4𝑑.
b.) (5 points) 𝑦 β€²β€² βˆ’ 9𝑦 = 𝑑𝑒3𝑑 .
The left side of the equation is the same as for part a., so we have the same homogeneous
solution π‘¦β„Ž = 𝐢1 π‘’βˆ’3𝑑 + 𝐢2 𝑒3𝑑 . Now we look for a particular solution 𝑦𝑝 . The right side of the
equation is of the form 𝑑𝑒3𝑑 , we try 𝑦𝑝 = (𝐴𝑑 + 𝐡)𝑒3𝑑 = 𝐴𝑑𝑒3𝑑 + 𝐡𝑒3𝑑 . However, the term 𝐴𝑒3𝑑 is a
constant multiple of the term 𝐢2 𝑒3𝑑 in π‘¦β„Ž , so we need to modify 𝑦𝑝 by multiplying by 𝑑 to obtain
𝑦𝑝 = 𝑑(𝐴𝑑 + 𝐡)𝑒3𝑑 = 𝐴𝑑2 𝑒3𝑑 + 𝐡𝑑𝑒3𝑑 . This no longer has any overlap with π‘¦β„Ž , so this form of 𝑦𝑝 is
sufficient. So
𝑦𝑝 = 𝐴𝑑2 𝑒3𝑑 + 𝐡𝑑𝑒3𝑑 .
4.) (10 points) Solve the Cauchy-Euler equation 𝑑2 𝑦 β€²β€² + 7𝑑𝑦 β€² + 9𝑦 = 0, for 𝑑 > 0.
Because this is a Cauchy-Euler equation, we try 𝑦 = π‘‘π‘Ÿ as a solution. Then 𝑦 β€² = π‘Ÿπ‘‘π‘Ÿβˆ’1 and
𝑦 β€²β€² = π‘Ÿ(π‘Ÿ βˆ’ 1)π‘‘π‘Ÿβˆ’2 . Substituting into the equation gives
𝑑2 π‘Ÿ(π‘Ÿ βˆ’ 1)π‘‘π‘Ÿβˆ’2 + 7π‘‘π‘Ÿπ‘‘π‘Ÿβˆ’1 + 9π‘‘π‘Ÿ = 0,
or
π‘Ÿ(π‘Ÿ βˆ’ 1)π‘‘π‘Ÿ + 7π‘Ÿπ‘‘π‘Ÿ + 9π‘‘π‘Ÿ = 0.
Cancelling π‘‘π‘Ÿ gives π‘Ÿ(π‘Ÿ βˆ’ 1) + 7π‘Ÿ + 9 = 0, or
0 = π‘Ÿ2 + 6π‘Ÿ + 9 = (π‘Ÿ + 3)2 .
Hence π‘Ÿ = βˆ’3 is a double root, and we get solutions 𝑦1 = π‘‘βˆ’3 and 𝑦2 = π‘‘βˆ’3 ln 𝑑. The general solution
𝑦 is a linear combination of 𝑦1 and 𝑦2 ; that is,
𝑦 = 𝐢1 π‘‘βˆ’3 + 𝐢2 π‘‘βˆ’3 ln 𝑑,
for arbitrary constants 𝐢1 and 𝐢2 .
Math 231.04, Spring 2010: Practice Exam 3 Solutions
4
5.) (a) (5 points) Check that the functions 𝑦1 = 𝑑 and 𝑦2 = 𝑑3 are solutions of
3
3
𝑦 β€²β€² βˆ’ 𝑦 β€² + 2 𝑦 = 0,
𝑑
𝑑
𝑑 > 0.
Since 𝑦1 = 𝑑, we get 𝑦1 β€² = 1 and 𝑦1 β€²β€² = 0. Therefore
3
3
3
3 3
3
𝑦1 β€²β€² βˆ’ 𝑦1 β€² + 2 𝑦1 = 0 βˆ’ + 2 β‹… 𝑑 = βˆ’ + = 0,
𝑑
𝑑
𝑑 𝑑
𝑑
𝑑
hence 𝑦1 is a solution.
For 𝑦2 = 𝑑3 we get 𝑦2 β€² = 3𝑑2 and 𝑦2 β€²β€² = 6𝑑. Hence
3
3
3
3
𝑦2 β€²β€² βˆ’ 𝑦2 β€² + 2 𝑦2 = 6𝑑 βˆ’ 3𝑑2 + 2 𝑑3 = 6𝑑 βˆ’ 9𝑑 + 3𝑑 = 0,
𝑑
𝑑
𝑑
𝑑
so 𝑦2 is a solution.
(b) (15 points) Find the general solution of
3
3
𝑦 β€²β€² βˆ’ 𝑦 β€² + 2 𝑦 = 𝑑2 ,
𝑑
𝑑
𝑑 > 0.
To find the general solution, we need to find a particular solution 𝑦𝑝 . Using the method of
variation of parameters, we guess a solution of the form 𝑦𝑝 = 𝑣1 𝑦1 +𝑣2 𝑦2 . The equations determining
𝑣1β€² and 𝑣2β€² are 𝑦1 𝑣1β€² + 𝑦2 𝑣2β€² = 0 and 𝑦1β€² 𝑣1β€² + 𝑦2β€² 𝑣2β€² = 𝑔(𝑑), where 𝑔(𝑑) is the right side of the equation.
Using our values of 𝑦1 , 𝑦2 and 𝑔, we get
𝑑𝑣1β€² + 𝑑3 𝑣2β€² = 0
1 β‹… 𝑣1β€² + 3𝑑2 𝑣2β€² = 𝑑2 .
To solve these equations simultaneously for 𝑣1β€² and 𝑣2β€² , it is easiest to first cancel a factor of 𝑑 from the
first equation to get 𝑣1β€² + 𝑑2 𝑣2β€² = 0. Then when we subtract this equation from the second equation
𝑣1β€² + 3𝑑2 𝑣2β€² = 𝑑2 to get 2𝑑2 𝑣2 β€² = 𝑑2 . Hence 𝑣2β€² = 1/2. Substituting 𝑣2β€² = 1/2 into 𝑣1β€² + 𝑑2 𝑣2β€² = 0 gives
𝑣1β€² + 21 𝑑2 = 0 or 𝑣1β€² = βˆ’ 21 𝑑2 .
3
Integrating the equation 𝑣1β€² = βˆ’ 21 𝑑2 gives 𝑣1 = βˆ’ 21 𝑑3 = βˆ’ 16 𝑑3 while integrating 𝑣2β€² = 1/2 gives
𝑣2 = 21 𝑑 (the constants of integration are not needed here). Hence
(
)
(
)
1 3
1
1 1 4
1 3 4 2 4 1 4
3
𝑦𝑝 = 𝑣1 𝑦1 + 𝑣2 𝑦2 = βˆ’ 𝑑 β‹… 𝑑 + 𝑑 β‹… 𝑑 = βˆ’ +
𝑑 = βˆ’ +
𝑑 = 𝑑 = 𝑑.
6
2
6 2
6 6
6
3
Then the general solution is 𝑦 = π‘¦β„Ž + 𝑦𝑝 , or
1
𝑦 = 𝐢1 𝑑 + 𝐢2 𝑑3 + 𝑑4 ,
3
for arbitrary constants 𝐢1 , 𝐢2 , and 𝐢3 .
Math 231.04, Spring 2010: Practice Exam 3 Solutions
5
6.) (10 points) A spring has mass 2 π‘˜π‘”, damping constant 8 𝑁 -𝑠𝑒𝑐/π‘š, and spring constant (stiffness)
26 𝑁/π‘š. There is no external force driving the spring. Find the general formula for the displacement
from equilibrium position of the spring at time 𝑑 seconds, and determine whether this spring is
undamped, underdamped, critically damped, or overdamped.
The general equation for the displacement from equilibrium 𝑦 of the spring is π‘šπ‘¦ β€²β€² +𝑏𝑦 β€² +π‘˜π‘¦ = 0,
where π‘š is the mass, 𝑏 is the stiffness, and π‘˜ is the spring constant. Here we get 2𝑦 β€²β€² +8𝑦 β€² +26𝑦 = 0,
or, after dividing by 2,
𝑦 β€²β€² + 4𝑦 β€² + 13𝑦 = 0.
The characteristic equation is π‘Ÿ2 + 4π‘Ÿ + 13 = 0. We cannot factor this quadratic, so using the
quadratic formula we get
√ √
√
√
βˆ’4 ± βˆ’36
βˆ’4 ± 36 βˆ’1
βˆ’4 ± 6𝑖
βˆ’4 ± 16 βˆ’ 4 β‹… 13
=
=
=
= βˆ’2 ± 3𝑖.
π‘Ÿ=
2
2
2
2
This implies that the general solution is
𝑦 = 𝐢1 π‘’βˆ’2𝑑 cos 3𝑑 + 𝐢2 π‘’βˆ’2𝑑 sin 3𝑑,
for arbitrary constants 𝐢1 and 𝐢2 . This spring is underdamped.
7.) (10 points) Solve 𝑦 β€²β€²β€² βˆ’ 4𝑦 β€²β€² = 48𝑑.
We first find π‘¦β„Ž , the solution to the homogeneous equation 𝑦 β€²β€²β€² βˆ’ 4𝑦 β€²β€² = 0. The characteristic
equation is π‘Ÿ3 βˆ’ 4π‘Ÿ2 = 0, or π‘Ÿ2 (π‘Ÿ βˆ’ 4) = 0. Hence π‘Ÿ = 4 is a root and π‘Ÿ = 0 is a double root.
Therefore
π‘¦β„Ž = 𝐢1 𝑒4𝑑 + 𝐢2 𝑒0𝑑 + 𝐢3 𝑑𝑒0𝑑 = 𝐢1 𝑒4𝑑 + 𝐢2 + 𝐢3 𝑑,
for arbitraty constants 𝐢1 , 𝐢2 and 𝐢3 .
Next we find a particular solution 𝑦𝑝 of 𝑦 β€²β€²β€² βˆ’ 4𝑦 β€²β€² = 48𝑑. Because the inhomogeneous part on
the right hand side of the equation is 48𝑑, a polynomial of degree 1, the usual guess for 𝑦𝑝 is 𝐴𝑑 + 𝐡,
the general polynomial of degree 1. However, 𝐴𝑑 is a constant multiple of the term 𝐢3 𝑑 in π‘¦β„Ž (and
𝐡 is a multiple of the term 𝐢2 ), so we multiply by 𝑑 and try 𝑑(𝐴𝑑 + 𝐡) = 𝐴𝑑2 + 𝐡𝑑. However, 𝐡𝑑 is
a constant multiple of the term 𝐢3 𝑑 in π‘¦β„Ž , so we multiply by 𝑑 again, to arrive at
𝑦𝑝 = 𝑑(𝐴𝑑2 + 𝐡) = 𝐴𝑑3 + 𝐡𝑑2 .
This is not a multiple of any term in π‘¦β„Ž , so it should work. We calculate
𝑦𝑝′ = 3𝐴𝑑2 + 2𝐡𝑑,
𝑦𝑝′′ = 6𝐴𝑑 + 2𝐡, and 𝑦𝑝′′′ = 6𝐴.
Hence
𝑦𝑝′′′ βˆ’ 4𝑦𝑝′′ = 6𝐴 βˆ’ 4(6𝐴𝑑 + 2𝐡) = 6𝐴 βˆ’ 24𝐴𝑑 βˆ’ 8𝐡 = βˆ’24𝐴𝑑 + 6𝐴 βˆ’ 8𝐡.
Therefore 𝑦 β€²β€²β€² βˆ’ 4𝑦 β€²β€² = 48𝑑 holds if βˆ’24𝐴 = 48 and 6𝐴 βˆ’ 8𝐡 = 0. Therefore 𝐴 = βˆ’2 and hence
8𝐡 = 6𝐴 = 6(βˆ’2) = βˆ’12, or 𝐡 = βˆ’12/8 = βˆ’3/2. Therefore
3
𝑦𝑝 = βˆ’2𝑑3 βˆ’ 𝑑2 .
2
β€²β€²β€²
β€²β€²
(c) Finally, the general solution of 𝑦 βˆ’ 4𝑦 = 48𝑑 is 𝑦 = 𝑦𝑝 + π‘¦β„Ž , or
3
𝑦 = βˆ’2𝑑3 βˆ’ 𝑑2 + 𝐢1 𝑒4𝑑 + 𝐢2 + 𝐢3 𝑑,
2
for arbitrary constants 𝐢1 , 𝐢2 and 𝐢3 .