Practice: Second-Order Linear Differential Equations

Error diagnosis

The equation y ″ − 4 y ′ + 4 y = 0 has characteristic equation r 2 − 4 r + 4 = 0 , whose only root is r = 2 .

A student writes the general solution as y = A e 2 x + B e 2 x , reasoning that a second-order equation needs two terms.

They are then asked to satisfy y ( 0 ) = 1 and y ′ ( 0 ) = 0 . What happens?

2 hints available, least help first.

Hint 1: Retrieval cue

Simplify A e 2 x + B e 2 x before trying to apply any condition.

Hint 2: Concept cue

Once it is C e 2 x , compute both y ( 0 ) and y ′ ( 0 ) in terms of C and compare them.

Recognition

Consider y ″ − 7 y ′ + 12 y = 0 .

Substituting y = e r x turns this into a quadratic in r . What is the larger root of that quadratic?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Replace y ″ by r 2 , y ′ by r , and y by 1.

Hint 2: Concept cue

Factor r 2 − 7 r + 12 , or use the quadratic formula with Δ = 49 − 48 .

Classification

For which of these equations does the general solution require a factor of x in one of its terms?

  1. y ″ + 5 y ′ + 6 y = 0
  2. y ″ + 6 y ′ + 9 y = 0
  3. y ″ + 6 y ′ + 13 y = 0

2 hints available, least help first.

Hint 1: Retrieval cue

Compute p 2 − 4 q for each equation before deciding.

Hint 2: Concept cue

The x factor is needed exactly when the exponential guess yields only one distinct root.

Interpretation

The equation y ″ + 2 y ′ + 5 y = 0 has complex roots, so its general solution has the form

y = e α x ( A cos ⁡ β x + B sin ⁡ β x ) .

What is β ?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Apply the quadratic formula and write the roots in the form α ± β i .

Hint 2: Concept cue

β is the coefficient of i after the whole numerator has been divided by 2.

Direct application

The general solution of y ″ − 5 y ′ + 6 y = 0 is y = A e 2 x + B e 3 x .

Apply the conditions y ( 0 ) = 1 and y ′ ( 0 ) = 0 . What is B ?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

The second condition constrains y ′ , so differentiate the general solution before substituting.

Hint 2: Concept cue

You get two linear equations, A + B = 1 and 2 A + 3 B = 0 . Solve them together.

Classification · Method selection

You are given 4 y ″ + 4 y ′ + y = 0 .

Before solving, which general solution form applies?

2 hints available, least help first.

Hint 1: Retrieval cue

The coefficient of y ″ must be 1 before the discriminant means anything.

Hint 2: Concept cue

After dividing by 4, compute p 2 − 4 q and read off which of the three cases it selects.

Construction · Direct application · Explanation

(a) Show that substituting y = e r x into y ″ + p y ′ + q y = 0 produces the characteristic equation, and say why the method needs p and q to be constants.

(b) Solve y ″ − 5 y ′ + 6 y = 0 with y ( 0 ) = 1 and y ′ ( 0 ) = 0 . Verify your answer against the equation and both conditions.

(c) Solve y ″ + 6 y ′ + 9 y = 0 with y ( 0 ) = 2 and y ′ ( 0 ) = 1 .

(d) A student solves y ″ − 4 y ′ + 4 y = 0 by writing y = A e 2 x + B e 2 x , then cannot satisfy y ( 0 ) = 1 with y ′ ( 0 ) = 0 . Explain exactly why no choice of A and B works, and give the correct general solution.

(e) Solve y ″ + 2 y ′ + 5 y = 0 with y ( 0 ) = 3 and y ′ ( 0 ) = − 1 , then explain why the answer contains no i although the roots do. For the spring equation y ″ + c y ′ + 4 y = 0 , say which of c = 2 , c = 4 , c = 5 gives oscillation and which returns to rest fastest without overshoot.

Write your answer, then compare it with the worked solution.

3 hints available, least help first.

Hint 1: Retrieval cue

Compute the discriminant first in each part; it decides which of the three solution forms applies.

Hint 2: Concept cue

In (d), simplify the student's expression before trying to apply any condition, then compare y ( 0 ) with y ′ ( 0 ) .

Hint 3: Strategy cue

