Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.1 · Q4: An anti derivative of (ax+b)2(ax+b)^2

Exercise 7.1Integration by inspection · Section 7.2
The question

Find an anti derivative (or integral) of the following function by the method of inspection.

(ax+b)2(ax + b)^2
Exam answer

We know that ddx(ax+b)3\frac{d}{dx}(ax + b)^3 =3a(ax+b)2= 3a(ax + b)^2⁠.

∴ (ax+b)2=ddx((ax+b)33a)\therefore\ (ax + b)^2 = \frac{d}{dx}\left(\frac{(ax + b)^3}{3a}\right)

∴\therefore An anti derivative of (ax+b)2(ax + b)^2 is 13a(ax+b)3\dfrac{1}{3a}(ax + b)^3⁠, and ∫(ax+b)2 dx\int(ax + b)^2\,dx =13a(ax+b)3+C= \dfrac{1}{3a}(ax + b)^3 + C (a≠0a \ne 0⁠).

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Treat ax+bax + b as a single block. Powers go up by one when we integrate, so try the cube (ax+b)3(ax+b)^3⁠. Its derivative is 3(ax+b)2⋅a3(ax+b)^2\cdot a⁠: the 33 comes from the power rule and the aa from the chain rule. Dividing by 3a3a leaves exactly (ax+b)2(ax+b)^2⁠. This needs a≠0a \ne 0⁠; when a=0a = 0 the function is just the constant b2b^2⁠.

Given, to find, and the plan
Given
f(x)=(ax+b)2f(x) = (ax+b)^2⁠, where aa and bb are real constants; ff is defined for every real xx⁠.
To find
One function FF with F′(x)=(ax+b)2F'(x) = (ax+b)^2⁠.
Plan
(1) Guess (ax+b)3(ax+b)^3 and differentiate it with the chain rule. (2) Divide by the factor 3a3a (for a≠0a \ne 0⁠). (3) Check by differentiating back. (4) Deal with a=0a = 0⁠. (5) Compare with the answer obtained by expanding the square.

Basics you need

1Power rule, both ways

ddxxn=nxn−1\frac{d}{dx}x^{n} = nx^{n-1}⁠, and so ∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C for n≠−1n \ne -1 (item (i) of the standard formulae, Section 7.2). Integrating raises the power by one and divides by the new power. Basics: powers of x and the power rule

2The chain rule

ddx u(x)3=3u(x)2 u′(x)\frac{d}{dx}\,u(x)^3 = 3u(x)^2\,u'(x)⁠. For u=ax+bu = ax + b⁠, u′=au' = a⁠. Basics: the chain rule backwards

3Anti derivatives differ by constants

Two anti derivatives of the same function on an interval differ by a constant, so two correct answers may look different. Lesson: integration as anti differentiation

