Tutorials › AP Calculus › Using Initial Conditions to Determine an Antiderivative

Antiderivatives and Substitution · Tutorial 492 of 999

Using Initial Conditions to Determine an Antiderivative

Use a stated function value to determine the constant of integration and verify the resulting particular antiderivative.

Intermediate 9 min read

What You'll Learn

  • Identify the family of antiderivatives for a given derivative.
  • Use an initial condition to solve for the constant of integration.
  • Recover a unique particular function when the domain is an interval.
  • Verify a result by differentiating and checking the stated value.
  • Recognize why the constant is not usually equal to the initial value.

From a Family of Antiderivatives to One Function

Knowing the derivative of a function does not usually tell you exactly which function you started with. If \(F'(x)=q(x)\), then every function \(F(x)+C\), where \(C\) is a constant, also has derivative \(q(x)\). The derivative records how a function changes, but it does not record its vertical position.

A function value supplies that missing information. If we know both the derivative and the value of the function at one input, we can determine the constant and recover a particular function. In an initial-value problem, the derivative rule describes the change and the stated function value is called the initial condition.

Definition: Suppose \(q\) is defined on an interval, and \(a\) is in that interval. An initial condition for a function \(y\) has the form \(y(a)=b\), where \(b\) is a specified number. To find the function, first find an antiderivative of \(q\), then use the condition to determine its constant.

The Constant Is Determined by the Function Value

Suppose \(F'(x)=q(x)\). The family of antiderivatives is \(F(x)+C\). To make one member of this family satisfy \(y(a)=b\), substitute \(x=a\) and set the result equal to \(b\):

$$ y(x)=F(x)+C,\qquad b=y(a)=F(a)+C. $$

Solving the second equation gives \(C=b-F(a)\). Thus the particular function is

$$ y(x)=F(x)+b-F(a). $$

The order matters: evaluate the antiderivative at the specified input first, then compare that value with the required function value. The constant adjusts the difference between them.

1
Find an antiderivative.
Write a general family \(y(x)=F(x)+C\) for the given derivative.
2
Apply the initial condition.
Substitute the specified input into the family and set the result equal to the specified function value.
3
Solve for \(C\).
Substitute that constant back into the family to state the particular function.
4
Check both requirements.
Differentiate the result and evaluate it at the initial input.

Why One Initial Condition Is Enough

The method works because antiderivatives of the same function on an interval can differ only by a constant. The derivative determines the shape of the function’s changes; one value determines its vertical position. Here is a justification that also explains why the answer is unique.

1
Compare two possible solutions.
Suppose \(y_1'(x)=q(x)\) and \(y_2'(x)=q(x)\) throughout an interval. Define \(h(x)=y_1(x)-y_2(x)\). Then \(h'(x)=y_1'(x)-y_2'(x)=0\).
2
Use the Mean Value Theorem.
For any two points \(u\) and \(v\) in the interval, the Mean Value Theorem applies to \(h\) on the segment between them. For some point \(c\) between \(u\) and \(v\), \(h(u)-h(v)=h'(c)(u-v)=0\). Therefore \(h(u)=h(v)\).
3
Conclude that the difference is constant.
Because \(h(u)=h(v)\) for any two points, \(h\) is constant on the interval. Thus two antiderivatives of \(q\) differ by a constant there.
4
Apply one shared initial condition.
If both candidate functions also satisfy \(y_1(a)=b\) and \(y_2(a)=b\), then \(h(a)=y_1(a)-y_2(a)=0\). Since \(h\) is constant, it is zero everywhere. Therefore \(y_1=y_2\) throughout the interval.

This proves uniqueness: on an interval, two functions with the same derivative and the same value at one point must be the same function. The calculation \(C=b-F(a)\) also constructs that function, so the condition determines exactly one member of the antiderivative family.

Worked Examples

Worked Example: A Polynomial Derivative

Find \(y(x)\) if \(y'(x)=3x^2-4x+5\) and \(y(2)=7\).

First integrate each term. The power rule gives

$$ y(x)=x^3-2x^2+5x+C. $$

Use the initial condition by substituting \(x=2\) and \(y(2)=7\):

$$ 7=2^3-2(2^2)+5(2)+C =8-8+10+C =10+C. $$

Therefore \(C=-3\), and the particular function is

$$ y(x)=x^3-2x^2+5x-3. $$

Check the derivative:

$$ y'(x)=3x^2-4x+5, $$

which is the given derivative. Check the initial value:

$$ y(2)=8-8+10-3=7. $$

Both conditions hold.

Worked Example: An Exponential and Trigonometric Derivative

Find \(y(t)\) if \(y'(t)=\cos t+2e^t\) and \(y(0)=4\).

An antiderivative of \(\cos t\) is \(\sin t\), and an antiderivative of \(2e^t\) is \(2e^t\). Therefore

$$ y(t)=\sin t+2e^t+C. $$

Substitute \(t=0\). Since \(\sin 0=0\) and \(e^0=1\),

$$ 4=y(0)=\sin 0+2e^0+C=0+2(1)+C=2+C. $$

Thus \(C=2\), so

$$ y(t)=\sin t+2e^t+2. $$

Differentiate to check the derivative:

$$ y'(t)=\cos t+2e^t+0=\cos t+2e^t. $$

Evaluate the function at the specified input:

$$ y(0)=0+2(1)+2=4. $$

The derivative and initial condition are both satisfied.

Worked Example: A Logarithmic Antiderivative on a Restricted Domain

Find \(y(x)\) if \(y'(x)=2x+\frac{1}{x}\), for \(x>0\), and \(y(1)=3\).

On the stated domain \(x>0\), an antiderivative of \(\frac{1}{x}\) is \(\ln x\). Integrating the two terms gives

$$ y(x)=x^2+\ln x+C,\qquad x>0. $$

Apply the condition at \(x=1\). Since \(\ln 1=0\),

$$ 3=y(1)=1^2+\ln 1+C=1+0+C=1+C. $$

It follows that \(C=2\), so the answer is

$$ y(x)=x^2+\ln x+2,\qquad x>0. $$

Differentiate:

$$ y'(x)=2x+\frac{1}{x}+0=2x+\frac{1}{x}. $$

Then check the given value:

$$ y(1)=1+\ln 1+2=1+0+2=3. $$

The domain condition matters: the logarithm and the given derivative are being used on \(x>0\), which contains the initial input \(x=1\).

Connection with Accumulated Change

There is another way to express the same result. Suppose \(y'(x)=q(x)\), \(y(a)=b\), and \(q\) is continuous on the interval from \(a\) to \(x\). The Fundamental Theorem of Calculus gives

$$ y(x)-y(a)=\int_a^x q(t)\,dt. $$

Substituting \(y(a)=b\) yields \(y(x)=b+\int_a^x q(t)\,dt\). In words, the function’s value at \(x\) equals its starting value plus the accumulated change from \(a\) to \(x\). This agrees with the antiderivative method: if \(F'=q\), then the definite integral is \(F(x)-F(a)\), so

$$ b+\int_a^x q(t)\,dt =b+F(x)-F(a) =F(x)+b-F(a). $$

That is exactly the particular antiderivative found by solving for the constant. This connection is useful when a problem describes a rate of change and an initial amount, such as a position with a known velocity or a quantity with a known rate of accumulation.

A Common Mistake: Setting the Constant Equal to the Initial Value

The initial condition specifies the value of the entire function at \(x=a\), not the value of the constant by itself. A common incorrect calculation is to integrate \(y'(x)=3x^2-4x+5\), obtain \(y=x^3-2x^2+5x+C\), and then use \(y(2)=7\) to write \(C=7\). That skips the other terms in the function’s value at \(x=2\).

The wrong choice \(C=7\) gives

$$ y(2)=8-8+10+7=17, $$

not \(7\). The correction is to substitute the input into every term before solving:

$$ 7=8-8+10+C=10+C, \qquad C=-3. $$

A reliable check is to evaluate the final function at the given input. If that evaluation does not reproduce the stated value, the constant has not been chosen correctly.

What the Initial Condition Does—and Does Not—Tell You

For a derivative given on an interval, one initial condition ordinarily selects one function from the family of antiderivatives on that interval. It does not change the derivative rule; adding a constant changes function values but has derivative zero. Nor should the stated value be substituted into the derivative equation as though it were a function value there: \(y'(a)\) describes the slope at \(a\), whereas \(y(a)\) describes the function’s value at \(a\).

When solving, keep those two pieces of information distinct. Integrate the derivative to form the family, and use the function value only to determine \(C\). Then check the result in both places: its derivative must match the given rate, and its value at the initial input must match the initial condition.

Key takeaway: If \(F'(x)=q(x)\) and \(y(a)=b\), then the unique function on the interval satisfying both conditions is \(y(x)=F(x)+b-F(a)\). The constant is the required initial value minus the value of the chosen antiderivative at the initial input.

Check Your Understanding

For each problem, find the particular function and verify it by checking both its derivative and its stated value.

  1. Find \(y(x)\) if \(y'(x)=4x-3\) and \(y(1)=2\).
  2. Find \(y(t)\) if \(y'(t)=e^t\) and \(y(0)=5\).
  3. For \(x>0\), find \(y(x)\) if \(y'(x)=\frac{1}{x}\) and \(y(1)=2\).
  4. In one sentence, explain why setting \(C=b\) is generally incorrect when the condition is \(y(a)=b\).
  5. Why can two functions with the same derivative on an interval differ only by a constant?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon