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

Continuity and differentiability, the quick way

Continuity means no break in the graph. The rest of the chapter is finding derivatives, and nine moves cover most questions.

Start here

The chapter in one minute

What continuity and derivatives are, and what the exam asks.

A function is continuous at a point when its graph has no break there. To test it, you compare three numbers: the left-hand limit, the right-hand limit and the value.

A function is differentiable at a point when it has a derivative (a slope) there. A break or a sharp corner in the graph stops this.

Most of the chapter is about finding derivatives of harder functions: a function inside a function, an equation that mixes xx and yy⁠, xx in a power, and curves given by a parameter.

Most exam questions on this chapter are one of nine kinds, and each kind has a fixed recipe. You will learn all nine below.

9question types
13formula cards
3numbers that must match for continuity: LHL, RHL and the value
1rule behind most of the chapter: the chain rule
Formulas

The formulas you must know

Learn these cards. Almost everything in the chapter is built from them.

Continuity at cc
lim⁡x→c−f(x)=lim⁡x→c+f(x)=f(c)\begin{aligned} &\lim_{x\to c^-} f(x) \\ &= \lim_{x\to c^+} f(x) \\ &= f(c) \end{aligned}

Left-hand limit, right-hand limit and value: all three equal means continuous.

Derivative at cc
f′(c)=lim⁡h→0f(c+h)−f(c)h\begin{aligned} &f'(c) \\ &= \lim_{h\to0}\frac{f(c + h) - f(c)}{h} \end{aligned}

With hh negative this is the LHD, with hh positive the RHD. Equal means differentiable.

Chain rule
dydx=dydt⋅dtdx\frac{dy}{dx} = \frac{dy}{dt}\cdot\frac{dt}{dx}

Differentiate the outside, keep the inside, then multiply by the derivative of the inside.

Product rule
(uv)′=u′v+uv′(uv)' = u'v + uv'

You need it for terms like xyxy and xlog⁡xx\log x⁠.

Quotient rule
(uv)′=u′v−uv′v2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}

Derivative of the top comes first on top.

Powers and trig
ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n - 1}

Also (sin⁡x)′=cos⁡x(\sin x)' = \cos x⁠, (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x and (tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x⁠.

Exponential and log
ddxex=ex\frac{d}{dx}e^x = e^x

Also ddxlog⁡x=1x\frac{d}{dx}\log x = \frac{1}{x} for x>0x > 0⁠, and ddxax=axlog⁡a\frac{d}{dx}a^x = a^x\log a for a>0a > 0⁠.

Inverse sine
ddxsin⁡−1x=11−x2\frac{d}{dx}\sin^{-1}x = \frac{1}{\sqrt{1 - x^2}}

Inverse cosine is the same with a minus sign: ddxcos⁡−1x=−11−x2\frac{d}{dx}\cos^{-1}x = -\frac{1}{\sqrt{1 - x^2}}⁠. Both hold for −1<x<1-1 < x < 1⁠.

Inverse tan
ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}

The one used most, often after putting x=tan⁡θx = \tan\theta⁠.

A yy term
ddx(y2)=2ydydx\frac{d}{dx}(y^2) = 2y\frac{dy}{dx}

Treat yy as a function of xx⁠: every yy term you differentiate gets a dydx\frac{dy}{dx}⁠.

Log of yy
ddxlog⁡y=1ydydx\frac{d}{dx}\log y = \frac{1}{y}\frac{dy}{dx}

The key step of logarithmic differentiation.

Parametric form
dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt}

The derivative of yy goes on top. It needs dxdt≠0\frac{dx}{dt} \ne 0⁠.

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

Differentiate twice. Also written y′′y'' or y2y_2⁠.

Question types

The question types and how to crack each one

For each type: how to spot it, what to do, and one real NCERT question worked the exam way.

1. Is ff continuous at the joint? Compare three numbers

Spot it: ff is given in pieces, and you are asked where it is continuous, or where it breaks.

  1. Away from the joint, each piece is a polynomial (or another continuous function), so ff is continuous there.
  2. At the joint cc⁠, find three numbers: LHL from the piece for x<cx < c⁠, RHL from the piece for x>cx > c⁠, and f(c)f(c) from the piece that includes cc⁠.
  3. All three equal: continuous at cc⁠. Any two different: not continuous at cc⁠.

Exercise 5.1 Q6. Find all points of discontinuity of ff⁠, where