Both conditions are needed, and the second constrains the slope, so differentiate the general solution before substituting.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) The characteristic equation. With y = e r x the derivatives are y ′ = r e r x and y ″ = r 2 e r x . Substituting:

r 2 e r x + p r e r x + q e r x = ( r 2 + p r + q ) e r x = 0 .

The exponential is never zero, so it divides out and

r 2 + p r + q = 0 .

The differential equation has become a quadratic. The exponential is the right trial precisely because differentiating it returns the same function times a constant, so every term acquires the same factor and it cancels. Why constants are required. If p or q depends on x , the same substitution gives ( r 2 + p ( x ) r + q ( x ) ) e r x = 0 , whose bracket still contains x . No constant r makes that vanish identically, so there is no characteristic polynomial to solve. For instance x 2 y ″ + x y ′ − y = 0 admits no exponential solution of this kind; its solutions are y = x and y = 1 / x . (b) y ″ − 5 y ′ + 6 y = 0 , y ( 0 ) = 1 , y ′ ( 0 ) = 0 . Characteristic equation r 2 − 5 r + 6 = 0 , discriminant Δ = 25 − 24 = 1 > 0 , so the roots are distinct and real:

r = 5 ± 1 2 ⟹ r 1 = 2 , r 2 = 3 ,

confirmed by the factorisation ( r − 2 ) ( r − 3 ) . Hence y = A e 2 x + B e 3 x . Differentiate before applying the second condition: y ′ = 2 A e 2 x + 3 B e 3 x . At x = 0 every exponential is 1, so the conditions read

A + B = 1 , 2 A + 3 B = 0 .

Substituting A = 1 − B into the second: 2 − 2 B + 3 B = 0 , so B = − 2 and A = 3 :

y = 3 e 2 x − 2 e 3 x .

Verify the conditions. y ( 0 ) = 3 − 2 = 1 ✓; y ′ ( 0 ) = 6 − 6 = 0 ✓ (numerically − 0.000000 ). Verify the equation. y ′ = 6 e 2 x − 6 e 3 x and y ″ = 12 e 2 x − 18 e 3 x , so

y ″ − 5 y ′ + 6 y = ( 12 − 30 + 18 ) e 2 x + ( − 18 + 30 − 12 ) e 3 x = 0 .

Each coefficient vanishes separately, as it must, since e 2 x and e 3 x are independent. Numerically the residuals are 1.7 × 10 − 6 , 4.0 × 10 − 7 , − 8.5 × 10 − 5 at x = 0 , 0.5 , 1 , which is finite-difference error. Behaviour. Although y ′ ( 0 ) = 0 , the solution falls away: y ( 1 ) = − 18.00 , y ( 2 ) = − 643.06 . The larger root dominates far from the origin, and its coefficient here is negative. (c) y ″ + 6 y ′ + 9 y = 0 , y ( 0 ) = 2 , y ′ ( 0 ) = 1 . Characteristic equation r 2 + 6 r + 9 = 0 , discriminant Δ = 36 − 36 = 0 . The root r = − 3 repeats, since r 2 + 6 r + 9 = ( r + 3 ) 2 , so the general solution carries the x factor:

y = ( A + B x ) e − 3 x .

Differentiate with the product rule, keeping both terms:

y ′ = B e − 3 x − 3 ( A + B x ) e − 3 x = ( B − 3 A − 3 B x ) e − 3 x .

At x = 0 : y ( 0 ) = A = 2 , and y ′ ( 0 ) = B − 3 A = 1 , so B = 1 + 6 = 7 :

y = ( 2 + 7 x ) e − 3 x .

Verify. y ( 0 ) = 2 ✓ and y ′ ( 0 ) = 7 − 6 = 1 ✓. Dropping the − 3 A term from the product rule would give B = 1 , the most common slip here. (d) Why the collapsed family fails. The two terms are not independent, being the same function, so the expression collapses:

A e 2 x + B e 2 x = ( A + B ) e 2 x = C e 2 x .

