A repeated root gives only one exponential eλx, but a second-order equation needs two independent solutions. The second is xeλx: differentiating it twice and substituting shows that it solves the equation exactly when λ is a double root, using the product rule and the derivative of e to the power kx. This happens when the discriminant of the auxiliary equation is zero.
To find A and B, use y(0)=A and y′(0)=B+λA. For y′′−4y′+4y=0, y(0)=1, y′(0)=0: A=1 and B+2=0, so y=(1−2x)e2x and y(1)=−e2≈−7.389. A decaying repeated root, λ<0, models critical damping in damped oscillations.
The result is the borderline between the distinct roots case (overdamped) and the complex roots case (underdamped). It is also used in Laplace transforms of t e to the power at, and the method of reduction of order produces the second solution.
What is it used for?
A repeated root adds a factor x to the second solution, as in critically damped motion.
Critical damping in engineering.
Solving equations with a double root.
Understanding the boundary between oscillating and non-oscillating motion.
How to use general solution: repeated root
Solve the auxiliary equation and find the repeated root λ.
Write y=(A+Bx)eλx.
Use y(0)=A and y′(0)=B+λA.
Solve for A and B and substitute.
Graph
The linear factor (1 − 2x) makes the curve cross zero before the exponential takes over.
Worked examples
These examples are worked by hand, step by step, so you can compare your own working.
Example 1: initial conditions
Solve y′′−4y′+4y=0 with y(0)=1, y′(0)=0, and find y(1).
Worked example
Answer
y(1)=−e2≈−7.389
Root
λ=2(repeated)
Conditions
A=1,B+2=0⇒B=−2
Solution
y=(1−2x)e2x
Example 2: critical damping
Solve y′′+6y′+9y=0 with y(0)=2, y′(0)=1, and find y(1).
Worked example
Answer
y(1)=9e−3≈0.4481
Root
λ=−3
Conditions
A=2,B−3A=1⇒B=7
Value
y(1)=(2+7)e−3
Example 3: x e^x
Solve y′′−2y′+y=0 with y(0)=0, y′(0)=1, and find y(1).
Worked example
Answer
y(1)=e≈2.718
Root
λ=1
Conditions
A=0,B=1
Solution
y=xex
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
y″ − 4y′ + 4y = 0
λ = 2 (double)
y = (A + Bx)e^{2x}.
y(0) = 1, y′(0) = 3
A = 1, 2A + B = 3
B = 1.
y(1)
(1 + 1)e²
14.7781.
Check y′(0)
2A + B
3.
Word problems
For a repeated root λ the solution is y = (A + Bx)e^{λx}. y′ = (λA + B + λBx)e^{λx}.
Root
λ² − 4λ + 4 = 0.
4/2
Check: λ = 2 ✓2
Constant B
y(0) = 1 gives A = 1; y′(0) = 2A + B = 3.
3 − 2
Check: ✓1
Value Higher
y(1) = (1 + 1)e².
2 × 7.389
Check: ✓14.7781
Check Higher
y′(0) = 2·1 + 1.
3
Check: ✓3
Common mistakes
Ae^{λx} + Be^{λx}
two equal terms ✗
(A + Bx)e^{λx} ✓
Independent solutions.
Forgetting the x
no x factor ✗
x e^{λx} ✓
Second solution.
y′ without product rule
λ(A + Bx)e ✗
plus B e^{λx} ✓
Derivative.
Sign of the root
−2 ✗
+2 ✓
From the equation.
Exam tips
y = (A + Bx)e^{λx}.
Product rule for y′.
Two conditions.
Critical damping case.
x e^{λx} is the second solution.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. y(0) for (2 + 3x)e^{x} Foundation
2
2. y′(0) for (2 + 3x)e^{x} Foundation
5
3. y(1) for (1 + x)e^{−x} to 4 d.p. Foundation
0.7358
4. A, B for y(0) = 4, y′(0) = 9, λ = 2: B Higher
1
5. y(1) for (A + Bx)e^{3x}, A = 1, B = 0 to 4 d.p. Higher
20.0855
6. y(0.5) for (1 + 2x)e^{x} to 4 d.p. Higher
3.2974
Practice generator
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.