f(x)={2x+3,x≤22x−3,x>2f(x) = \begin{cases} 2x + 3, & x \le 2 \\ 2x - 3, & x > 2 \end{cases}

Both pieces are polynomials, so ff is continuous at every x≠2x \ne 2⁠. At x=2x = 2⁠,

LHL=lim⁡h→0(2(2−h)+3)=7RHL=lim⁡h→0(2(2+h)−3)=1\begin{aligned} \text{LHL} &= \lim_{h\to0}\big(2(2 - h) + 3\big) \\ &= 7 \\ \text{RHL} &= \lim_{h\to0}\big(2(2 + h) - 3\big) \\ &= 1 \end{aligned}

and f(2)=2(2)+3=7f(2) = 2(2) + 3 = 7⁠. Since LHL≠RHL\text{LHL} \ne \text{RHL}⁠, ff is not continuous at x=2x = 2⁠.

∴ x=2x = 2 is the only point of discontinuity

In past papers (4): click to see

2. Find kk so that ff is continuous

Spot it: a function in pieces with an unknown kk (or aa and bb⁠), and the words "find the value of kk".

  1. Find f(c)f(c)⁠, LHL and RHL at the joint, each in terms of kk⁠.
  2. Write the condition for continuity: LHL=RHL=f(c)\text{LHL} = \text{RHL} = f(c)⁠.
  3. Solve the equation for kk⁠.

Exercise 5.1 Q27. Find kk so that ff is continuous at x=2x = 2⁠, where

f(x)={kx2,x≤23,x>2f(x) = \begin{cases} kx^2, & x \le 2 \\ 3, & x > 2 \end{cases} f(2)=k(2)2=4kLHL=lim⁡h→0k(2−h)2=4kRHL=lim⁡h→03=3\begin{aligned} f(2) &= k(2)^2 = 4k \\ \text{LHL} &= \lim_{h\to0}k(2 - h)^2 \\ &= 4k \\ \text{RHL} &= \lim_{h\to0}3 = 3 \end{aligned}

For continuity at x=2x = 2⁠, LHL=RHL=f(2)\text{LHL} = \text{RHL} = f(2)⁠. So

4k=34k = 3

∴ k=34k = \frac{3}{4}

In past papers (7): click to see

3. Is ff differentiable at a point? Compare LHD and RHD

Spot it: a modulus such as ∣x−1∣|x - 1|⁠, or a function in pieces, and the word "differentiable".

  1. Work out f(c)f(c) and f(c+h)f(c + h) in their simplest form.
  2. LHD: divide f(c+h)−f(c)f(c + h) - f(c) by hh and let hh go to 0 from below (hh negative, so ∣h∣|h| is −h-h⁠). RHD: the same from above (∣h∣|h| is hh⁠).
  3. LHD and RHD equal: differentiable. Different: not differentiable (the graph has a corner).

Exercise 5.2 Q9. Prove that f(x)=∣x−1∣f(x) = |x - 1| is not differentiable at x=1x = 1⁠.

Here f(1)=0f(1) = 0 and f(1+h)=∣h∣f(1 + h) = |h|⁠.

LHD=lim⁡h→0−∣h∣h=lim⁡h→0−−hh=−1RHD=lim⁡h→0+∣h∣h=lim⁡h→0+hh=1\begin{aligned} \text{LHD} &= \lim_{h\to0^-}\frac{|h|}{h} \\ &= \lim_{h\to0^-}\frac{-h}{h} = -1 \\ \text{RHD} &= \lim_{h\to0^+}\frac{|h|}{h} \\ &= \lim_{h\to0^+}\frac{h}{h} = 1 \end{aligned}

∴ LHD≠RHD\text{LHD} \ne \text{RHD}⁠, so ff is not differentiable at x=1x = 1

In past papers (8): click to see

4. The chain rule: a function inside a function

Spot it: something other than a plain xx inside sin⁡\sin⁠, cos⁡\cos⁠, log⁡\log⁠, ee or a power, like sin⁡(x2+5)\sin(x^2 + 5) or ecos⁡xe^{\cos x}⁠.

  1. Name the inside: put tt equal to it.
  2. Differentiate the outside with respect to tt⁠, and the inside with respect to xx⁠.
  3. Multiply the two, then put the inside back in place of tt⁠.

Exercise 5.2 Q1. Differentiate sin⁡(x2+5)\sin(x^2 + 5)⁠.

Let y=sin⁡(x2+5)y = \sin(x^2 + 5)⁠. Put t=x2+5t = x^2 + 5⁠, so y=sin⁡ty = \sin t⁠.

Then dydt=cos⁡t\frac{dy}{dt} = \cos t and dtdx=2x\frac{dt}{dx} = 2x⁠.

dydx=dydt⋅dtdx=cos⁡t⋅2x\begin{aligned} \frac{dy}{dx} &= \frac{dy}{dt}\cdot\frac{dt}{dx} \\ &= \cos t\cdot 2x \end{aligned}

∴ dydx=2xcos⁡(x2+5)\frac{dy}{dx} = 2x\cos(x^2 + 5)

In past papers (4): click to see

5. Implicit: xx and yy mixed in one equation

Spot it: an equation such as x2+xy+y2=100x^2 + xy + y^2 = 100 that you cannot easily solve for yy⁠.

  1. Differentiate every term on both sides with respect to xx⁠.
  2. Each yy term gets a dydx\frac{dy}{dx}⁠: y2y^2 gives 2ydydx2y\frac{dy}{dx}⁠, and xyxy needs the product rule.
  3. Bring the dydx\frac{dy}{dx} terms to one side, take dydx\frac{dy}{dx} out as a common factor, and divide.

Exercise 5.3 Q5. Find dydx\frac{dy}{dx} if x2+xy+y2=100x^2 + xy + y^2 = 100⁠.

Differentiate both sides with respect to xx⁠:

2x+y+xdydx+2ydydx=0\begin{aligned} &2x + y + x\frac{dy}{dx} \\ &\quad + 2y\frac{dy}{dx} = 0 \end{aligned} (x+2y)dydx=−(2x+y)(x + 2y)\frac{dy}{dx} = -(2x + y)

∴ dydx=−2x+yx+2y\frac{dy}{dx} = -\frac{2x + y}{x + 2y}

In past papers (6): click to see

6. Inverse trig of a fraction: put x=tan⁡θx = \tan\theta first

Spot it: sin⁡−1\sin^{-1}⁠, cos⁡−1\cos^{-1} or tan⁡−1\tan^{-1} of a fraction such as 2x1+x2\frac{2x}{1 + x^2} or 1−x21+x2\frac{1 - x^2}{1 + x^2}⁠.

  1. Spot a formula in tan⁡θ\tan\theta hiding in the fraction, and put x=tan⁡θx = \tan\theta⁠.
  2. Use the given interval to see where 2θ2\theta lies, then simplify, for example cos⁡−1(cos⁡2θ)\cos^{-1}(\cos 2\theta) to 2θ2\theta⁠.
  3. Write yy in xx (here 2tan⁡−1x2\tan^{-1}x⁠) and differentiate with the inverse-tan card.

Exercise 5.3 Q11. Find dydx\frac{dy}{dx} if y=cos⁡−11−x21+x2y = \cos^{-1}\frac{1 - x^2}{1 + x^2}⁠, 0<x<10 < x < 1⁠.

Put x=tan⁡θx = \tan\theta⁠. As 0<x<10 < x < 1⁠, 0<2θ<π20 < 2\theta < \frac{\pi}{2}⁠.

y=cos⁡−11−tan⁡2θ1+tan⁡2θ=cos⁡−1(cos⁡2θ)=2θ=2tan⁡−1x\begin{aligned} y &= \cos^{-1}\frac{1 - \tan^2\theta}{1 + \tan^2\theta} \\ &= \cos^{-1}(\cos 2\theta) = 2\theta \\ &= 2\tan^{-1}x \end{aligned}

∴ dydx=21+x2\frac{dy}{dx} = \frac{2}{1 + x^2}

In past papers (1): click to see

7. Logarithmic differentiation: xx in the power

Spot it: a power whose exponent contains xx⁠, like xxx^x⁠, xsin⁡xx^{\sin x} or (log⁡x)cos⁡x(\log x)^{\cos x}⁠, or a long product.

  1. For a sum of such powers, name the parts uu and vv and do each part on its own.
  2. Take log of both sides, then differentiate: the left side gives 1ududx\frac{1}{u}\frac{du}{dx}⁠.
  3. Multiply by uu⁠, and write uu back in terms of xx⁠.

Exercise 5.5 Q4. Differentiate xx−2sin⁡xx^x - 2^{\sin x}⁠.

Let u=xxu = x^x and v=2sin⁡xv = 2^{\sin x}⁠, so y=u−vy = u - v (here x>0x > 0⁠).

Take log: log⁡u=xlog⁡x\log u = x\log x⁠. Differentiate:

1ududx=log⁡x+1dudx=xx(1+log⁡x)\begin{aligned} \frac{1}{u}\frac{du}{dx} &= \log x + 1 \\ \frac{du}{dx} &= x^x(1 + \log x) \end{aligned}

In the same way, log⁡v=sin⁡xlog⁡2\log v = \sin x\log 2⁠, so

1vdvdx=cos⁡xlog⁡2dvdx=2sin⁡xcos⁡xlog⁡2\begin{aligned} \frac{1}{v}\frac{dv}{dx} &= \cos x\log 2 \\ \frac{dv}{dx} &= 2^{\sin x}\cos x\log 2 \end{aligned}

∴ dydx=xx(1+log⁡x)\frac{dy}{dx} = x^x(1 + \log x) − 2sin⁡xcos⁡xlog⁡2-\ 2^{\sin x}\cos x\log 2

In past papers (5): click to see

8. Parametric form: xx and yy given through tt or θ\theta

Spot it: two equations, one for xx and one for yy⁠, both in the same third letter.

  1. Differentiate xx and yy separately with respect to the parameter.
  2. Divide, with yy on top: dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt}⁠.
  3. Simplify, and leave the answer in the parameter.

Exercise 5.6 Q9. Find dydx\frac{dy}{dx} if x=asec⁡θx = a\sec\theta⁠, y=btan⁡θy = b\tan\theta⁠.

dxdθ=asec⁡θtan⁡θdydθ=bsec⁡2θ\begin{aligned} \frac{dx}{d\theta} &= a\sec\theta\tan\theta \\ \frac{dy}{d\theta} &= b\sec^2\theta \end{aligned} dydx=dy/dθdx/dθ=bsec⁡2θasec⁡θtan⁡θ=ba⋅sec⁡θtan⁡θ\begin{aligned} \frac{dy}{dx} &= \frac{dy/d\theta}{dx/d\theta} \\ &= \frac{b\sec^2\theta}{a\sec\theta\tan\theta} \\ &= \frac{b}{a}\cdot\frac{\sec\theta}{\tan\theta} \end{aligned}

As sec⁡θtan⁡θ=1sin⁡θ\frac{\sec\theta}{\tan\theta} = \frac{1}{\sin\theta}⁠,

∴ dydx=bacosec⁡θ\frac{dy}{dx} = \frac{b}{a}\operatorname{cosec}\theta

In past papers (8): click to see

9. Second derivative: differentiate twice, then prove

Spot it: d2ydx2\frac{d^2y}{dx^2} or y′′y'' in the question, often "prove that d2ydx2+y=0\frac{d^2y}{dx^2} + y = 0".

  1. Find dydx\frac{dy}{dx}⁠.
  2. Differentiate again to get d2ydx2\frac{d^2y}{dx^2}⁠.
  3. Put them into the left side of what you must prove, simplify, and end with "Hence proved".

Exercise 5.7 Q11. If y=5cos⁡x−3sin⁡xy = 5\cos x - 3\sin x⁠, prove that d2ydx2+y=0\frac{d^2y}{dx^2} + y = 0⁠.

dydx=−5sin⁡x−3cos⁡xd2ydx2=−5cos⁡x+3sin⁡x=−(5cos⁡x−3sin⁡x)=−y\begin{aligned} \frac{dy}{dx} &= -5\sin x - 3\cos x \\ \frac{d^2y}{dx^2} &= -5\cos x + 3\sin x \\ &= -(5\cos x - 3\sin x) \\ &= -y \end{aligned}

∴ d2ydx2+y=−y+y=0\frac{d^2y}{dx^2} + y = -y + y = 0⁠. Hence proved.

In past papers (9): click to see
Shortcuts

Shortcuts and quick tips

Small habits that save time and marks.

  • Polynomials, sin⁡x\sin x⁠, cos⁡x\cos x⁠, exe^x and ∣x∣|x| are continuous everywhere, and so are their sums, products and composites, and their quotients wherever the bottom is not 0. When every piece is built from these, only the joints need checking.
  • The value f(c)f(c) comes from the piece whose condition includes cc⁠, such as x≤2x \le 2 when cc is 2.
  • Differentiable at a point means continuous there. The reverse is not true: ∣x−1∣|x - 1| is continuous at 1 but not differentiable there.
  • Chain rule from the outside in, multiplying as you go: ddxecos⁡x=−ecos⁡xsin⁡x\frac{d}{dx}e^{\cos x} = -e^{\cos x}\sin x⁠.
  • In implicit questions, xyxy needs the product rule: ddx(xy)=y+xdydx\frac{d}{dx}(xy) = y + x\frac{dy}{dx}⁠.
  • A number on its own differentiates to 0, so the 100 in x2+xy+y2=100x^2 + xy + y^2 = 100 gives 0.
  • xx in the power? Take log of both sides first. For a sum of two such powers, never take log of the sum: do each part on its own.
  • For 2x1+x2\frac{2x}{1 + x^2}⁠, 1−x21+x2\frac{1 - x^2}{1 + x^2} or 2x1−x2\frac{2x}{1 - x^2} inside an inverse trig function, put x=tan⁡θx = \tan\theta and simplify before you differentiate. Check the given interval first: it decides whether the simplification is allowed.
  • In parametric questions the answer stays in tt or θ\theta⁠. There is no need to remove the parameter.
  • An implicit answer may contain both xx and yy⁠. That is fine.
Watch out

Mistakes that cost marks

Each one is common, and each has an easy fix.

  • Writing ddxsin⁡(x2)=cos⁡(x2)\frac{d}{dx}\sin(x^2) = \cos(x^2) → multiply by the derivative of the inside: the answer is 2xcos⁡(x2)2x\cos(x^2)⁠.
  • Taking f(c)f(c) from the wrong piece → use the piece whose condition includes cc⁠.
  • Forgetting dydx\frac{dy}{dx} on a yy term → ddx(y2)=2ydydx\frac{d}{dx}(y^2) = 2y\frac{dy}{dx}⁠, not just 2y2y⁠.
  • Treating xxx^x as a power and writing x⋅xx−1x\cdot x^{x - 1} → take logs first: ddxxx=xx(1+log⁡x)\frac{d}{dx}x^x = x^x(1 + \log x)⁠.
  • Putting the derivative of xx on top → yy goes on top: dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt}⁠.
  • "Continuous, so differentiable" → not always: ∣x−1∣|x - 1| is continuous at 1 but has a corner there, so work out LHD and RHD.
  • Writing cos⁡−1(cos⁡2θ)=2θ\cos^{-1}(\cos 2\theta) = 2\theta with no interval → write the interval line first; it is what makes this step true.
  • Stopping at d2ydx2\frac{d^2y}{dx^2} in a "prove that" question → finish with the target line and "Hence proved".
