Steply

f(x) = x^2 - 2x, g(x) = 3x - 4, find (f - g)(x)

Step by step, with the reason for every step · Combining functions · Algebra 2

Step by step

The question

Question: find (f − g)(x) for f(x) = x² − 2x and g(x) = 3x − 4.

f(x) = x2 − 2x
g(x) = 3x − 4

(f − g)(x) means f of x minus g of x.

We take away the two answers.

(f − g)(x) = f(x) − g(x)

1 Put the rules in

Each rule goes in brackets, as one piece: (x² − 2x) − (3x − 4).

(f − g)(x) = (x² − 2x) − (3x − 4)

Careful!

The minus is in front of the whole of g(x).

It changes every sign in the bracket, not only the first.

Careful: not x2 − 2x − 3x − 4 ✗

2 Open the brackets

A bracket with a plus or nothing in front can just be removed.

A minus in front of a bracket changes the sign of every part inside.

−( + ) → −, −( − ) → +

Now we have x² − 2x − 3x + 4.

= x2 − 2x − 3x + 4

3 Group like terms

Terms are the parts between the + and − signs.

Like terms are the same kind: same letters, same powers.

All the x terms go together.

Each colour is one kind.

like terms = same letters,
same powers

−2x − 3x is −5x.

−2x − 3x = −5x

So the expression is x² − 5x + 4.

(f − g)(x) = x2 − 5x + 4

4 Check

Let's check with a number: x = 2.

f of 2 is 0, g of 2 is 2.

Minus: −2.

f(2) − g(2) = 0 − 2 = −2

Now our answer with x = 2.

We get −2 too.

It works!

Answer: 22 − 5(2) + 4 = 4 − 10 + 4 = −2

Let's look back.

First: put the rules in.

Then: open the brackets.

Then: group like terms.

Last: check.

Answer
(f − g)(x) = x2 − 5x + 4

Your turn

Try this one yourself, then check:

f(x) = x2 − x, g(x) = 4x − 5, find (f − g)(x)
Show the answer
(f − g)(x) = x2 − 5x + 5

More from Combining functions

The whole lesson: Combining functions →