Steply

Solve a_n = 7a_(n-1) - 10a_(n-2), a_0 = 3, a_1 = 9

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

Step by step

The question

Question: solve aₙ = 7aₙ₋₁ − 10aₙ₋₂, with a₀ = 3 and a₁ = 9.

an = 7an − 1 − 10an − 2, a0 = 3, a1 = 9

1 Everything on one side

Move everything to one side.

Each term changes its sign when it moves.

an − 7an − 1 + 10an − 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 − 7xn − 1 + 10xn − 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 − 7x + 10 = 0
÷ xn − 2 on both sides

Careful!

Watch the signs.

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

Careful: not x2 − 7x − 10 = 0 ✗

3 Solve it

Factor: we need two numbers that multiply to 10 and add to −7: −2 and −5.

(x − 2)(x − 5) = 0
(−2) × (−5) = 10, (−2) + (−5) = −7

So x = 2 or x = 5.

x = 2 or 5

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 5 to the n.

an = A × 2n + B × 5n

5 Use the start values

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

So A + B = 3.

A + B = 3 ①

n = 1: 2A + 5B = 9.

2A + 5B = 9 ②

From equation 1: A = 3 − B.

A = 3 − B

Put it into equation 2.

2(3 − B) + 5B = 9

Open the bracket.

6 − 2B + 5B = 9

Like terms: 3B.

6 + 3B = 9

Take away 6 on both sides.

3B = 3

Divide by 3: B = 1.

B = 1

And A = 3 minus B, that is 2.

A = 3 − 1 = 2

So aₙ = 2 × 2ⁿ + 5ⁿ.

an = 2 × 2n + 5n

6 Check

Check a₂.

The rule: 7 times 9, minus 10 times 3: 33.

rule: a2 = 7 × 9 − 10 × 3 = 33

The formula with n = 2 gives 33 too.

Right!

formula: a2 = 33

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 × 2n + 5n

Your turn

Try this one yourself, then check:

Solve an5an − 1 − 6an − 2, a0 = 3, a1 = 8
Show the answer
an = 2n + 2 × 3n

More from Second-order recurrences

The whole lesson: Second-order recurrences →