Solution

  1. Guess (ax+b)3(ax+b)^3 and differentiate it

    Inner function u=ax+bu = ax + b⁠, with dudx=a\frac{du}{dx} = a⁠; outer function u3u^3⁠, with derivative 3u23u^2⁠. By the chain rule,

    ddx(ax+b)3=3u2⋅dudx=3(ax+b)2⋅a=3a (ax+b)2.\begin{aligned} \frac{d}{dx}(ax+b)^3 &= 3u^2\cdot\frac{du}{dx} \\ &= 3(ax+b)^2\cdot a \\ &= 3a\,(ax+b)^2. \end{aligned}

    The guess gives (ax+b)2(ax+b)^2 multiplied by the constant 3a3a⁠.

    The power rule for integrals says a square comes from a cube, so the cube of the same block ax+bax+b is the natural candidate. Differentiating it shows two extra factors: 33 from bringing the power down, and aa from the inner function ax+bax + b⁠.
    Power rule with the chain rule: ddxu3=3u2u′\frac{d}{dx}u^3 = 3u^2u' (Table 5.3 and Theorem 4, Section 5.3.1 of Chapter 5). Basics: the chain rule backwards
  2. Divide by 3a3a (when a≠0a \ne 0⁠)

    If a≠0a \ne 0⁠, multiply the guess by the constant 13a\frac{1}{3a}⁠:

    ddx[(ax+b)33a]=3a(ax+b)23a=(ax+b)2.\frac{d}{dx}\left[\frac{(ax+b)^3}{3a}\right] = \frac{3a(ax+b)^2}{3a} = (ax+b)^2.

    So, for a≠0a \ne 0⁠, (ax+b)33a\dfrac{(ax+b)^3}{3a} is an anti derivative of (ax+b)2(ax+b)^2.

    A constant factor passes through differentiation, so multiplying by 13a\frac{1}{3a} divides the derivative by 3a3a and cancels both extra factors at once. We may divide by 3a3a only because a≠0a \ne 0⁠; that is why this case is stated separately.
    Constant factor rule for derivatives (Section 5.3). Basics: the power rule
  3. Check: differentiate the answer back

    Let F(x)=13a(ax+b)3F(x) = \frac{1}{3a}(ax+b)^3 with a≠0a \ne 0⁠. Then

    F′(x)=13a⋅3(ax+b)2⋅a=(ax+b)2.  ✓\begin{aligned} F'(x) &= \frac{1}{3a}\cdot 3(ax+b)^2\cdot a \\ &= (ax+b)^2. \;\checkmark \end{aligned}
    The derivative equals the given function for every real xx⁠, so FF is an anti derivative on the whole real line.
    Property (I), Section 7.2.1. Basics: integration undoes differentiation
  4. The case a=0a = 0

    If a=0a = 0⁠, the function is the constant (0⋅x+b)2=b2(0\cdot x + b)^2 = b^2⁠, and the formula of Step 2 cannot be used (it would divide by 00⁠). A constant kk has the anti derivative kxkx⁠, so

    ddx(b2x)=b2,an anti derivative is b2x.\frac{d}{dx}\left(b^2x\right) = b^2, \quad\text{an anti derivative is } b^2x.
    The question does not say a≠0a \ne 0⁠, and the textbook answer 13a(ax+b)3\frac{1}{3a}(ax+b)^3 silently assumes it. Covering a=0a = 0 makes the answer complete: in that case ax+bax + b does not depend on xx at all.
    ∫k dx=kx+C\int k\,dx = kx + C⁠: item (i) of the standard formulae (∫dx=x+C\int dx = x + C⁠) with Property (IV), Section 7.2.1. Basics: the power rule
  5. Another route: expand first, then compare

    Expanding the square gives a polynomial, which we can integrate term by term with the power rule:

    (ax+b)2=a2x2+2abx+b2,∫(ax+b)2 dx=a2x33+abx2+b2x+C.\begin{aligned} (ax+b)^2 &= a^2x^2 + 2abx + b^2, \\ \int (ax+b)^2\,dx &= \frac{a^2x^3}{3} + abx^2 + b^2x + C. \end{aligned}

    This looks different from Step 2, but for a≠0a \ne 0 the two differ only by a constant:

    (ax+b)33a=a3x3+3a2bx2+3ab2x+b33a=a2x33+abx2+b2x+b33a.\begin{aligned} \frac{(ax+b)^3}{3a} &= \frac{a^3x^3 + 3a^2bx^2 + 3ab^2x + b^3}{3a} \\ &= \frac{a^2x^3}{3} + abx^2 + b^2x + \frac{b^3}{3a}. \end{aligned}
    Two anti derivatives of the same function on an interval can differ only by a constant. Here the constant is b33a\frac{b^3}{3a}⁠, which is absorbed into CC⁠. The expanded form has the advantage that it also covers a=0a = 0⁠: it then reduces to b2x+Cb^2x + C⁠, agreeing with Step 4.
    (p+q)2=p2+2pq+q2(p+q)^2 = p^2 + 2pq + q^2 and (p+q)3=p3+3p2q(p+q)^3 = p^3 + 3p^2q + 3pq2+q3+\, 3pq^2 + q^3⁠; Property (V), Section 7.2.1, for integrating term by term. Lesson: integration as anti differentiation
