Skip to content
Worked Examples · Example 35

Q.Find d2ydx2\frac{d^2y}{dx^2}, if y=x3+tan⁡xy = x^3 + \tan x.

Yanam CbseNCERTSubjective· 3mImportance★★★★★
47% · 133/281 Questions
✓ Free question

Since yy is a simple sum of a polynomial and a trigonometric function, we differentiate term-by-term twice. The second derivative is d2ydx2=6x+2sec⁡2xtan⁡x\frac{d^2y}{dx^2} = 6x + 2\sec^2 x \tan x.

The question asks for d2ydx2\frac{d^2y}{dx^2}, the second derivative of yy with respect to xx. When a function is given explicitly as y=f(x)y = f(x), the second derivative is just the derivative of the first derivative. There’s no chain rule complication here — each term is standard.

Why this works:

The second derivative measures the rate of change of the slope. For y=x3+tan⁡xy = x^3 + \tan x, both x3x^3 and tan⁡x\tan x are differentiable everywhere (except at points where tan⁡x\tan x blows up, but the formula itself is valid wherever the function is defined). We just differentiate twice, carefully handling the derivative of tan⁡x\tan x.


  1. First derivative Differentiate term by term:

dydx=ddx(x3)+ddx(tan⁡x)\frac{dy}{dx} = \frac{d}{dx}(x^3) + \frac{d}{dx}(\tan x)

We know ddx(x3)=3x2\frac{d}{dx}(x^3) = 3x^2 and ddx(tan⁡x)=sec⁡2x\frac{d}{dx}(\tan x) = \sec^2 x.

So

dydx=3x2+sec⁡2x.\frac{dy}{dx} = 3x^2 + \sec^2 x.

  1. Second derivative Now differentiate dydx\frac{dy}{dx}:

d2ydx2=ddx(3x2)+ddx(sec⁡2x).\frac{d^2y}{dx^2} = \frac{d}{dx}(3x^2) + \frac{d}{dx}(\sec^2 x).

The first part is easy: ddx(3x2)=6x\frac{d}{dx}(3x^2) = 6x.

For ddx(sec⁡2x)\frac{d}{dx}(\sec^2 x), recall that sec⁡2x=(sec⁡x)2\sec^2 x = (\sec x)^2. Use the chain rule:

ddx(sec⁡2x)=2sec⁡x⋅ddx(sec⁡x)=2sec⁡x⋅(sec⁡xtan⁡x)=2sec⁡2xtan⁡x.\frac{d}{dx}(\sec^2 x) = 2\sec x \cdot \frac{d}{dx}(\sec x) = 2\sec x \cdot (\sec x \tan x) = 2\sec^2 x \tan x.

(If you prefer, you can also remember the direct formula: ddx(sec⁡2x)=2sec⁡2xtan⁡x\frac{d}{dx}(\sec^2 x) = 2\sec^2 x \tan x.)

  1. Combine

d2ydx2=6x+2sec⁡2xtan⁡x.\frac{d^2y}{dx^2} = 6x + 2\sec^2 x \tan x.

Watch out

A common mistake is to forget the chain rule on sec⁡2x\sec^2 x and write its derivative as 2sec⁡x2\sec x or 2sec⁡xtan⁡x2\sec x \tan x (missing one factor of sec⁡x\sec x). Always treat sec⁡2x\sec^2 x as (sec⁡x)2(\sec x)^2 and differentiate the outer square first.

Tip

If you ever forget the derivative of tan⁡x\tan x, derive it: tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}, then use quotient rule to get sec⁡2x\sec^2 x. Similarly, ddx(sec⁡x)=sec⁡xtan⁡x\frac{d}{dx}(\sec x) = \sec x \tan x comes from sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}.

✓Final answer

The second derivative is 6x+2sec⁡2xtan⁡x\boxed{6x + 2\sec^2 x \tan x}.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.