Lesson 6 of 8 · 14 min

Finding a function from its derivative

Use an initial condition f(a)=bf(a) = b to find the constant of integration, find a curve's equation from its gradient function and a point, and work back from a second derivative.

What you will be able to do

  • Use an initial condition f(a)=bf(a) = b to find the constant of integration.
  • Determine the equation of a curve from its gradient function and a point on it.
  • Work back from a second derivative using two conditions.

Anti-differentiating gives you a whole family of functions, F(x)+cF(x) + c. Often you know one more fact: the curve passes through a point, or a quantity has a known starting value. That single fact picks out exactly one member of the family.

Interactive

Pick one curve from the family

Every curve here has gradient function dydx=3x2−3\frac{dy}{dx} = 3x^2 - 3. Slide cc to move through the family: one point on the curve is enough to fix cc.

Finding f(x)f(x) from f′(x)f'(x) and f(a)=bf(a) = b

  1. Anti-differentiate f′(x)f'(x)

    Include + c+\,c. Without it there is nothing for the condition to find.

  2. Substitute x=ax = a and set the result equal to bb

    Evaluate every term. Remember that e0=1e^0 = 1 and cos⁡(0)=1\cos(0) = 1.

  3. Solve for cc

    It is usually a one-step equation.

  4. Write f(x)f(x) in full

    Replace cc with its value, and check that f(a)=bf(a) = b.

Worked example

Find a curve from its gradient and a point

  • Simple familiar
  • Technology free

The gradient of a curve at any point is given by dydx=6x2−2x+1\frac{dy}{dx} = 6x^2 - 2x + 1. The curve passes through the point (1,4)(1, 4). Determine the equation of the curve.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Anti-differentiate and keep + c+\,c.

  2. Substitute the known point into the antiderivative.

  3. Solve for cc and write the full equation.

Watch out for

  • Substituting the point into dydx\frac{dy}{dx} instead of into yy.

  • Stopping at c=2c = 2 without writing the equation of the curve.

Given f′(x)=4x−3f'(x) = 4x - 3 and f(2)=7f(2) = 7, determine f(x)f(x).

f(x) =
Reads asYour answer shows here as maths.

Common mistake

The constant is not always the initial value

If f(x)=ex+cf(x) = e^x + c and f(0)=5f(0) = 5, then 1+c=51 + c = 5, so c=4c = 4. The constant equals the given value only when every other term is zero at that point. Always substitute; never assume.

Worked example

Find f(x)f(x) when f′(x)f'(x) has exponential and sine terms

  • Complex familiar
  • Technology free

Given f′(x)=4e2x−3sin⁡(x)f'(x) = 4e^{2x} - 3\sin(x) and f(0)=6f(0) = 6, determine f(x)f(x).

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Anti-differentiate term by term, keeping the constant.

  2. Substitute the initial condition and evaluate every term carefully.

  3. Solve for cc, then write f(x)f(x) in full.

Watch out for

  • Taking c=6c = 6 because f(0)=6f(0) = 6. That only works when every other term is zero at x=0x = 0.

  • Sign error: ∫−3sin⁡(x) dx=+3cos⁡(x)\int -3\sin(x)\,dx = +3\cos(x).

Given f′(x)=exf'(x) = e^x and f(0)=5f(0) = 5, what is the value of cc in f(x)=ex+cf(x) = e^x + c?

Choose one answer

Given f′(x)=sin⁡(x)f'(x) = \sin(x) and f(π)=4f(\pi) = 4, determine f(0)f(0).

If you are given a second derivative, integrate twice. Each integration brings its own constant, so you need two conditions, one for each. Use each condition as soon as you have the function it belongs to.

Worked example

Work back from a second derivative

  • Complex familiar
  • Technology free

A function ff has f′′(x)=6x−4f''(x) = 6x - 4, with f′(1)=2f'(1) = 2 and f(0)=5f(0) = 5. Determine f(x)f(x).

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Integrate f′′f'' to get f′f', with constant c1c_1.

  2. Use the condition on f′f' to find c1c_1.

  3. Integrate again with a new constant c2c_2, and use the condition on ff.

Watch out for

  • Using the same letter cc for both constants and then mixing them up.

  • Substituting f(0)=5f(0) = 5 into f′(x)f'(x).

Exam tip

Show the substitution, then state the function

Write the line that finds cc, such as f(2)=8−6+c=7f(2) = 8 - 6 + c = 7, then state the final answer in full: f(x)=2x2−3x+5f(x) = 2x^2 - 3x + 5. A value of cc on its own does not answer "determine f(x)f(x)".

Summary

  • Integrating gives a family F(x)+cF(x) + c; one known value picks out a single member.

  • Substitute the condition into the antiderivative, not the derivative, then solve for c.

  • cc equals the given value only if every other term is zero there: e0=1e^0 = 1 and cos⁡(0)=1\cos(0) = 1.

  • From a second derivative, integrate twice and use two conditions, one for each constant.

  • Finish by writing the function in full.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 6 of 80% read

Save your progress with a free account