Result

For a≠0a \ne 0⁠, an anti derivative of (ax+b)2(ax+b)^2 is

13a(ax+b)3,∫(ax+b)2 dx=(ax+b)33a+C.\begin{gathered} \frac{1}{3a}(ax+b)^3, \\ \int (ax+b)^2\,dx = \frac{(ax+b)^3}{3a} + C. \end{gathered}

For a=0a = 0 the function is the constant b2b^2⁠, with anti derivative b2xb^2x⁠. Valid for every real xx⁠. (Textbook answer: 13a(ax+b)3\frac{1}{3a}(ax+b)^3⁠.)

Check it with numbers

Take a=2a = 2⁠, b=1b = 1⁠, so F(x)=(2x+1)36F(x) = \frac{(2x+1)^3}{6} and f(x)=(2x+1)2f(x) = (2x+1)^2⁠. At x=1x = 1 with h=0.001h = 0.001⁠:

F(1.001)−F(0.999)0.002=4.509006001−4.4910059990.002≈9.000001.\begin{aligned} &\frac{F(1.001) - F(0.999)}{0.002} \\ &= \frac{4.509006001 - 4.491005999}{0.002} \\ &\approx 9.000001. \end{aligned}

The integrand is f(1)=32=9f(1) = 3^2 = 9⁠. ✓ The expanded form 43x3+2x2+x\frac43x^3 + 2x^2 + x gives 43+2+1=4.3333…\frac43 + 2 + 1 = 4.3333\ldots at x=1x = 1⁠, while F(1)=276=4.5F(1) = \frac{27}{6} = 4.5⁠: they differ by 16=b33a\frac{1}{6} = \frac{b^3}{3a}⁠, the constant found in Step 5.

Common mistakes
  1. Forgetting the inner factor aa⁠. (ax+b)33\frac{(ax+b)^3}{3} differentiates to a(ax+b)2a(ax+b)^2⁠, which is wrong unless a=1a = 1⁠.
  2. Expanding and then dropping the middle term. (ax+b)2(ax+b)^2 is not a2x2+b2a^2x^2 + b^2⁠; the cross term 2abx2abx must stay.
  3. Thinking the two forms disagree. (ax+b)33a\frac{(ax+b)^3}{3a} and a2x33+abx2+b2x\frac{a^2x^3}{3} + abx^2 + b^2x are both correct; their difference is the constant b33a\frac{b^3}{3a}⁠.
What to take away
  1. For a≠0a \ne 0 and n≠−1n \ne -1⁠: ∫(ax+b)n dx=(ax+b)n+1a(n+1)+C\int (ax+b)^n\,dx = \frac{(ax+b)^{n+1}}{a(n+1)} + C⁠.
  2. A linear inner function ax+bax + b costs a factor 1a\frac1a when integrating.
  3. Different-looking answers can both be right; check that their difference is a constant.

Every fact used, and where it comes from

FactUsed inSource
ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}⁠; ∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C⁠, n≠−1n \ne -1Steps 1, 5Table 5.3 (Chapter 5); standard formulae, item (i), Section 7.2
Chain ruleSteps 1, 3Theorem 4, Section 5.3.1 (Chapter 5)
ddx(kF)=kF′\frac{d}{dx}(kF) = kF'Step 2Algebra of derivatives, Section 5.3 (product rule with a constant factor)
Differentiation and integration undo each otherStep 3Property (I), Section 7.2.1
∫dx=x+C\int dx = x + C⁠; ∫kf=k∫f\int kf = k\int fStep 4Standard formulae, item (i), Section 7.2; Property (IV), Section 7.2.1
Integrate term by termStep 5Property (V), Section 7.2.1
Anti derivatives differ by a constantStep 5Remark, Section 7.2 (Lesson: anti differentiation)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →