Mathematics/Lessons/Integration/Finding the Constant of Integration
Pure · Integration · Year 1

Finding the Constant of Integration

Integrating a gradient function gives a family of curves, all the same shape at different heights. One known point picks out the one you want.

9 min read 3 worked examples

From a gradient function back to the curve

Every indefinite integral in the last lesson ended with an unknown $+C$. Usually a question gives you one extra piece of information — a point the curve passes through — and that is exactly enough to work out what $C$ is and recover the one curve you want.

The setup is standard: you are given $\dfrac{dy}{dx}$ and told the curve passes through some point. Integrating gives $y$ in terms of $x$ plus a $C$; substituting the point then lets you solve for it.

Four parabolas of identical shape stacked vertically on the same axes, labelled y = x squared minus 2, y = x squared, y = x squared plus 2, and y = x squared plus 4. The curve y = x squared plus 2 is drawn thicker than the other three, and a solid dot on it marks the point (1, 3).
Integrating dy/dx = 2x gives y = x² + C: the same parabola at every height. The point (1, 3) lies on only one of them, which fixes C = 2.
Why one point is enough

Each value of $C$ gives a different curve, but they all have the same shape and differ only in height. Picture a stack of identical curves at every level. Telling you one point the curve passes through fixes the height, and only one member of the stack goes through it. Substituting the coordinates into $y = f(x) + C$ turns it into an equation you can solve for $C$.

The method: integrate, substitute, solve

(1) Integrate $\dfrac{dy}{dx}$ to get $y = f(x) + C$, keeping the $C$. (2) Substitute the coordinates of the given point for $x$ and $y$. (3) Solve for $C$ and write out the full equation. The point is used after integrating, never before.

Worked example 1

Find the equation of a curve
A curve passes through $(2, 5)$ and has gradient function $\dfrac{dy}{dx} = 3x^2 - 4x$. Find the equation of the curve.
MethodIntegrate, then use the point to find C
1
Integrate: $y = \displaystyle\int (3x^2 - 4x)\,\mathrm{d}x = x^3 - 2x^2 + C$.
Add one, divide, keep the $C$.
2
Substitute $(2,5)$: $5 = 2^3 - 2(2)^2 + C = 8 - 8 + C$.
Replace $x$ with 2 and $y$ with 5.
3
So $C = 5$.
Solve for the constant.
4
The curve is $y = x^3 - 2x^2 + 5$.
Write out the equation.
▪ solved
The +C has to survive step 1

If you drop the constant while integrating, there is nothing left for the point to determine and the method falls apart. Note also that the point is substituted into the curve $y = f(x) + C$, not into the gradient function: the coordinates satisfy the equation of the curve, not the equation of its gradient.

Worked example 2

With a root in the gradient function
A curve passes through $(4, 10)$ and satisfies $\dfrac{dy}{dx} = 6\sqrt{x}$. Find $y$ in terms of $x$.
MethodConvert, integrate, then substitute
1
Write $6\sqrt{x}$ as $6x^{1/2}$.
Index form first.
2
Integrate: $y = \dfrac{6x^{3/2}}{3/2} + C = 4x^{3/2} + C$.
Dividing by $\tfrac32$ is multiplying by $\tfrac23$, and $6 \times \tfrac23 = 4$.
3
Substitute $(4, 10)$. Since $4^{3/2} = (\sqrt4)^3 = 8$, this gives $10 = 4(8) + C = 32 + C$.
Evaluate the fractional power.
4
So $C = -22$, and $y = 4x^{3/2} - 22$.
Solve and write out.
▪ solved
Reading fractional powers

The step people stumble on is $4^{3/2}$. Read the denominator as the root and the numerator as the power: take $\sqrt4 = 2$, then cube it to get $8$. Powers like this turn up whenever the gradient function contains a root, so it is worth being quick with them. Everything else here is the same integrate–substitute–solve pattern.

Worked example 3

Integrating twice · starting from the second derivative
A curve has $\dfrac{d^2y}{dx^2} = 12x - 6$. At the point $(1, 4)$ the gradient is $\dfrac{dy}{dx} = 5$. Find the equation of the curve.

Integrating the second derivative once gives $\dfrac{dy}{dx}$, and again gives $y$. Each integration produces its own constant, and each one needs a piece of the given information to pin it down.

MethodIntegrate twice, fixing a constant each time
1
Integrate once: $\dfrac{dy}{dx} = 6x^2 - 6x + C_1$.
First integration.
2
Use $\dfrac{dy}{dx} = 5$ at $x = 1$: $5 = 6 - 6 + C_1$, so $C_1 = 5$ and $\dfrac{dy}{dx} = 6x^2 - 6x + 5$.
The gradient value fixes $C_1$.
3
Integrate again: $y = 2x^3 - 3x^2 + 5x + C_2$.
Second integration.
4
Use $(1, 4)$: $4 = 2 - 3 + 5 + C_2 = 4 + C_2$, so $C_2 = 0$ and $y = 2x^3 - 3x^2 + 5x$.
The point fixes $C_2$.
▪ solved
One constant per integration

Two integrations mean two unknown constants, so you need two pieces of information: here the gradient value settled $C_1$ and the point settled $C_2$. Resolve the first constant before integrating again, otherwise it gets carried through and tangled into the second stage. Labelling them $C_1$ and $C_2$ keeps them apart.

Common mistake

The serious error is substituting the point before integrating. The coordinates belong to the curve, not to the gradient function, so they are no use until you have $y = f(x) + C$ to put them into. Integrate first, keep the $+C$, then substitute. And when you start from a second derivative, remember there are two constants to find, not one.

Check yourself

A curve passes through $(3, 2)$ and has $\dfrac{dy}{dx} = 2x - 5$. Find the equation of the curve.
(Hint: integrate to $y = x^2 - 5x + C$, then substitute the point.)

Method
1
Integrate: $y = x^2 - 5x + C$.
Keep the constant.
2
Substitute $(3, 2)$: $2 = 9 - 15 + C = -6 + C$.
Replace $x$ and $y$.
3
So $C = 8$.
Solve.
4
The curve is $y = x^2 - 5x + 8$.
Full equation.
▪ solved

Two checks: differentiating $x^2 - 5x + 8$ gives $2x - 5$, and substituting $x = 3$ gives $y = 9 - 15 + 8 = 2$, so the curve does pass through $(3, 2)$.