Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.7 · Q1: Second derivative of x2+3x+2x^2+3x+2

Exercise 5.7Second order derivative · Section 5.7
The question

Find the second order derivatives of the functions given in Exercises 1 to 10.

1. x2+3x+2x^2 + 3x + 2

Exam answer

Let y=x2+3x+2y = x^2 + 3x + 2⁠. Then

dydx=2x+3\frac{dy}{dx} = 2x + 3

∴ d2ydx2=2\therefore\ \dfrac{d^2y}{dx^2} = 2

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

The one idea this problem is built on

The second order derivative is the derivative of the derivative:

d2ydx2=ddx(dydx).\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right).

So we differentiate twice, one term at a time. Each differentiation lowers every power of xx by one, so the quadratic becomes a linear expression and then a constant.

Given, to find, and the plan
Given
y=x2+3x+2y = x^2 + 3x + 2⁠, a polynomial, defined and differentiable for every real xx⁠.
To find
d2ydx2\dfrac{d^2y}{dx^2}⁠.
Plan
(1) State the domain. (2) Find dydx\frac{dy}{dx} term by term with the sum rule, the power rule and the constant rule. (3) Differentiate dydx\frac{dy}{dx} again with the same rules.

Basics you need

1Sum rule and constant multiples

(u±v)′=u′±v′(u \pm v)' = u' \pm v' (Section 5.3, rule (1)), and a constant factor stays in front: (cu)′=c u′(cu)' = c\,u'⁠. So a polynomial is differentiated one term at a time. Basics: derivative rules

2Power rule and constants

ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1} (Table 5.3). In particular ddxx=1\frac{d}{dx}x = 1⁠. The derivative of a constant is 00⁠, because a constant does not change.

3Second order derivative (Section 5.7)

If y=f(x)y = f(x) and dydx=f′(x)\frac{dy}{dx} = f'(x) is itself differentiable, then d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)⁠, also written f′′(x)f''(x)⁠, y′′y'' or y2y_2⁠. Lesson: second order derivative

Solution

  1. Name the function and its domain

    Let y=x2+3x+2y = x^2 + 3x + 2⁠. This is a polynomial, so it is defined for every real xx⁠, and so are all its derivatives. The answer will therefore hold for every x∈Rx \in \mathbf{R}⁠.

    A derivative only makes sense where the function is defined. Polynomials have no denominators, square roots or logarithms, so there is nothing to exclude.
    Polynomials are differentiable at every real number. Basics: derivative rules
  2. First derivative, term by term

    By the sum rule, differentiate each of the three terms separately:

    dydx=ddx(x2)+ddx(3x)+ddx(2)=2x+3⋅1+0=2x+3.\begin{aligned} \frac{dy}{dx} &= \frac{d}{dx}(x^2) + \frac{d}{dx}(3x) + \frac{d}{dx}(2) \\ &= 2x + 3\cdot 1 + 0 \\ &= 2x + 3. \end{aligned}
    The power rule with n=2n = 2 gives 2x1=2x2x^{1} = 2x⁠. For 3x3x⁠, the constant 3 stays in front and ddxx=1\frac{d}{dx}x = 1⁠. The constant 2 has derivative 0: it does not change as xx changes, so its rate of change is zero.
    Sum rule (Section 5.3, rule (1)); power rule ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1} (Table 5.3).
  3. Second derivative: differentiate dydx\frac{dy}{dx} again

    Now apply the same rules to dydx=2x+3\frac{dy}{dx} = 2x + 3⁠:

    d2ydx2=ddx(2x+3)=ddx(2x)+ddx(3)=2⋅1+0=2.\begin{aligned} \frac{d^2y}{dx^2} &= \frac{d}{dx}(2x + 3) \\ &= \frac{d}{dx}(2x) + \frac{d}{dx}(3) \\ &= 2\cdot 1 + 0 = 2. \end{aligned}

    So d2ydx2=2\dfrac{d^2y}{dx^2} = 2 for every real xx⁠.

    The second derivative is by definition the derivative of the first derivative, so we differentiate the expression found in Step 2, not the original yy⁠. Sum rule again; 2x2x gives 2 (constant times ddxx=1\frac{d}{dx}x = 1⁠); the constant 3 gives 0.
    Section 5.7: d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)⁠. Lesson: second order derivative
  4. What the answer means

    dydx=2x+3\frac{dy}{dx} = 2x + 3 is the slope of the graph of yy⁠. The second derivative 2 says this slope increases at the steady rate of 2 per unit of xx⁠: for example the slope is 33 at x=0x = 0⁠, 55 at x=1x = 1 and 77 at x=2x = 2⁠. A positive second derivative everywhere matches the shape of this parabola, which opens upward.

    For any quadratic ax2+bx+cax^2 + bx + c the same two steps give 2ax+b2ax + b and then 2a2a⁠: the second derivative of a quadratic is always the constant 2a2a⁠. Here a=1a = 1⁠.
