Steply

Ab + 4a - 3b - 12

Step by step, with the reason for every step · Factor by grouping · Algebra 1

Step by step

The question

Question: factor ab + 4a − 3b − 12.

There are four terms.

So we factor them in pairs.

This is called grouping.

ab + 4a − 3b − 12

1 Group in pairs

We put the first two together, and the last two together.

= (ab + 4a) + (−3b − 12)

From the first pair we take out a.

The second pair starts with a minus.

So we take out −3, with the minus.

Both leave the same bracket, b + 4.

(ab + 4a) = a(b + 4)
(−3b − 12) = −3(b + 4)

Careful!

If we take out 3, without the minus, we get −b − 4 in the bracket.

That does not match b + 4.

Take the minus out too.

Careful: not 3(−b − 4) ✗

Now both parts have b + 4 in them.

= a(b + 4) − 3(b + 4)

2 Same bracket out

b + 4 is in both parts, so we take it out once.

What is left, a − 3, goes in the other bracket.

ab + cb = b(a + c)

So we get (b + 4)(a − 3).

= (b + 4)(a − 3)

3 Check

Let's check: we multiply it back out.

Each part of the first bracket times each part of the second.

Check: (b + 4)(a − 3) = ab − 3b + 4a − 12
= ab + 4a − 3b − 12

We get ab + 4a − 3b − 12 again.

So the answer is right!

Let's look back.

First: group in pairs.

Then: same bracket out.

Last: check.

Answer
= (b + 4)(a − 3)

Your turn

Try this one yourself, then check:

Factor ab + a − 3b − 3
Show the answer
(b + 1)(a − 3)

More from Factor by grouping

The whole lesson: Factor by grouping →