Steply

Solve y'' - 2y' + y = 6

Step by step, with the reason for every step · Undetermined coefficients · Differential Equations

Step by step

The question

Question: solve y″ − 2y′ + y = 6.

y″ − 2y′ + y = 6

The answer has two parts: the plain part, which solves the equation with 0 on the right, plus one extra solution that makes 6.

y = yc + yp: the plain part + one extra solution

1 Solve with 0 on the right

Try y = e^(rx): the characteristic equation is r² − 2r + 1 = 0.

r2 − 2r + 1 = 0
y″ → r², y′ → r, y → 1

Two numbers that multiply to 1 and add to −2: −1 and −1, the same number twice.

−1 × (−1) = 1, −1 + (−1) = −2

So it is a square: (r − 1)² = 0.

(r − 1)2 = 0

Only one root: r = 1, twice.

r = 1 (twice)

One root gives only one solution.

The second one is the same times x.

(Put it in: it works.)

one root twice: C₁e^(rx) + C₂xe^(rx)

So the plain part is C₁eˣ + C₂x eˣ.

yc = C1ex + C2xex

2 Guess the extra part

The extra part has the same shape as the right side: just a number.

a number → A

So we guess A for the extra part.

A is the numbers we must find.

yp = A

3 Put the guess in

Its derivative.

y′p = 0

And once more.

y″p = 0

Put them into the left side.

0 − 2(0) + A = 6

Multiply out and put like parts together.

A = 6

4 Match the parts

The two sides must match, part by part: the same amount of each shape.

number parts: A = 6
same shape → same number

So A = 6.

A = 6

So the extra part is 6.

yp = 6

5 Add the parts

Add the parts: y = C₁eˣ + C₂x eˣ + 6.

y = C1ex + C2xex + 6

6 Check

Let's check the extra part: put 6 into the left side.

put in yp: 0 − 2(0) + 6

It gives 6: the right side.

Right!

= 6

Let's look back.

First: solve with 0 on the right.

Then: guess the extra part.

Then: put the guess in.

Then: match the parts.

Then: add the parts.

Last: check.

Answer
y = C1ex + C2xex + 6

Your turn

Try this one yourself, then check:

Solve y″ − 2y′ + y = 2
Show the answer
y = C1ex + C2xex + 2

More from Undetermined coefficients

The whole lesson: Undetermined coefficients →