Two symbols appear on the page but only one degree of freedom exists. Both terms genuinely solve the equation; the error is in the count of free constants, not in the terms. Why no choice works. From y = C e 2 x : y ( 0 ) = C and y ′ = 2 C e 2 x , so y ′ ( 0 ) = 2 C . Therefore every member of this family satisfies y ′ ( 0 ) = 2 y ( 0 ) : the slope at the origin is pinned to twice the value there. The conditions demand y ( 0 ) = 1 and y ′ ( 0 ) = 0 , which would require 0 = 2 . The system is unsatisfiable, and no cleverness in choosing A and B can repair it, because the general solution was too small to begin with. The correct solution. The repeated root r = 2 needs the independent second solution x e 2 x , whose ratio to e 2 x is x rather than a constant. So y = ( A + B x ) e 2 x , giving y ( 0 ) = A = 1 and y ′ ( 0 ) = B + 2 A = 0 , hence B = − 2 and

y = ( 1 − 2 x ) e 2 x .

Why the x factor works. Substituting y = x e r x gives y ′ = ( 1 + r x ) e r x and y ″ = ( 2 r + r 2 x ) e r x , and with p = − 2 r , q = r 2 , which hold only for a double root, the substitution yields 2 r + r 2 x − 2 r − 2 r 2 x + r 2 x = 0 identically. The repair is specific to the repeated case, not a general-purpose trick. (e) Complex roots, and the damping. Characteristic equation r 2 + 2 r + 5 = 0 , discriminant Δ = 4 − 20 = − 16 < 0 :

r = − 2 ± − 16 2 = − 2 ± 4 i 2 = − 1 ± 2 i ,

so α = − 1 , β = 2 and y = e − x ( A cos ⁡ 2 x + B sin ⁡ 2 x ) . Differentiating the envelope and the bracket together:

y ′ = e − x ( − A cos ⁡ 2 x − B sin ⁡ 2 x − 2 A sin ⁡ 2 x + 2 B cos ⁡ 2 x ) .

At x = 0 , where cos ⁡ 0 = 1 and sin ⁡ 0 = 0 : y ( 0 ) = A = 3 , and y ′ ( 0 ) = − A + 2 B = − 1 , so 2 B = 2 and B = 1 :

y = e − x ( 3 cos ⁡ 2 x + sin ⁡ 2 x ) .

Verify. − A + 2 B = − 3 + 2 = − 1 ✓; residuals below 6 × 10 − 6 at x = 0 , 0.5 , 1 ✓. Values y ( 0 ) = 3 , y ( 1 ) = − 0.124764 , y ( 2 ) = − 0.367805 , y ( 3 ) = 0.129501 , y ( 5 ) = − 0.020626 , so the sign alternates while the magnitude shrinks. Why no i survives. Real coefficients force the roots into a conjugate pair, and Euler's identity expands the corresponding exponentials as

e ( α ± β i ) x = e α x ( cos ⁡ β x ± i sin ⁡ β x ) .

Adding the pair and halving gives e α x cos ⁡ β x ; subtracting and dividing by 2 i gives e α x sin ⁡ β x . Both are real and both solve the equation, so real combinations of them exhaust the real solutions. The complex numbers appeared in the working and cancelled from the answer, the same pattern real-coefficient polynomials show generally. The damping. For y ″ + c y ′ + 4 y = 0 the discriminant is c 2 − 16 : | c | Δ | Case | Behaviour |
|---|---|---|---|
| 2 | 4 − 16 = − 12 < 0 | complex | under-damped, oscillating while it decays |
| 4 | 16 − 16 = 0 | repeated | critically damped, fastest return without overshoot |
| 5 | 25 − 16 = 9 > 0 | distinct real | over-damped, creeps back slowly | So c = 2 gives oscillation and c = 4 returns to rest fastest without overshoot. The critical case is exactly the repeated root of part (d), which a collapsed family would have made unsolvable, and the case door closers and meter needles are tuned to. All three decay, because every root has negative real part; that sign, and nothing else, is the stability question.

A complete answer does each of these:

  • forms characteristic equation
  • classifies by discriminant
  • handles repeated root
  • converts complex roots
  • applies two conditions
  • explains independence

Transfer · Classification

The charge q on a capacitor in a series circuit satisfies

L q ″ + R q ′ + q C = 0 .

A circuit has L = 1 , R = 4 and 1 C = 3 in consistent units.

Without solving, what does the charge do after a disturbance?

2 hints available, least help first.

Hint 1: Retrieval cue

Put the equation in standard form, then compute the discriminant of its characteristic equation.

Hint 2: Concept cue

Compare R 2 with 4 L / C . Which of the three cases does a positive difference give?

Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.