Step by step
The question
Question: find f(x), if f′(x) = 3x² − 4x + 1 and f(2) = 5.
1 Find the antiderivative
Go backwards: the antiderivative.
Add 1 to each power, divide by the new power.
And + C.
Now we have f(x) = x³ − 2x² + x + C.
Every antiderivative has + C.
The point will tell us what C is.
2 Find C
Put in x = 2.
Work it out: 2 + C.
It must equal 5.
Take away 2 on both sides: C = 3.
Careful!
C is not just the f value.
The other terms at x = 2 are not 0 here.
3 Write the function
So f(x) = x³ − 2x² + x + 3.
4 Check
Let's check: its derivative is 3x² − 4x + 1, the slope we were given.
And at x = 2 it gives 5.
Right!
Let's look back.
First: find the antiderivative.
Then: find C.
Then: write the function.
Last: check.