Result

For y=x2+3x+2y = x^2 + 3x + 2 (all real xx⁠):

dydx=2x+3,d2ydx2=2.\frac{dy}{dx} = 2x + 3, \qquad \frac{d^2y}{dx^2} = 2.

(Textbook answer: 2.)

Check it with numbers

The second difference y(a+h)−2y(a)+y(a−h)h2\frac{y(a+h) - 2y(a) + y(a-h)}{h^2} approximates y′′(a)y''(a)⁠. At a=1a = 1⁠, h=0.001h = 0.001⁠: y(1.001)=6.005001y(1.001) = 6.005001⁠, y(1)=6y(1) = 6⁠, y(0.999)=5.995001y(0.999) = 5.995001⁠, so

6.005001−12+5.9950010.000001=0.0000020.000001=2.\begin{aligned} &\frac{6.005001 - 12 + 5.995001}{0.000001} \\ &= \frac{0.000002}{0.000001} = 2. \end{aligned}

For a quadratic this is exact for every aa and hh⁠: the 3x3x and 22 parts cancel and (a+h)2−2a2+(a−h)2=2h2(a+h)^2 - 2a^2 + (a-h)^2 = 2h^2⁠. Also the first difference y(1.001)−y(0.999)0.002\frac{y(1.001) - y(0.999)}{0.002} equals 0.010.002=5\frac{0.01}{0.002} = 5⁠, which is 2(1)+32(1) + 3⁠. ✓

Common mistakes
  1. Differentiating the original function twice "in one go" and losing a term. Write down dydx\frac{dy}{dx} in full first, then differentiate that expression.
  2. Treating the constant 2 as having derivative 2 (or 1). The derivative of any constant is 0.
  3. Writing d2ydx2\frac{d^2y}{dx^2} as (dydx)2\left(\frac{dy}{dx}\right)^2⁠. (2x+3)2(2x+3)^2 is the square of the slope, not the second derivative.
What to take away
  1. Second derivative = derivative of the first derivative; always find dydx\frac{dy}{dx} completely first.
  2. For a quadratic ax2+bx+cax^2 + bx + c⁠, y′′=2ay'' = 2a⁠, a constant.
  3. Second differences y(a+h)−2y(a)+y(a−h)h2\frac{y(a+h) - 2y(a) + y(a-h)}{h^2} give a quick numerical check of y′′(a)y''(a)⁠.

Every fact used, and where it comes from

FactUsed inSource
(u±v)′=u′±v′(u \pm v)' = u' \pm v'⁠; (cu)′=cu′(cu)' = cu'Steps 2, 3Section 5.3, rule (1) (algebra of derivatives, Class XI)
ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}⁠; derivative of a constant is 0Steps 2, 3Table 5.3, Section 5.3 (Basics: derivative rules)
d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)Step 3Section 5.7 (Lesson: second order derivative)
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 →