Tutorials › Calculus I › Checking Trigonometric Antiderivatives By Differentiation

Antiderivatives and Basic Integrals · Tutorial 1075 of 1495

Checking Trigonometric Antiderivatives By Differentiation

Differentiate a proposed trigonometric antiderivative, compare it with the target function, and correct common sign or function errors.

Beginner 9 min read

What You'll Learn

  • Use differentiation to decide whether a proposed function is an antiderivative of a trigonometric function.
  • Distinguish a sign error from a mismatch between trigonometric functions.
  • Correct candidates involving sine, cosine, secant, cosecant, tangent, and cotangent.
  • Verify logarithmic antiderivatives of secant and cosecant by differentiating.
  • Explain why two antiderivatives on an interval differ by a constant.

Why Check an Antiderivative by Differentiating?

An antiderivative is defined by the derivative it produces. That makes differentiation the direct test of a proposed answer: differentiate the candidate and compare the result with the function being integrated. This check is especially useful for trigonometric functions, where a correct formula can differ from a plausible-looking one by a minus sign or by a different trigonometric function.

For instance, the derivatives of sine and cosine involve each other, and the derivatives of tangent and cotangent have opposite signs. Remembering only that a formula “looks familiar” is not enough. A reliable check asks whether the derivative is exactly the target function on the interval under consideration.

