Steply

Solve a_n = 2a_(n-1) + 8a_(n-2), a_0 = 2, a_1 = 2

Step by step, with the reason for every step · Second-order recurrences · Discrete Math

Step by step

The question

Question: solve aₙ = 2aₙ₋₁ + 8aₙ₋₂, with a₀ = 2 and a₁ = 2.

an = 2an − 1 + 8an − 2, a0 = 2, a1 = 2

1 Everything on one side

Move everything to one side.

Each term changes its sign when it moves.

an − 2an − 1 − 8an − 2 = 0

2 The characteristic equation

Powers are good at this: try aₙ = x to the n, for some number x.

try an = xn

Put x to the n in for aₙ, x to the n minus 1 for aₙ₋₁, and so on.

xn − 2xn − 1 − 8xn − 2 = 0

Divide everything by x to the n minus 2: the powers drop to 2, 1 and 0.

This is the characteristic equation.

x2 − 2x − 8 = 0
÷ xn − 2 on both sides

Careful!

Watch the signs.

The terms moved to the left, so their signs changed.

Careful: not x2 − 2x + 8 = 0 ✗

3 Solve it

Factor: we need two numbers that multiply to −8 and add to −2: 2 and −4.

(x + 2)(x − 4) = 0
2 × (−4) = −8, 2 + (−4) = −2

So x = −2 or x = 4.

x = −2 or 4

4 The general form

Each root gives a power that works.

Any mix of them works too: A times −2 to the n, plus B times 4 to the n.

an = A × (−2)n + B × 4n

5 Use the start values

n = 0: every power to the 0 is 1.

So A + B = 2.

A + B = 2 ①

n = 1: −2A + 4B = 2.

-2A + 4B = 2 ②

From equation 1: A = 2 − B.

A = 2 − B

Put it into equation 2.

-2(2 − B) + 4B = 2

Open the bracket.

−4 + 2B + 4B = 2

Like terms: 6B.

−4 + 6B = 2

Take away −4 on both sides.

6B = 6

Divide by 6: B = 1.

B = 1

And A = 2 minus B, that is 1.

A = 2 − 1 = 1

So aₙ = (−2)ⁿ + 4ⁿ.

an = (−2)n + 4n

6 Check

Check a₂.

The rule: 2 times 2, plus 8 times 2: 20.

rule: a2 = 2 × 2 + 8 × 2 = 20

The formula with n = 2 gives 20 too.

Right!

formula: a2 = 20

Let's look back.

First: everything on one side.

Then: the characteristic equation.

Then: solve it.

Then: the general form.

Then: use the start values.

Last: check.

Answer
an = (−2)n + 4n

Your turn

Try this one yourself, then check:

Solve an6an − 1 − 5an − 2, a0 = 1, a1 = 9
Show the answer
an = −1n + 2 × 5n

More from Second-order recurrences

The whole lesson: Second-order recurrences →