2.7 Exercises
These are homework exercises to accompany Libl's "Differential Equations for Engineering " Textmap. This is a textbook targeted for a one semester first course on differential equations, aimed at engineering students. Prerequisite for the course is the basic calculus sequence.
Your Turn
Prove the superposition principle for nonhomogeneous equations. Suppose that y 1 is a solution to L y 1 = f ( x ) and y 2 is a solution to L y 2 = g ( x ) (same linear operator L ). Show that y = y 1 + y 2 solves L y = f ( x ) + g ( x ) .
Your Turn
For the equation x 2 y ″ − x y ′ = 0 , find two solutions, show that they are linearly independent and find the general solution. Hint: Try y = x ′ .
Equations of the form a x 2 y ″ + b x y ′ + c y = 0 are called Euler’s equations or Cauchy-Euler equations . They are solved by trying y = x r and solving for r (we can assume that x ⩾ 0 for simplicity).
Your Turn
Suppose that ( b − a ) 2 − 4 a c > 0 .
Find a formula for the general solution of a x 2 y ″ + b x y ′ + c y = 0 . Hint: Try y = x r and find a formula for r . What happens when ( b − a ) 2 − 4 a c = 0 or ( b − a ) 2 − 4 a c < 0 ?
We will revisit the case when ( b − a ) 2 − 4 a c < 0 later.
Your Turn
Same equation as in Exercise 2.1 .5 . Suppose ( b − a ) 2 − 4 a c = 0 . Find a formula for the general solution of a x 2 y ″ + b x y ′ + c y = 0 . Hint: Try y = x r ln x for the second solution.
Your Turn
reduction of order
Suppose y 1 is a solution to y ″ + p ( x ) y ′ + q ( x ) y = 0 . Show that
y
2
(
x
)
=
y
1
(
x
)
∫
e
−
∫
p
(
x
)
d
x
(
y
1
(
x
)
)
2
d
x
is also a solution.
Note: If you wish to come up with the formula for reduction of order yourself, start by trying y 2 ( x ) = y 1 ( x ) v ( x ) . Then plug y 2 into the equation, use the fact that y 1 is a solution, substitute w = v ′ , and you have a first order linear equation in w . Solve for w and then for v . When solving for w , make sure to include a constant of integration. Let us solve some famous equations using the method.
Your Turn
Are sin ( x ) and e x linearly independent? Justify.
Answer
Yes. To justify try to find a constant A such that sin ( x ) = A e x for all x .
Your Turn
Write down an equation (guess) for which we have the solutions e x and e 2 x . Hint: Try an equation of the form y ″ + A y ′ + B y = 0 for constants A and B , plug in both e x and e 2 x and solve for A and B .
Answer
y
″
−
3
y
′
+
2
y
=
0
Your Turn
Solve y ″ − 8 y ′ + 16 y = 0 for y ( 0 ) = 2 , y ′ ( 0 ) = 0 .
Your Turn
Solve y ″ + 9 y ′ = 0 for y ( 0 ) = 1 , y ′ ( 0 ) = 1 .
Your Turn
The method of this section applies to equations of other orders than two. We will see higher orders later. Try to solve the first order equation 2 y ′ + 3 y = 0 using the methods of this section.
Your Turn
Let us revisit Euler’s equations of Exercise 1 . Suppose now that ( b − a ) 2 − 4 a c < 0 . Find a formula for the general solution of a x 2 y ″ + b x y ′ + c y = 0 . Hint: Note that x r = e r ln x .
Your Turn
Find the solution to y ″ − ( 2 α ) y ′ + α 2 y = 0 , y ( 0 ) = a , y ′ ( 0 ) = b , where α , a , and b are real numbers.
Your Turn
Find the general solution to y ″ + 4 y ′ + 2 y = 0 .
Answer
y
=
C
1
e
(
−
2
+
2
)
x
+
C
2
e
(
−
2
−
2
)
x
Your Turn
Find the general solution to y ″ − 6 y ′ + 9 y = 0 .
Answer
y
=
C
1
e
3
x
+
C
2
x
e
3
x
Your Turn
Find the solution to 2 y ″ + y ′ + y = 0 , y ( 0 ) = 1 , y ′ ( 0 ) = − 2 .
Answer
y
=
e
−
x
/
4
cos
(
(
7
4
)
x
)
−
7
e
−
x
/
4
sin
(
(
7
4
)
x
)
Your Turn
Find the solution to 2 y ″ + y ′ − 3 y = 0 , y ( 0 ) = a , y ′ ( 0 ) = b .
Answer
y
=
2
(
a
−
b
)
5
e
−
3
x
/
2
+
3
a
+
2
b
5
e
x
Your Turn
Find the solution to z ″ ( t ) = − 2 z ′ ( t ) − 2 z ( t ) , z ( 0 ) = 2 , z ′ ( 0 ) = − 2 .
Answer
z
(
t
)
=
2
e
−
t
cos
(
t
)
Your Turn
Find the solution to y ″ − ( α + β ) y ′ + α β y = 0 , y ( 0 ) = a , y ′ ( 0 ) = b , where α , (\beta\), a , and b are real numbers, and α ≠ β .
Answer
y
=
α
β
−
b
β
−
α
e
α
x
+
b
−
a
α
β
−
α
e
β
x
Your Turn
Let f ( x ) = e x − cos x , g ( x ) = e x + cos x and h ( x ) = cos x . Are f ( x ) , g ( x ) , and h ( x ) and linearly independent? If so, show it, if not, find a linear combination that works.
Your Turn
Let f ( x ) = 0 , g ( x ) = cos x , and h ( x ) = sin x . Are f ( x ) , g ( x ) , and h ( x ) and linearly independent? If so, show it, if not, find a linear combination that works.
Your Turn
Are x , x 2 , a n d x 4 linearly independent? If so, show it, if not, find a linear combination that works.
Your Turn
Are e x , x e x , a n d x 2 e x linearly independent? If so, show it, if not, find a linear combination that works.
Your Turn
Find the general solution of y ( 5 ) − y ( 4 ) = 0 .
Answer
y
=
C
1
e
x
+
C
2
x
3
+
C
3
x
2
+
C
4
x
+
C
5
Your Turn
Solve 1001 y ‴ + 3.2 y ″ + π y ′ − 4 y = 0 , y ( 0 ) = 0 , y ′ ( 0 ) = 0 , y ″ ( 0 ) = 0 .
Answer
y
=
0
Your Turn
Are e x , e x + 1 , e 2 x , sin ( x ) linearly independent? If so, show it, if not find a linear combination that works.
Answer
No. e 1 e x − e x + 1 = 0 .
Your Turn
Are sin ( x ) , x , x sin ( x ) linearly independent? If so, show it, if not find a linear combination that works.
Answer
Yes. (Hint: First note that sin ( x ) is bounded. Then note that x and x sin ( x ) cannot be multiples of each other.)
Your Turn
Find an equation such that y = cos ( x ) , y = sin ( x ) , y = e x are solutions.
Answer
y
‴
−
y
″
+
y
′
−
y
=
0
Your Turn
Consider a mass and spring system with a mass m = 2 , spring constant k = 3 , and damping constant c = 1 .
Set up and find the general solution of the system. Is the system underdamped, overdamped or critically damped? If the system is not critically damped, find a c that makes the system critically damped.
Your Turn
Do Exercise 2.4 .1 for m = 3 , k = 12 , a n d c = 12 .
Your Turn
Using the mks units (meters-kilograms-seconds), suppose you have a spring with spring constant 4 N m . You want to use it to weigh items. Assume no friction. You place the mass on the spring and put it in motion.
You count and find that the frequency is 0.8 Hz (cycles per second). What is the mass? Find a formula for the mass m given the frequency w in Hz .
Your Turn
Suppose we add possible friction to Exercise 2.4 .3 . Further, suppose you do not know the spring constant, but you have two reference weights 1 kg and 2 kg to calibrate your setup. You put each in motion on your spring and measure the frequency. For the 1 kg weight you measured 1.1 Hz , for the 2 kg weight you measured 0.8 Hz .
Find k (spring constant) and c (damping constant). Find a formula for the mass in terms of the frequency in Hz . Note that there may be more than one possible mass for a given frequency. For an unknown object you measured \(0.2\text{ Hz}\), what is the mass of the object? Suppose that you know that the mass of the unknown object is more than a kilogram.
Your Turn
Suppose you wish to measure the friction a mass of 0.1 kg experiences as it slides along a floor (you wish to find c ). You have a spring with spring constant k = 5 N m . You take the spring, you attach it to the mass and fix it to a wall. Then you pull on the spring and let the mass go. You find that the mass oscillates with frequency 1 Hz . What is the friction?
Your Turn
A mass of 2 kilograms is on a spring with spring constant k newtons per meter with no damping. Suppose the system is at rest and at time t = 0 the mass is kicked and starts traveling at 2 meters per second. How large does k have to be to so that the mass does not go further than 3 meters from the rest position?
Answer
k = 8 9 (and larger)
Your Turn
Suppose we have an RLC circuit with a resistor of 100 miliohms (0.1 ohms), inductor of inductance of 50 millihenries (0.05 henries), and a capacitor of 5 farads, with constant voltage.
Set up the ODE equation for the current I . Find the general solution. Solve for I ( 0 ) = 10 and I ′ ( 0 ) = 0 .
Answer
0.05
I
″
+
0.1
I
′
+
(
1
5
)
I
=
0
I
=
C
e
−
t
cos
(
3
t
−
γ
)
I
=
10
e
−
t
cos
(
3
t
)
+
10
3
e
−
t
sin
(
3
t
)
Your Turn
A 5000 kg railcar hits a bumper (a spring) at 1 m s , and the spring compresses by 0.1 m . Assume no damping.
Find k . Find out how far does the spring compress when a 10000 kg railcar hits the spring at the same speed. If the spring would break if it compresses further than 0.3 m , what is the maximum mass of a railcar that can hit it at 1 m s ? What is the maximum mass of a railcar that can hit the spring without breaking at 2 m s ?
Answer
k
=
500000
1
5
2
≈
0.141
45000
kg
11250
kg
Your Turn
A mass of m kg is on a spring with k = 3 N m and c = 2 Ns m . Find the mass m 0 for which there is critical damping. If m < m 0 , does the system oscillate or not, that is, is it underdamped or overdamped?
Answer
m 0 = 1 2 . If m < m 0 , then the system is overdamped and will not oscillate.
Your Turn
Solve the initial value problem y ″ + 9 y = cos ( 3 x ) + sin ( 3 x ) for y ( 0 ) = 2 , y ′ ( 0 ) = 1 .
Your Turn
Setup the form of the particular solution but do not solve for the coefficients for y ( 4 ) − 2 y ‴ + y ″ = e x + x + sin x .
Your Turn
Using variation of parameters find a particular solution of y ″ − 2 y ′ + y = e x . Find a particular solution using undetermined coefficients. Are the two solutions you found the same? What is going on? See also Exercise 2.5 .9
Your Turn
Find a particular solution of y ″ − 2 y ′ + y = sin ( x 2 ) . It is OK to leave the answer as a definite integral.
Your Turn
For an arbitrary constant c find a particular solution to y ″ − y = e c x . Hint: Make sure to handle every possible real c .
Your Turn
Using variation of parameters find a particular solution of y ″ − y = e x Find a particular solution using undetermined coefficients. Are the two solutions you found the same? What is going on?
Your Turn
Find a polynomial P ( x ) , so that y = 2 x 2 + 3 x + 4 solves y ″ + 5 y ′ + y = P ( x ) .
Your Turn
Find a particular solution to y ″ − y ′ + y = 2 sin ( 3 x )
Answer
y
=
−
16
sin
(
3
x
)
+
6
cos
(
3
x
)
73
Your Turn
Find a particular solution to y ″ + 2 y = e x + x 3 . Find the general solution.
Answer
y
=
2
e
x
+
3
x
3
−
9
x
6
y
=
C
1
cos
(
2
x
)
+
C
2
sin
(
2
x
)
+
2
e
x
+
3
x
3
−
9
x
6
Your Turn
Solve y ″ + 2 y ′ + y = x 2 , y ( 0 ) = 1 , y ′ ( 0 ) = 2 .
Answer
y
(
x
)
=
x
2
−
4
x
+
6
+
e
−
x
(
x
−
5
)
Your Turn
Use variation of parameters to find a particular solution of y ″ − y = 1 e x + e − x .
Answer
y
=
2
x
e
x
−
(
e
x
+
e
−
x
)
log
(
e
2
x
+
1
)
4
Your Turn
For an arbitrary constant c find the general solution to y ″ − 2 y = sin ( x + c ) .
Answer
y
=
−
sin
(
x
+
c
)
3
+
C
1
e
2
x
+
C
2
e
−
2
x
Your Turn
Undetermined coefficients can sometimes be used to guess a particular solution to other equations than constant coefficients. Find a polynomial y ( x ) that solves y ′ + x y = x 3 + 2 x 2 + 5 x + 2 .
Note: Not every right hand side will allow a polynomial solution, for example, y ′ + x y = 1 does not, but a technique based on undetermined coefficients does work, see Chapter 7 .
Answer
y
=
x
2
+
2
x
+
3
Your Turn
Take m x ″ + c x ′ + k x = F 0 cos ( ω t ) . Fix m > 0 and k > 0 . Now think of the function C ( ω ) . For what values of c (solve in terms of m , k , and F 0 ) will there be no practical resonance (that is, for what values of c is there no maximum of C ( ω ) for ω > 0 )?
Your Turn
Take m x ″ + c x ′ + k x = F 0 cos ( ω t ) . Fix c > 0 and k > 0 . Now think of the function C ( ω ) . For what values of m (solve in terms of c , k , and F 0 ) will there be no practical resonance (that is, for what values of m is there no maximum of C ( ω ) for ω > 0 )?
Your Turn
Suppose a water tower in an earthquake acts as a mass-spring system. Assume that the container on top is full and the water does not move around. The container then acts as a mass and the support acts as the spring, where the induced vibrations are horizontal. Suppose that the container with water has a mass of m = 10,000 k g . It takes a force of 1000 newtons to displace the container 1 meter. For simplicity assume no friction. When the earthquake hits the water tower is at rest (it is not moving).
Suppose that an earthquake induces an external force F ( t ) = m A ω 2 cos ( ω t ) .
What is the natural frequency of the water tower? If ω is not the natural frequency, find a formula for the maximal amplitude of the resulting oscillations of the water container (the maximal deviation from the rest position). The motion will be a high frequency wave modulated by a low frequency wave, so simply find the constant in front of the sines. Suppose A = 1 and an earthquake with frequency 0.5 cycles per second comes. What is the amplitude of the oscillations? Suppose that if the water tower moves more than 1.5 meter, the tower collapses. Will the tower collapse?
Your Turn
A mass of 4 kg on a spring with k = 4 and a damping constant c = 1 . Suppose that F 0 = 2 . Using forcing of F 0 cos ( ω t ) . Find the ω that causes practical resonance and find the amplitude.
Answer
ω
=
31
4
2
≈
0.984
C
(
ω
)
=
16
3
7
≈
2.016
Your Turn
Derive a formula for x s p for m x ″ + c x ′ + k x = F 0 cos ( ω t ) + A where A is some constant. Assume c > 0 .
Answer
x s p = ( ω 0 2 − ω 2 ) F 0 m ( 2 ω p ) 2 + m ( ω 0 2 − ω 2 ) 2 cos ( ω t ) + 2 ω p F 0 m ( 2 ω p ) 2 + m ( ω 0 2 − ω 2 ) 2 sin ( ω t ) + A k , where p = c 2 m and ω 0 = k m
Your Turn
Suppose there is no damping in a mass and spring system with m = 5 , k = 20 , and F 0 = 5 . Suppose that ω is chosen to be precisely the resonance frequency.
Find ω . Find the amplitude of the oscillations at time t = 100 .
Answer
ω
=
2
25
Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0 .