Definition: Let \(f\) be defined on an interval \(I\). A function \(F\), differentiable on \(I\), is an antiderivative of \(f\) on \(I\) if \(F'(x)=f(x)\) for every \(x\in I\). A proposed antiderivative is correct precisely when differentiating it gives the target function throughout the interval.

When an indefinite integral is written with \(+C\), the constant accounts for the fact that adding a constant does not change a derivative. The check is still the same: differentiate the expression, and verify that its derivative is the integrand. In the examples below, we work on intervals where all displayed functions are defined.

A Reliable Checking Method

Start by identifying the target function and the proposed antiderivative. Then differentiate the proposed expression carefully, using the ordinary derivative rules and the domain restrictions of its terms. Finally, compare the derivative with the target. If they agree, the candidate passes; if not, the derivative tells you what must be corrected.

1
Write down the target.
State the function \(f(x)\) that the candidate is supposed to differentiate to.
2
Differentiate the candidate.
Keep signs, function names, and any constants or logarithms visible in the calculation.
3
Compare exactly.
Check whether the derivative equals \(f(x)\), not merely a related trigonometric function.
4
Correct and check again.
Adjust the sign or choose a candidate whose derivative is the required function, then differentiate the corrected expression.

The basic derivative facts most often needed for this check are:

$$ \begin{aligned} \frac{d}{dx}\sin x&=\cos x, & \frac{d}{dx}\cos x&=-\sin x,\\ \frac{d}{dx}\tan x&=\sec^2 x, & \frac{d}{dx}\cot x&=-\csc^2 x,\\ \frac{d}{dx}\sec x&=\sec x\tan x, & \frac{d}{dx}\csc x&=-\csc x\cot x. \end{aligned} $$

These formulas expose common mismatches. For example, differentiating \(\cot x\) gives \(-\csc^2 x\), not \(\sec^2 x\). Differentiating \(\cos x\) gives \(-\sin x\), not \(\sin x\). The target function determines which result is needed.

Worked Examples: Find the Error and Correct It

Worked Example: A Sign Error for Sine

Check the proposal \(F(x)=\cos x\) as an antiderivative of \(f(x)=\sin x\).

Differentiate the proposal:

$$ F'(x)=\frac{d}{dx}\cos x=-\sin x. $$

The target is \(\sin x\), whereas the derivative is \(-\sin x\). Thus the proposed function has the wrong sign. To correct it, use \(G(x)=-\cos x+C\), where \(C\) is constant. Its derivative is

$$ G'(x)=\frac{d}{dx}\bigl(-\cos x+C\bigr) =-\bigl(-\sin x\bigr)+0 =\sin x. $$

The corrected candidate passes: differentiating it gives the target \(\sin x\).

Worked Example: A Function Mismatch for Cosine

Check the proposal \(F(x)=-\sin x\) as an antiderivative of \(f(x)=\cos x\).

Differentiate each factor, keeping the negative sign:

$$ F'(x)=\frac{d}{dx}(-\sin x)=-\cos x. $$

This derivative is not \(\cos x\); it is its negative. The correction is \(G(x)=\sin x+C\). Differentiating verifies the correction:

$$ G'(x)=\frac{d}{dx}\bigl(\sin x+C\bigr) =\cos x+0 =\cos x. $$

Therefore \(F(x)=-\sin x\) fails for this target, while \(G(x)=\sin x+C\) is a valid antiderivative of \(\cos x\).

Worked Example: A Trigonometric Function Mismatch

Suppose the target is \(f(x)=\sec^2 x\), and the proposed candidate is \(F(x)=-\cot x\). Work on an interval where the expressions are defined.

Differentiate the proposal, including its negative sign:

$$ F'(x)=\frac{d}{dx}(-\cot x) =-\bigl(-\csc^2 x\bigr) =\csc^2 x. $$

The result is \(\csc^2 x\), not \(\sec^2 x\), so this is a function mismatch rather than a sign mismatch. A suitable correction is \(G(x)=\tan x+C\). Indeed,

$$ G'(x)=\frac{d}{dx}\bigl(\tan x+C\bigr) =\sec^2 x+0 =\sec^2 x. $$

Thus the corrected candidate differentiates to the required target.

Checking Logarithmic Trigonometric Antiderivatives

Some basic trigonometric antiderivatives involve logarithms. In these cases, a useful check is to apply the derivative rule \(\frac{d}{dx}\ln|u(x)|=\frac{u'(x)}{u(x)}\), wherever \(u(x)\ne 0\). The absolute value does not remove the need to check where the logarithm is defined; the expression inside it must be nonzero.

Worked Example: Correcting the Sign for Cosecant

On an interval where the expressions are defined, check \(F(x)=\ln|\csc x+\cot x|\) as an antiderivative of \(f(x)=\csc x\).

Set \(u(x)=\csc x+\cot x\). Its derivative is

$$ u'(x)=-\csc x\cot x-\csc^2 x =-\csc x(\cot x+\csc x). $$

Since \(u(x)=\csc x+\cot x\), the logarithm rule gives

$$ F'(x)=\frac{u'(x)}{u(x)} =\frac{-\csc x(\cot x+\csc x)}{\csc x+\cot x} =-\csc x. $$

The proposal has the wrong sign for the target \(\csc x\). Correct it by taking \(G(x)=-\ln|\csc x+\cot x|+C\). Then

$$ G'(x)=-F'(x)+0 =-(-\csc x) =\csc x. $$

The corrected expression passes the derivative test on any interval where it is defined.

The calculation also illustrates why the logarithm rule should be applied to the whole inner expression. Differentiating just one term of \(\csc x+\cot x\), or overlooking the negative signs in both derivative formulas, can lead to an incorrect conclusion.

Why the Constant Is the Only Difference on an Interval

If two differentiable functions have the same derivative on an interval, they differ by a constant there. This fact explains why an antiderivative check identifies a family of answers rather than a single expression. The proof uses the Mean Value Theorem: for any two points in the interval, the change in the difference of the functions is determined by its derivative at an intermediate point.

Theorem: If \(F'(x)=f(x)\) and \(G'(x)=f(x)\) for every \(x\) in an interval \(I\), then \(F-G\) is constant on \(I\).

To prove this, define \(H(x)=F(x)-G(x)\). For every \(x\in I\),

$$ H'(x)=F'(x)-G'(x)=f(x)-f(x)=0. $$

Take any \(a,b\in I\) with \(a<b\). Since \(I\) is an interval, \([a,b]\) lies in \(I\). The function \(H\) is continuous on \([a,b]\) and differentiable on \((a,b)\), so the Mean Value Theorem gives a \(c\in(a,b)\) such that

$$ H(b)-H(a)=H'(c)(b-a)=0\cdot(b-a)=0. $$

Therefore \(H(b)=H(a)\) for any such pair of points. Hence \(H\) is constant on \(I\), which means \(F(x)=G(x)+C\) for some constant \(C\). Conversely, adding any constant to an antiderivative leaves its derivative unchanged, because \(\frac{d}{dx}C=0\).

Common Pitfalls

A frequent mistake is to remember the right trigonometric function but miss its sign. Another is to treat related functions as interchangeable: \(\sec^2 x\) and \(\csc^2 x\) are different, as are \(\sec x\tan x\) and \(\csc x\cot x\). The correction should follow from the derivative calculation rather than from a visual resemblance between formulas.

Common mistake: Claiming that \(\frac{d}{dx}(-\cot x)=-\csc^2 x\) because the derivative of \(\cot x\) is negative. This drops the minus sign already present in the candidate. The correct calculation is \(\frac{d}{dx}(-\cot x)=-(-\csc^2 x)=\csc^2 x\).

Also check constants and parentheses. For example, a constant added outside an expression contributes zero to the derivative, but a negative sign multiplying an entire expression changes the sign of its derivative. Write enough intermediate steps to make those effects visible.

Why This Check Matters

Differentiation turns an antiderivative question into a direct comparison that can settle whether a candidate is correct. It can distinguish a valid answer from one that is nearly correct, pinpoint a sign error, and reveal when the candidate produces the wrong trigonometric function. It also provides a final verification after an antiderivative has been found by another method.

For a proposed \(F\) and target \(f\), the essential question is simply whether \(F'(x)=f(x)\) throughout the stated interval. If the equality fails, inspect the differentiated expression: a negative of the target indicates a sign problem, while a different trigonometric function indicates a function mismatch. After correcting the candidate, differentiate it once more rather than assuming the adjustment worked.

Check Your Understanding

For each question, use differentiation to justify your conclusion and state any relevant domain restriction.

  1. Is \(\sin x+C\) an antiderivative of \(\cos x\)? Show the derivative.
  2. A candidate for an antiderivative of \(\sin x\) is \(\cos x+C\). What does differentiating it show, and how can it be corrected?
  3. Differentiate \(-\cot x\). Is the result \(\sec^2 x\) or \(\csc^2 x\)?
  4. Why does adding a constant to a valid antiderivative leave it valid?
  5. If two antiderivatives of the same function are defined on an interval, why can they differ only by a constant?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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