Tutorials › Calculus I › Combining Polynomial, Exponential, And Trigonometric Terms

Antiderivatives and Basic Integrals · Tutorial 1077 of 1495

Combining Polynomial, Exponential, And Trigonometric Terms

Apply the appropriate polynomial, exponential, or trigonometric antiderivative rule to each term, then verify the result by differentiation.

Beginner 9 min read

What You'll Learn

  • Split a finite sum into terms and integrate each term separately.
  • Apply polynomial power rules and basic exponential antiderivative rules.
  • Match common trigonometric terms to their antiderivatives, including sign-sensitive forms.
  • Keep constant coefficients and the arbitrary constant in the correct places.
  • Check a mixed antiderivative by differentiating every term.

Integrating a Sum One Term at a Time

Many functions are written as sums of familiar pieces. A polynomial term might appear beside an exponential term and one or more trigonometric terms. The useful idea is that these pieces do not need to be handled by one complicated rule: on a common interval where the functions are defined, find an antiderivative for each term and add the results.

This approach depends on the linearity of differentiation. The derivative of a sum is the sum of the derivatives, and a constant factor can be moved outside a derivative. Antidifferentiation reverses those facts: integrate each summand separately, keep its coefficient, and then include an arbitrary constant.

Definition: A function \(F\) is an antiderivative of \(f\) on an interval \(I\) if \(F'(x)=f(x)\) for every \(x\in I\). The notation \(\int f(x)\,dx\) represents the family of antiderivatives of \(f\), written \(F(x)+C\), where \(C\) is an arbitrary constant.

For trigonometric formulas below, angles are measured in radians. Each formula is used on an interval where the functions involved are defined. In particular, expressions such as \(\tan x\) or \(\sec x\) are not defined where \(\cos x=0\), so an antiderivative using those functions must be considered on an interval that avoids those points.

The Term-by-Term Rule

Suppose \(f_1,\ldots,f_n\) have antiderivatives \(F_1,\ldots,F_n\) on the same interval \(I\), and \(a_1,\ldots,a_n\) are constants. Then a general antiderivative of their weighted sum is obtained by adding the weighted antiderivatives:

$$ \int \left(a_1f_1(x)+\cdots+a_nf_n(x)\right)\,dx = a_1F_1(x)+\cdots+a_nF_n(x)+C. $$

The same arbitrary constant \(C\) is written once for the whole sum. This rule applies to a finite sum of functions with known antiderivatives on a common interval. It does not say that products can be integrated by integrating each factor separately.

The main task is therefore to recognize each term and select its matching formula. The following list gathers the forms used in this tutorial.

TermAntiderivativeCondition or note
\(x^n\)\(\dfrac{x^{n+1}}{n+1}\)\(n\neq -1\); for polynomial terms, \(n\) is a nonnegative integer
\(e^x\)\(e^x\)Since \(\dfrac{d}{dx}e^x=e^x\)
\(a^x\)\(\dfrac{a^x}{\ln a}\)\(a>0\), \(a\neq 1\)
\(\sin x\)\(-\cos x\)
\(\cos x\)\(\sin x\)
\(\sec^2 x\)\(\tan x\)Where \(\cos x\neq 0\)
\(\csc^2 x\)\(-\cot x\)Where \(\sin x\neq 0\)
\(\sec x\tan x\)\(\sec x\)Where \(\cos x\neq 0\)
\(\csc x\cot x\)\(-\csc x\)Where \(\sin x\neq 0\)

For example, if the term is \(7\sin x\), its coefficient remains attached to the antiderivative: \(\int 7\sin x\,dx=-7\cos x+C\). If the term is \(-4x^3\), the power rule gives \(-4\cdot \frac{x^4}{4}=-x^4\). The constant multiple is handled separately from the matching rule for the function itself.

Why the Rule Works

The justification is a direct use of the derivative rules. If \(F_i'=f_i\) for each \(i\), then the derivative of the proposed sum is

$$ \frac{d}{dx}\left(a_1F_1(x)+\cdots+a_nF_n(x)+C\right) = a_1F_1'(x)+\cdots+a_nF_n'(x)+0 = a_1f_1(x)+\cdots+a_nf_n(x). $$

Thus the proposed expression has exactly the required derivative, which is the definition of an antiderivative. This argument also explains why \(C\) is included: differentiating any constant gives zero, so adding a constant does not change the derivative.

Theorem: If \(F\) and \(G\) are antiderivatives of the same function on an interval \(I\), then \(F-G\) is constant on \(I\). Indeed, \((F-G)'=F'-G'=0\), and a differentiable function with zero derivative throughout an interval is constant there. Therefore, on an interval, writing one antiderivative plus \(C\) gives the full family.

Worked Examples

Worked Example: A Polynomial, an Exponential, Sine, and Cosine

Find the general antiderivative of \(3x^2+2e^x-4\sin x+5\cos x\).

Integrate each term separately. First, the power rule gives \(\int 3x^2\,dx=3\cdot \frac{x^3}{3}=x^3\). Next, \(\int 2e^x\,dx=2e^x\). For the sine term, \(\int -4\sin x\,dx=-4(-\cos x)=4\cos x\). Finally, \(\int 5\cos x\,dx=5\sin x\). Combining these results gives

$$ F(x)=x^3+2e^x+4\cos x+5\sin x+C. $$

Check by differentiation, term by term:

$$ F'(x)=3x^2+2e^x-4\sin x+5\cos x. $$

This is exactly the given function, so the antiderivative is verified.

Worked Example: A General Exponential and a Trigonometric Power Form

Find the general antiderivative of \(4x^3-6\cdot 2^x+3\sec^2 x\), on an interval where \(\sec x\) is defined.

The polynomial term integrates as \(\int 4x^3\,dx=4\cdot \frac{x^4}{4}=x^4\). For the exponential term, use \(\int a^x\,dx=\frac{a^x}{\ln a}\), valid for \(a>0\) and \(a\neq 1\). Here \(a=2\), so \(\int -6\cdot 2^x\,dx=-6\frac{2^x}{\ln 2}\). The matching antiderivative for \(\sec^2 x\) is \(\tan x\), so \(\int 3\sec^2 x\,dx=3\tan x\). Therefore,

$$ F(x)=x^4-\frac{6\cdot 2^x}{\ln 2}+3\tan x+C. $$

Differentiate each term to check: \(\frac{d}{dx}(x^4)=4x^3\); \(\frac{d}{dx}\left(-\frac{6\cdot 2^x}{\ln 2}\right)=-\frac{6\cdot 2^x\ln 2}{\ln 2}=-6\cdot 2^x\); and \(\frac{d}{dx}(3\tan x)=3\sec^2 x\). Hence

$$ F'(x)=4x^3-6\cdot 2^x+3\sec^2 x, $$

which matches the integrand.

Worked Example: Keeping Track of Negative Trigonometric Signs

Find the general antiderivative of \(2x-3\csc^2 x+4\csc x\cot x\), on an interval where the trigonometric terms are defined.

For the polynomial term, \(\int 2x\,dx=2\cdot \frac{x^2}{2}=x^2\). Since \(\frac{d}{dx}(\cot x)=-\csc^2 x\), the antiderivative of \(-3\csc^2 x\) is \(3\cot x\). Since \(\frac{d}{dx}(\csc x)=-\csc x\cot x\), the antiderivative of \(4\csc x\cot x\) is \(-4\csc x\). Thus

$$ F(x)=x^2+3\cot x-4\csc x+C. $$

Now differentiate: \(\frac{d}{dx}(x^2)=2x\); \(\frac{d}{dx}(3\cot x)=-3\csc^2 x\); and \(\frac{d}{dx}(-4\csc x)=4\csc x\cot x\). Therefore

$$ F'(x)=2x-3\csc^2 x+4\csc x\cot x, $$

exactly the original function.

A Common Pitfall: Losing a Sign

Term-by-term work is straightforward, but it does not remove the need to match signs carefully. For instance, an incorrect calculation for \(\int -5\sin x\,dx\) is \(-5\cos x+C\). This treats the antiderivative of \(\sin x\) as \(\cos x\), but \(\frac{d}{dx}(\cos x)=-\sin x\), not \(\sin x\).

The correct matching rule is \(\int \sin x\,dx=-\cos x+C\). Therefore,

$$ \int -5\sin x\,dx = -5(-\cos x)+C = 5\cos x+C. $$

Check the correction: \(\frac{d}{dx}(5\cos x)=-5\sin x\), as required. Differentiating a proposed answer is an efficient way to catch this kind of sign error before combining all the terms.

A Reliable Workflow

For a finite sum of polynomial, exponential, and trigonometric terms, use the following process:

1
Identify the terms.
Separate the expression into its summands, keeping each coefficient and sign attached.
2
Choose a matching rule for each term.
Use the power rule for polynomial terms, the appropriate exponential formula for exponential terms, and the matching trigonometric formula for each trigonometric term.
3
Add the results and include \(C\).
Write one arbitrary constant for the antiderivative family on the interval under consideration.
4
Differentiate to check.
Differentiate every term in the proposed answer and compare the result with the original sum.

This method matters because mixed expressions are common in models and calculations: a single function can combine different kinds of change. Recognizing the pieces lets you use established rules without confusing them. The verification step is especially valuable because it tests the entire answer, including coefficients, signs, and the exponential factor.

Check Your Understanding

For each question, apply a matching rule to every term and use differentiation to verify your result.

  1. Find the general antiderivative of \(6x^2+e^x-2\cos x\).
  2. Find the general antiderivative of \(5x^4+3\cdot 4^x\). State why the exponential formula applies.
  3. Find the general antiderivative of \(-2\sin x+7\sec^2 x\), on an interval where the terms are defined.
  4. What is the error in claiming that \(\int 3\cos x\,dx=3\cos x+C\)? Give the corrected result and check it.
  5. State the derivative fact that justifies adding the separate antiderivatives of a finite sum.

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