Steply

Solve a_n = 10a_(n-1) - 25a_(n-2), a_0 = 1, a_1 = 10

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

Step by step

The question

Question: solve aₙ = 10aₙ₋₁ − 25aₙ₋₂, with a₀ = 1 and a₁ = 10.

an = 10an − 1 − 25an − 2, a0 = 1, a1 = 10

1 Everything on one side

Move everything to one side.

Each term changes its sign when it moves.

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

Careful!

Watch the signs.

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

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

3 Solve it

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

(x − 5)² = 0
(−5) × (−5) = 25, (−5) + (−5) = −10

Both brackets are the same: one root, 5, twice.

x = 5 (twice)

4 The general form

With one root twice, the second part gets an extra n: A times 5 to the n, plus B times n times 5 to the n.

an = A × 5n + B × n × 5n

5 Use the start values

n = 0: the n in front makes the B part 0.

So A = 1.

A = 1 ①

n = 1: 5A + 5B = 10.

5A + 5B = 10 ②

Put A = 1 in.

5 + 5B = 10

Take away 5.

5B = 5

Divide by 5: B = 1.

B = 1

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

an = 5n + n × 5n

6 Check

Check a₂.

The rule: 10 times 10, minus 25 times 1: 75.

rule: a2 = 10 × 10 − 25 × 1 = 75

The formula with n = 2 gives 75 too.

Right!

formula: a2 = 75

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

Your turn

Try this one yourself, then check:

Solve an2an − 1 − an − 2, a0 = 1, a1 = 2
Show the answer
an = 1n + n × 1n

More from Second-order recurrences

The whole lesson: Second-order recurrences →