Introduction
A constant function has the same output at every input. For example, the function \(f(x)=4\) always has value \(4\), whether \(x\) is \(0\), \(2\), or \(-5\). Finding an antiderivative asks us to reverse differentiation: we want a function whose derivative is this constant output.
This is a particularly simple case, but it establishes an important pattern. A linear function has a constant derivative, and differentiating the proposed answer gives a direct check that it works.
What Is an Antiderivative of a Constant?
A function \(F\) is an antiderivative of a function \(f\) on an interval if \(F'(x)=f(x)\) at every point in that interval where the derivative is defined. The value \(k\) in a constant function is fixed; \(x\) is the input variable.
To find one, we look for a function whose rate of change is \(k\). The function \(kx\) has exactly that derivative: the derivative of \(x\) is \(1\), and multiplying a function by the fixed number \(k\) multiplies its derivative by \(k\). Adding a constant \(C\) does not change the derivative.
Therefore, \(kx+C\) is an antiderivative of \(k\). In indefinite integral notation, the family of antiderivatives is written
Here \(dx\) indicates that \(x\) is the variable of integration. The symbol \(C\) represents an arbitrary real constant. The integral notation describes a family of functions, rather than just one function.
Why the Answer Includes an Arbitrary Constant
When a constant is differentiated, its derivative is zero. Consequently, adding any constant to an antiderivative does not change the derivative. For instance, \(kx\), \(kx+3\), and \(kx-10\) all have derivative \(k\).
The earlier material on why antiderivatives differ by a constant establishes that, on an interval, any two antiderivatives of the same function differ by a constant. So \(kx+C\) does not merely give some possible antiderivatives: it gives the full family for the constant function \(k\).
The verification has two parts. First, differentiating every function \(kx+C\) gives \(k\), so every member of the family works. Second, if \(F'(x)=k\), then \(F\) and \(kx\) have the same derivative on \(I\). By the result on antiderivatives differing by a constant, \(F(x)=kx+C\) for some constant \(C\). Both parts matter: checking a candidate shows it works, while the second part explains why no other forms are missing.
Worked Examples
Worked Example: A Positive Constant
Find all antiderivatives of \(f(x)=6\).
Here the fixed constant is \(k=6\). Substitute it into the constant-function formula:
Differentiate the proposed family to check it:
The derivative equals the original function \(f(x)=6\). Therefore, all antiderivatives are \(F(x)=6x+C\), with \(C\) any real number.
Worked Example: A Negative Constant
Find all antiderivatives of \(g(x)=-3\), and verify one member of the family by differentiation.
The constant is \(k=-3\), so the family is
Differentiate:
This is exactly \(g(x)\). The negative sign is part of the constant and remains in the derivative. Thus all antiderivatives are \(G(x)=-3x+C\).
Worked Example: The Zero Function
Find all antiderivatives of \(h(x)=0\).
In this case \(k=0\). Applying the formula gives
Check by differentiating:
This matches \(h(x)=0\). Therefore, the antiderivatives of the zero function are all constant functions. A constant function with any value has derivative zero.
A Short Derivation: Constant Rate Gives a Linear Function
The formula \(kx+C\) can also be understood as the function with constant rate of change \(k\). The mean value theorem makes this reasoning precise. Suppose \(F\) is differentiable on an interval and \(F'(x)=k\) throughout that interval. Choose any two points \(a\) and \(b\) in the interval, with \(a<b\). The mean value theorem says that for some \(c\in(a,b)\),
Multiplying by \(b-a\) gives \(F(b)-F(a)=k(b-a)\), so \(F(b)=F(a)+k(b-a)\). Rearranging shows that \(F(b)-kb=F(a)-ka\). Since this holds for any two points \(a\) and \(b\), the value \(F(x)-kx\) is constant throughout the interval. Call that constant \(C\). Then \(F(x)=kx+C\), as claimed.
This argument explains why the answer is linear: over any change in input, the change in the function is \(k\) times that change in input. The verification by differentiation is shorter, but this reasoning shows why the form accounts for every antiderivative.
Common Mistakes and How to Avoid Them
A frequent error is to treat the constant being integrated as though it were the integration constant. They have different roles: \(k\) is the given value of the function, while \(C\) is the arbitrary constant that appears in the answer.
Worked Example: Correcting a Missing Variable
Suppose a student claims that an antiderivative of \(5\) is \(5+C\). Differentiate this proposed answer:
The derivative is \(0\), not \(5\), so the claim fails. The missing factor is the variable \(x\). The corrected family is
Substituting the corrected answer into the derivative condition gives the original constant function, as required.
Another common mistake is to omit \(C\) and report only \(kx\). This does give an antiderivative, but it gives only one member of the family. For example, when \(k=5\), both \(5x\) and \(5x+8\) differentiate to \(5\). Writing \(5x+C\) includes all the possibilities.
Finally, do not confuse the constant function \(k\) with the constant function \(C\) added to its antiderivative. If \(k=0\), the answer is \(C\); if \(k\ne 0\), the answer varies with \(x\), even though its derivative remains constant.
Why This Case Matters
Constant functions describe quantities that do not vary with the input, while their antiderivatives describe functions that change at a steady rate. For example, if a function has derivative \(4\) throughout an interval, its value increases by \(4\) for each increase of \(1\) in \(x\). The antiderivative \(4x+C\) captures that steady change, with \(C\) setting the starting level.
This simple case also makes differentiation a reliable check on integration. Whenever a proposed antiderivative is found, differentiating it should recover the original function. For a constant, that check is direct and exact: the derivative of \(kx+C\) is \(k\). The next step in learning antiderivatives will extend this reverse-differentiation approach beyond constant functions.
Check Your Understanding
Try each question, and use differentiation to check your proposed answer.
- Find all antiderivatives of the constant function \(f(x)=9\).
- Find all antiderivatives of \(g(x)=-\frac{1}{2}\).
- What are all the antiderivatives of the zero function?
- A student claims that \(7+C\) is an antiderivative of \(7\). Differentiate the claim and explain the error.
- Why does the formula for the antiderivatives of \(k\) include an arbitrary constant?