Steply

Derivative of (5 - x)(x^2 + 2)

Step by step, with the reason for every step · Product and quotient rules · Calculus

Step by step

The question

Question: find the derivative of f(x) = (5 − x)(x² + 2).

f(x) = (5 − x)(x2 + 2)

1 Name u and v

Call the first bracket u: 5 − x.

u = 5 − x

Call the second bracket v: x² + 2.

v = x2 + 2

2 Find u′ and v′

The power rule on u gives u′ = −1.

u′ = −1

On v it gives v′ = 2x.

v′ = 2x

3 Use the rule

The product rule: the derivative of u times v is u′ v plus u v′.

(uv)′ = u′v + uv′

Put them in.

f′(x) = (−1)(x2 + 2) + (5 − x)(2x)

Careful!

Not u′ times v′!

Each part needs the other bracket.

Careful: not u′ × v′ = −2x ✗

4 Open the brackets

What is in front of a bracket multiplies every part inside.

= −x2 − 2 + 10x − 2x2

Terms are the parts between the + and − signs.

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

All the x terms go together.

Plain numbers go together.

So f′(x) = −3 x² + 10x − 2.

= −3x2 + 10x − 2

5 Check

Let's check another way: multiply the brackets out first.

f(x) is − x³ + 5 x² − 2x + 10.

f(x) = −x3 + 5x2 − 2x + 10

The power rule on that gives −3 x² + 10x − 2.

The same!

Right!

f′(x) = −3x2 + 10x − 2

Let's look back.

First: name u and v.

Then: find u′ and v′.

Then: use the rule.

Then: open the brackets.

Last: check.

Answer
= −3x2 + 10x − 2

Your turn

Try this one yourself, then check:

Find the derivative of f(x) = (4 − x)(x2 + 1)
Show the answer
f′(x) = −3x2 + 8x − 1

More from Product and quotient rules

The whole lesson: Product and quotient rules →