This is a beta course, so its structure, chapters, and examples may continue to change.
Exercises
This page is a graded set of exercises on indefinite integrals. It is meant to be worked rather than read: each problem is followed by a complete solution showing the approach, the individual steps, and the final answer, so that the reasoning can be compared against your own.
The exercises are ordered by difficulty and arranged in four groups: Basic Exercises (Exercises 1–4) use nothing but the power rule and linearity; Intermediate Exercises (Exercises 5–8) ask you to recognize a structure and rewrite the integrand before integrating, the last of them by a partial fraction decomposition; Comprehensive Exercises (Exercises 9–12) combine these tools and close with a verification problem; and the Challenge Exercises (the last three, Exercises 13–15) require a genuine technique, an inverse trigonometric formula in one case, a trigonometric identity in a second, and a completed square in the third. Every answer should be checked by differentiating it, and the solutions say so explicitly wherever the check is instructive.
Definition
Because this is a problem set, it is worth stating the tools in one place before using them. An antiderivative of a function f on an interval I is a function F with F′(x)=f(x) on I, and the indefinite integral is the family of all of them:
∫f(x)dx=F(x)+C,
where C is an arbitrary constant. The constant is not decoration: differentiation cannot distinguish two functions that differ by a constant, so the indefinite integral has to carry it, and every answer below ends with +C.
Three ingredients do all the work in this set.
Linearity.∫[af(x)+bg(x)]dx=a∫f(x)dx+b∫g(x)dx.
The basic formulas.∫xndx=n+1xn+1+C for n=−1; ∫x1dx=ln∣x∣+C; ∫exdx=ex+C; ∫sinxdx=−cosx+C; ∫cosxdx=sinx+C; and ∫1+x21dx=arctanx+C.
Substitution. When the integrand contains a function together with its derivative, set that function equal to u, convert the whole differential, and back-substitute the original variable at the end.
Check every answer by differentiating it. With indefinite integrals the answer is a whole family, so a differentiated check has to be read carefully: dxd(F(x)+C)=F′(x) for every constant C, so the check confirms the antiderivative but cannot confirm the value of C — that constant is fixed by whatever condition the problem gave you, and it is the part most often lost.
Exercises
Basic Exercises
The first four problems use nothing but the power rule and the linearity of integration.
Exercise 1
Compute the indefinite integral ∫(3x2−2x+1)dx.
indefinite integralpower rulelinearity
Approach: Split the integrand into terms and apply the power rule to each term separately, then collect the results and restore the constant of integration.
Steps:
By linearity, ∫(3x2−2x+1)dx=3∫x2dx−2∫xdx+∫1dx.
Integrate each term with the power rule: 3⋅3x3=x3, −2⋅2x2=−x2, and ∫1dx=x.
Collect the terms and add the constant: x3−x2+x+C.
Check by differentiating: dxd(x3−x2+x+C)=3x2−2x+1.
Answer: x3−x2+x+C.
Exercise 2
Compute the indefinite integral ∫x21dx.
indefinite integralpower rulenegative exponent
Approach: Rewrite the integrand as a negative power and apply the power rule, remembering that the exponent −2 is not the excluded value −1.
Approach: Substitute u=3x so that the integrand becomes eu and the chain-rule factor 31 appears, then integrate the exponential.
Steps:
Substitute u=3x, so du=3dx and dx=31du.
Integrate: ∫e3xdx=31∫eudu=31eu+C.
Back-substitute: 31eu+C=31e3x+C.
Check by differentiating: dxd(31e3x)=31⋅3e3x=e3x.
Answer: 31e3x+C.
Exercise 4
Compute the indefinite integral ∫sinxdx.
indefinite integraltrigonometric integral
Approach: Use the basic formula ∫sinxdx=−cosx+C, which follows from the derivative dxd(−cosx)=sinx. The minus sign comes from the direction of differentiation.
Steps:
Recall that (cosx)′=−sinx, so −cosx is an antiderivative of sinx.
Add the constant of integration, since the indefinite integral denotes a whole family: −cosx+C.
Check by differentiating: dxd(−cosx+C)=sinx.
Answer: −cosx+C.
Intermediate Exercises
The next four still use the same toolkit, but the integrand has to be rewritten before it can be integrated: a substitution, a trigonometric identity, an inverse trigonometric formula, and a partial fraction decomposition.
Exercise 5
Compute the indefinite integral ∫xex2dx.
indefinite integralsubstitutionexponential integral
Approach: The numerator x is half the derivative of x2, so substitute u=x2 and the integral becomes an exponential one.
Steps:
Substitute u=x2, so du=2xdx and therefore xdx=21du.
Integrate: ∫xex2dx=21∫eudu=21eu+C.
Back-substitute: 21eu+C=21ex2+C.
Check by differentiating: dxd(21ex2)=21⋅2xex2=xex2.
Answer: 21ex2+C.
Exercise 6
Compute the indefinite integral ∫sin2xdx.
indefinite integraltrigonometric identity
Approach: The power-reduction identity sin2x=21−cos2x rewrites the square in terms of terms that can be integrated directly.
Steps:
Apply the identity: sin2x=21−cos2x.
Integrate term by term: ∫sin2xdx=21∫(1−cos2x)dx=21x−21⋅21sin2x+C=2x−41sin2x+C.
Check by differentiating: dxd(2x−41sin2x)=21−21cos2x=21−cos2x=sin2x.
Answer: 2x−41sin2x+C.
Exercise 7
Compute the indefinite integral ∫x2+11dx.
indefinite integralinverse trigonometric integral
Approach: The denominator 1+x2 is the signature of the inverse tangent: dxdarctanx=1+x21.
Steps:
Recognize the pattern: the integrand is the derivative of arctanx.
Integrate: ∫x2+11dx=arctanx+C, with the constant restored because the indefinite integral is a family.
Check by differentiating: dxd(arctanx+C)=1+x21.
Answer: arctanx+C.
Exercise 8
Compute the indefinite integral ∫x2−11dx.
indefinite integralpartial fractionsrational function
Approach: The denominator factors as x2−1=(x−1)(x+1), so decompose the integrand into partial fractions and integrate each simple term.
Steps:
Decompose: x2−11=(x−1)(x+1)1=21(x−11−x+11).
Integrate term by term: ∫x2−11dx=21(ln∣x−1∣−ln∣x+1∣)+C.
Combine the logarithms: 21lnx+1x−1+C.
Check by differentiating: dxd[21lnx+1x−1]=21(x−11−x+11)=x2−11.
Answer: 21lnx+1x−1+C, valid on any interval that does not contain x=±1.
Comprehensive Exercises
These four mix the tools above and require you to choose the right one; the last one reverses the direction and asks you to verify a claim instead of producing a result.
Exercise 9
Compute the indefinite integral ∫(x3+2x2+x+1)dx.
indefinite integralpower rulelinearity
Approach: This is the power rule applied to four separate terms: split the integrand by linearity, integrate each piece, and collect the results.
Steps:
By linearity, ∫(x3+2x2+x+1)dx=∫x3dx+2∫x2dx+∫xdx+∫1dx.
Integrate each term with the power rule: ∫x3dx=4x4, 2∫x2dx=2⋅3x3=32x3, ∫xdx=2x2, and ∫1dx=x.
Collect the terms and add the constant: 4x4+32x3+2x2+x+C.
Check by differentiating term by term: dxd(4x4)=x3, dxd(32x3)=2x2, dxd(2x2)=x, and dxd(x)=1, so the derivative is x3+2x2+x+1, exactly the integrand.
Answer: 4x4+32x3+2x2+x+C.
Exercise 10
Compute the indefinite integral ∫cos2xdx.
indefinite integraltrigonometric identity
Approach: Use the power-reduction identity cos2x=21+cos2x, which turns the square into a constant plus a cosine that integrates directly.
Steps:
Apply the identity: cos2x=21+cos2x.
Integrate term by term: ∫cos2xdx=21∫(1+cos2x)dx=21(x+21sin2x)+C=2x+41sin2x+C.
Check by differentiating: dxd(2x+41sin2x)=21+21cos2x=21+cos2x=cos2x.
Answer: 2x+41sin2x+C.
Exercise 11
Compute the indefinite integral ∫x2+1xdx.
indefinite integralsubstitutionlogarithm
Approach: The numerator x is half the derivative of x2+1, so substitute u=x2+1 and the integral becomes a plain logarithmic one.
Steps:
Substitute u=x2+1, so du=2xdx and therefore xdx=21du.
Integrate: ∫x2+1xdx=21∫u1du=21ln∣u∣+C.
Back-substitute: 21ln∣x2+1∣+C=21ln(x2+1)+C, where the absolute value may be dropped because x2+1≥1>0 for every real x.
Check by differentiating: dxd(21ln(x2+1))=21⋅x2+12x=x2+1x.
Answer: 21ln(x2+1)+C.
Exercise 12
Check whether the claimed antiderivative ∫(ex+sinx)dx=ex−cosx+C is correct.
indefinite integralverificationderivative
Approach: Instead of integrating, differentiate the proposed antiderivative and compare the result with the given integrand.
Steps:
Differentiate the right-hand side: dxd(ex−cosx+C)=ex+sinx.
Compare the two expressions:
Integrand: ex+sinx
Derivative of the claim: ex+sinx
The derivative reproduces the integrand exactly, so the claim is correct; the only freedom left is the arbitrary constant C, which the indefinite integral must carry.
Answer: The claimed antiderivative is correct: ∫(ex+sinx)dx=ex−cosx+C.
Challenge Exercises
The last three go beyond the standard table and ask for a genuine technique: an inverse trigonometric formula, a trigonometric identity combined with a substitution, and a completed square followed by a substitution.
Exercise 13
Compute the indefinite integral ∫1−x21dx.
indefinite integralinverse trigonometric integral
Approach: The integrand is the derivative of the inverse sine: dxdarcsinx=1−x21, so the antiderivative is arcsinx.
Steps:
Recognize the pattern: for ∣x∣<1, dxdarcsinx=1−x21.
Integrate: ∫1−x21dx=arcsinx+C, with the constant restored because the indefinite integral is a family.
Check by differentiating with the chain rule: dxdarcsinx=1−(sin(arcsinx))21⋅(sin(arcsinx))′=1−x21.
Note the domain: the integrand is real only for ∣x∣<1, so the antiderivative is valid on that interval.
Check by differentiating: dxd(−ln∣cosx∣)=−cosx1⋅(−sinx)=cosxsinx=tanx.
Answer: −ln∣cosx∣+C, valid on any interval that does not contain a zero of cosx.
Exercise 15
Compute the indefinite integral ∫x2+2x+11dx.
indefinite integralcompleting the squaresubstitution
Approach: Complete the square in the denominator to get (x+1)2, then substitute u=x+1 so that the integral becomes a power integral.
Steps:
Complete the square: x2+2x+1=(x+1)2, so ∫x2+2x+11dx=∫(x+1)−2dx.
Substitute u=x+1, so du=dx.
Integrate with the power rule: ∫u−2du=−1u−1+C=−u1+C.
Back-substitute: −x+11+C.
Check by differentiating: dxd(−x+11)=(x+1)21=x2+2x+11.
Answer: −x+11+C, valid on any interval that does not contain x=−1.
Summary
The fifteen problems above cover the whole basic toolkit for indefinite integration, and the progression is worth noticing. Exercises 1 and 2 are pure recognition: name the family the integrand belongs to and apply the matching formula. Exercise 3 shows the chain rule appearing for the first time, and once you have seen it, the integrand in Exercise 5 is transparent, because there too a function is sitting next to its own derivative. Exercise 6 adds the idea that a squared trigonometric function is really a linear combination in disguise, and Exercises 7 and 8 move to integrands that no single basic formula matches and have to be rewritten before they can be integrated. The comprehensive group then puts several of those ideas in the same problem: Exercise 9 asks for a polynomial with mixed powers, Exercise 10 for a squared trigonometric function in its simplest form, Exercise 11 for a rational function whose derivative sits in the numerator, and Exercise 12 asks you to verify a claimed antiderivative rather than produce one. The last three are the ones that need a genuine technique — an inverse trigonometric formula in Exercise 13, a trigonometric identity in Exercise 14, and a completed square in Exercise 15.
Two habits run through every solution. The constant C is always restored, because an indefinite integral is a family and not a single function. And the answer is always verified by differentiating it, because that check reproduces the integrand exactly and catches sign errors, missing constants and forgotten factors in one step.