Marks

How the examiner gives marks

From CBSE's own marking schemes. Write these lines and the marks follow.

  • Continuity: write LHL, RHL and f(c)f(c) each on its own line, then the conclusion in words ("so ff is continuous at cc"). Conclusions in words carry marks.
  • Differentiability: the function written in pieces, the LHD as a limit, the RHD, and the line "LHD = RHD, so ff is differentiable" are each worth half a mark.
  • Chain rule "show that" (2 marks): the derivative by the chain rule is half a mark, the simplification 1 mark, and the final target line half a mark.
  • Logarithmic differentiation: in the 2025-26 sample paper each stage of the working earned 1 mark, so show the log line, the differentiated line and the final dydx\frac{dy}{dx}⁠.
  • "Prove that" questions: end with the target statement and "Hence proved". That line carries half a mark.
  • A slip is penalised only once, so keep going. An MCQ earns 1 mark for the right option only.
Practice

Practise these first

Easiest first. Together they cover every type above.

  1. Exercise 5.1 Q10 continuity at the joint: three numbers that match
  2. Exercise 5.1 Q29 find kk with two straight-line pieces
  3. Exercise 5.2 Q2 the chain rule: cos of sin
  4. Exercise 5.7 Q3 a second derivative with the product rule
  5. Exercise 5.6 Q1 parametric form with tt
  6. Exercise 5.3 Q4 implicit, with the product rule for xyxy
  7. Exercise 5.4 Q5 the chain rule three layers deep, with log and exe^x
  8. Exercise 5.7 Q15 show that y′′=49yy'' = 49y
  9. Exercise 5.3 Q10 put x=tan⁡θx = \tan\theta⁠, then tan⁡3θ\tan 3\theta
  10. Exercise 5.5 Q3 logarithmic differentiation of (log⁡x)cos⁡x(\log x)^{\cos x}
  11. Miscellaneous Q20 LHD and RHD with two modulus terms
  12. Exercise 5.1 Q26 find kk when the limit needs sin⁡hh\frac{\sin h}{h}
Next

You can do this

Nine moves, one at a time. Work through the practice list, write every line the examiner looks for, and you are ready for the exam.

Past papers

35 CBSE board and sample-paper questions on Continuity and Differentiability, each with a full-marks exam answer. Practise them →