Continuity and Differentiability
Can you draw the graph of a function without ever lifting your pen from the paper? That everyday physical act turns out to be exactly the right intuition for one of the most important ideas in calculus: continuity. This chapter takes that picture and makes it precise, then pushes it further into the machinery you will use for the rest of Class XII — differentiability, the chain rule, and derivatives of an entirely new family of functions. You already met limits and the derivative from first principles in Class XI, differentiating polynomials and trigonometric functions. Here the question flips: instead of just computing a limit, we ask when the limit of a function at a point equals its value there — that is continuity. We then revisit the derivative and ask when it exists at all — that is differentiability — and prove the one-way implication that anchors the whole chapter: every differentiable function is continuous, but a continuous function need not be differentiable, as the sharp corner of at the origin shows. With that foundation in place, the chapter builds outward. The chain rule lets you differentiate composite functions such as , and the same idea gives clean formulas for the derivatives of , and . A genuinely new class of functions — the exponential and the natural logarithm — enters with the remarkable property that reproduces itself under differentiation. Logarithmic differentiation then handles the tricky case of a variable raised to a variable power, like . Implicit and parametric differentiation free you from ever needing to solve for explicitly. And the chapter closes with second order derivatives, , the tool you will lean on constantly in the next chapter, Application of Derivatives, to study curvature, maxima and minima.
- A function is continuous at if — the left hand limit, right hand limit and the function's value at must all exist and agree.
- A function is discontinuous at if any of these three fail to match; common culprits are jump discontinuities (piecewise functions) and the greatest integer function , which is discontinuous at every integer.
- Sums, differences, products and quotients (denominator nonzero) of continuous functions are continuous; composites of continuous functions are continuous.
- Differentiability at requires the left hand derivative and right hand derivative to both exist and be equal; every differentiable function is continuous, but the converse is false — is continuous everywhere yet not differentiable at .
- The chain rule, for with , is the master tool behind every derivative in this chapter.
- Standard results: , , , , and .
- Logarithmic differentiation — take of both sides before differentiating — is the standard method whenever the variable appears in the exponent, as in .
- Implicit differentiation differentiates both sides of a relation like directly with respect to , using the chain rule on every occurrence of ; parametric differentiation uses when , .
- The second order derivative is found by differentiating again with respect to ; for implicit or parametric forms you differentiate the first-derivative expression carefully, often using the chain rule a second time.
- Key idea: a function is continuous at a point exactly when its limit there equals its value, differentiability is the strictly stronger requirement that the left and right hand derivatives agree, and the chain rule extended through logarithmic, implicit and parametric differentiation is the single technique that unlocks every derivative in this chapter.
Continuity at means ; differentiability is strictly stronger (it forces continuity but not conversely), and the chain rule — applied directly, or after taking logarithms, or through a parameter — is the one tool that differentiates every function this chapter introduces, including , and the inverse trigonometric functions.
What this chapter covers
The chapter has a clear spine: definitions first, then bigger and bigger classes of functions you can differentiate. Section by section, it moves through continuity at a point and on a domain, the algebra of continuous functions (sums, products, quotients, composites), differentiability and its relationship to continuity, the chain rule for composite functions, implicit differentiation, derivatives of the inverse trigonometric functions, exponential and logarithmic functions and their defining properties, logarithmic differentiation for functions of the form , derivatives of functions given in parametric form, and finally second order derivatives. The guided map below groups these into six teaching blocks used in the core ideas section that follows: continuity at a point; building new continuous functions from old ones; differentiability and its link to continuity; the chain rule together with inverse trigonometric, exponential and logarithmic derivatives; implicit and parametric differentiation; and second order derivatives. Each block ends where the next needs it — you cannot differentiate without the chain rule, and you cannot do logarithmic differentiation without already in hand. Read it in order the first time through; use the cheatsheet at the end for revision.
The core ideas
Continuity at a point — the three-way match
The formal definition sharpens the pen-and-paper picture from the overview. A real function defined on a subset of is continuous at a point in its domain if the limit of as approaches exists and equals the function's value there.
where: this single equation silently packs in three separate conditions — must exist (the function is defined at ), must exist (which itself requires the left hand limit and right hand limit to exist and be equal), and finally that common limit value must coincide with . If even one of the three fails, is discontinuous at , and is called a point of discontinuity. A function is simply called continuous if it is continuous at every point of its domain; at the endpoints of a closed interval , continuity means the one-sided limit from inside the interval matches the endpoint value, since the limit from outside is not defined. The step function is the cleanest illustration of failure. Consider for and for . Near , points just to the left give function value while points just to the right give value ; the left hand limit is , the right hand limit is , and since these disagree the limit itself does not exist at , so is discontinuous there — you would have to lift your pen to draw it. A subtler failure occurs when the one-sided limits do agree with each other but not with , as in for and : here , so continuity fails even though there is no jump in the graph's shape, only a single displaced point.
Building new continuous functions from old ones
Checking the definition from scratch at every point is tedious, so the chapter proves an algebra of continuous functions that lets you certify huge classes of functions at once. If and are both continuous at , then , and are continuous at , and the quotient is continuous at provided .
where: each equality is really the claim that the limit of the combined function equals its value at — exactly the definition of continuity applied to the new function, and it follows immediately from the corresponding algebra-of-limits rules you already know. The full proof of this result is worked out in the first derivation below. This single theorem, combined with the fact that constant functions, the identity function , and and are all continuous everywhere, is enough to certify that every polynomial function is continuous (built from sums and products of and constants) and every rational function is continuous wherever . It also handles , continuous wherever . A second theorem covers composition: if is continuous at and is continuous at , then the composite is continuous at . This is why functions like and are continuous — each is built by feeding one continuous function into another. The one function that resists this good behaviour at isolated points is the greatest integer function : at every non-integer point the function is locally constant and continuous, but at each integer the left hand limit is while the right hand limit is , so is discontinuous at every integer.
Differentiability and the derivative revisited
Recall the derivative of at a point from Class XI, defined as a limit of the difference quotient — the slope of the secant line as the second point slides in toward .
where: is the small increment added to ; the quotient is the slope of the chord joining and , and the limit, when it exists, is the slope of the tangent at . A function is differentiable at if this limit exists — equivalently, if the left hand derivative and the right hand derivative both exist and are equal. A function is differentiable on an interval if it is differentiable at every point of that interval, with one-sided derivatives used at the endpoints, exactly as with continuity. The relationship between the two ideas is one-directional, and it is the single most important fact in this chapter: every differentiable function is continuous, but a continuous function need not be differentiable. The classic witness is : it is continuous at (Example 3 of the NCERT text confirms this directly), yet its left hand derivative there is and its right hand derivative is — the graph has a sharp corner, so no single tangent line exists, and fails to be differentiable at even though you never need to lift your pen to draw it.
The chain rule, and inverse trigonometric, exponential and logarithmic derivatives
Composite functions such as or cannot be differentiated by the basic power, sum or product rules alone. The chain rule handles any function , meaning , by treating it as a two-stage machine: an inner function feeding into an outer function .
where: is the derivative of the outer function evaluated at the inner value , and is the derivative of the inner function; multiplying the two "cancels" the intermediate variable the same way does formally, though the real justification is a limit argument, not algebra. The rule extends to three or more nested functions by repeating the multiplication one layer at a time. The chain rule, combined with implicit differentiation (differentiating a defining relation like directly), produces the three standard inverse trigonometric derivatives, each valid on the stated domain because that is exactly where the corresponding one-to-one branch is defined.
where: the domain restrictions matter — at , in the underlying derivation and the derivative blows up, which is exactly why and are open-interval results while , whose denominator never vanishes, holds for every real . The full derivation of the formula is carried out below as a worked derivation. A genuinely new class of functions enters with the exponential function for a base , whose most important member is the natural exponential function , built from the base , a number strictly between and . Its inverse is the natural logarithm, written in this chapter (meaning , sometimes written ), defined for by if . Both functions are continuous on their domains, and their derivatives are strikingly simple.
where: the first identity is the defining property that makes indispensable throughout calculus — it is its own derivative, so it never "wears out" under repeated differentiation, unlike any power of . Two algebraic identities of logarithms are used constantly alongside these derivatives: and the change of base rule , both of which follow from writing the equal quantities as powers of and comparing exponents.
Implicit and parametric differentiation
Not every relationship between and can be solved for explicitly — think of . Even so, may still depend on , and you can find by differentiating both sides of the relation directly with respect to , applying the chain rule to every term that contains (since is itself a function of , differentiating with respect to gives , not just ). This is implicit differentiation, and it works on any relation without ever isolating . A separate situation arises when both and are expressed through a third variable, a parameter : , . The chain rule again supplies the link, since depends on only through .
where: and are each ordinary derivatives with respect to the single parameter , computed independently, and the ratio gives purely in terms of — you are not required (and often not able) to eliminate and rewrite as an explicit function of first. A circle traced as , gives , matching the geometric fact that the tangent to a circle is perpendicular to the radius.
Second order derivatives
If is differentiable, the derivative is itself a new function of . If that function is differentiable, differentiating it once more with respect to produces the second order derivative, written or or .
where: the notation is a single symbol, not a literal square of divided by a square of — it records "differentiate twice with respect to ." When is given implicitly or parametrically, finding means differentiating the expression for a second time with respect to , which usually still contains or the parameter and so needs the chain rule (or implicit differentiation) all over again. Second order derivatives are the tool this chapter hands directly to the next one, Application of Derivatives, where the sign of decides concavity and distinguishes maxima from minima.
The goal is to prove that if two functions and are each continuous at a point , then , , are all continuous at , and is continuous at whenever — turning four separate limit computations into one reusable fact that certifies huge classes of functions (polynomials, rational functions, ) as continuous without ever returning to the definition. The strategy in every part is identical: write the combined function's limit using the algebra-of-limits rules from Class XI, substitute continuity of and individually, and show the result equals the combined function's value at .
Step 1. Prove continuity of . By definition, wherever both are defined, so it is certainly defined at . Using the sum rule for limits, . Since and are each continuous at , and , so the sum equals . This is exactly the definition of continuity applied to , so is continuous at .
Step 2. Prove continuity of . The argument is identical with a minus sign carried through: , using the difference rule for limits. As a special case, taking to be the constant function shows that if is continuous, so is for any real ; taking shows continuity of implies continuity of .
Step 3. Prove continuity of . Using the product rule for limits, . Every step used only that limits of a product equal the product of the limits, which is a Class XI result, plus the continuity hypotheses on and individually.
Step 4. Prove continuity of at points where . Because is continuous at and , stays away from zero for close enough to , so is defined near . Using the quotient rule for limits (valid because the denominator's limit is nonzero), . This completes all four parts, and together they certify, for instance, that every polynomial (built from sums and products of the continuous identity function and constants) and every rational function (a quotient of two polynomials, continuous wherever the denominator is nonzero) is continuous throughout its domain.
Go deeper · Derivation B · 1 minEvery differentiable function is continuous, but not conversely
The goal is to prove Theorem 3 of this chapter: if is differentiable at a point , then is automatically continuous at . This gives a one-way bridge between the chapter's two central ideas, and it is worth also seeing exactly where the converse breaks, since that failure — not the theorem itself — is the fact students most often misuse on exams. The strategy is to write as a product of the difference quotient and , then let and watch the second factor kill the discontinuity that the first factor's limit alone would not prevent.
Step 1. Start from the hypothesis. Since is differentiable at , the limit exists as a finite real number. This is the given information, and the entire proof is about extracting continuity from it.
Step 2. Introduce a useful algebraic identity, valid for every . Write . This is just multiplying and dividing by , which is legitimate for , and it is the key trick: it isolates the difference quotient, whose limit we know, as one factor.
Step 3. Take the limit of both sides as , applying the product rule for limits (both factors on the right have limits that exist, by Step 1 for the first factor and trivially for the second). .
Step 4. Conclude continuity. Since , splitting the limit gives , i.e. , which is precisely the definition of being continuous at . Hence differentiability at forces continuity at , and since was arbitrary, every differentiable function is continuous.
Step 5. Show the converse fails, using at . We already know is continuous at . The left hand derivative is , while the right hand derivative is . Since , the two-sided limit defining does not exist, so is not differentiable at despite being continuous there. Continuity is therefore necessary but not sufficient for differentiability.
Go deeper · Derivation C · 1 minThe chain rule applied to the derivative of sin inverse x
The goal is to derive the standard formula for , demonstrating how implicit differentiation and the chain rule combine to handle an inverse function whose defining relation is trigonometric rather than algebraic. The same pattern — differentiate the inverse relation implicitly, then convert back to a function of using a Pythagorean identity — produces the and formulas as well, and is worth internalising rather than memorising three separate results.
Step 1. Set up the inverse relation. Let , so by definition , with restricted to the principal branch so that the inverse is well defined. We treat as an implicit function of through this equation.
Step 2. Differentiate both sides of with respect to , applying the chain rule to the right side because depends on . The left side differentiates to . The right side, , by the chain rule with as the inner variable. This gives .
Step 3. Solve for , provided . . This is a correct but unsatisfying answer because it is expressed in terms of , not ; the task now is to rewrite in terms of using the original relation .
Step 4. Convert to a function of . From , (substituting ). Since , throughout this range, so we may take the positive square root without ambiguity: .
Step 5. Substitute back and state the domain. . The formula requires , i.e. , i.e. , i.e. — exactly the open interval where the expression under the square root is strictly positive and the derivative is finite. At the endpoints the tangent to is vertical, consistent with the derivative blowing up there.
Go deeper · Derivation D · 1 minLogarithmic differentiation for a variable raised to a variable power
The goal is to derive a general formula for when — a function where both the base and the exponent depend on , so neither the power rule (which needs a constant exponent) nor the exponential rule (which needs a constant base) applies directly. Taking logarithms of both sides converts the troublesome exponent into an ordinary product, which the product rule and chain rule can then handle; this is the method of logarithmic differentiation, and it requires throughout so that is defined.
Step 1. Take the natural logarithm of both sides of . Using the logarithm power rule , . The exponent has now become an ordinary multiplicative factor, which is the entire point of the substitution.
Step 2. Differentiate both sides with respect to . The left side needs the chain rule, since is a function of : . The right side is a product of two functions of , and , so it needs the product rule together with the chain rule on the second factor: .
Step 3. Equate the two sides. . This equation already contains the full answer implicitly; the last step is purely algebraic rearrangement.
Step 4. Multiply both sides by and substitute back in, so the final answer is expressed entirely in terms of , not .
Step 5. Check the formula against a known special case. If is constant, and the formula collapses to , which is exactly the chain-rule power formula you already know — confirming the general result reduces correctly to a familiar case. If instead is a constant base, and the formula gives , the standard exponential chain rule. The general formula therefore contains both earlier special cases at once, which is why it is worth deriving rather than memorising by rote.
Worked examples
Board level - continuity of a piecewise linear function at the join point (NCERT Example 10, extended)
Discuss the continuity of for and for , and state all points of discontinuity, if any.
Step 1. Check continuity away from the join. For any , coincides with in a neighbourhood of , so , and is continuous there. For any , coincides with nearby, so , again continuous. The only point that needs care is , where the formula switches.
Step 2. Compute the left hand limit at , using the branch that applies for . .
Step 3. Compute the right hand limit at , using the branch that applies for . .
Step 4. Compare. Since , the left and right hand limits at disagree, so does not exist and is discontinuous at regardless of what value actually takes (here , matching the left branch, so the jump is purely a right-side mismatch). Answer: is continuous at every real number except , where it has a jump discontinuity from down to .
Board level - continuity versus differentiability of the shifted modulus function (NCERT Exercise 5.2, Q9, extended)
Show that is continuous for all real but not differentiable at .
Step 1. Establish continuity. Write as the composite where (a polynomial, continuous everywhere) and (continuous everywhere, as shown for using left and right hand limits both equal to at ). By the composition theorem for continuous functions, is continuous at every real number, including .
Step 2. Set up the derivative check at using the definition, with . .
Step 3. Compute the left hand derivative, where so and . .
Step 4. Compute the right hand derivative, where so and . . Since , the two one-sided derivatives disagree, so does not exist. Answer: is continuous everywhere but not differentiable at , where the graph has a sharp corner exactly like at the origin, shifted one unit to the right.
Competitive level (JEE / NEET) - logarithmic differentiation of a sum of three variable-exponent terms (NCERT Example 30, extended)
If for constants , find .
Step 1. Split into three pieces and differentiate the constant. Let , , , so , a constant. Differentiating both sides with respect to gives , since the derivative of a constant is zero. Each term now needs logarithmic differentiation separately, because each has a variable in both base and exponent (or, for , a variable exponent on a variable base).
Step 2. Differentiate . Taking logs, . Differentiating with the product rule on the right and the chain rule on the left (since depends on through too): , so .
Step 3. Differentiate . Taking logs, . Differentiating: , so . Then differentiate the same way: , so , giving .
Step 4. Substitute all three derivatives into and collect every term containing on one side. . Grouping the terms: .
Step 5. Isolate . Answer:
Timing note: aim for under four minutes. The whole problem is three parallel applications of the same logarithmic-differentiation template, so the speed gain comes from recognising the pattern instantly ("variable to a variable power, so log first") rather than re-deriving it each time — write , , in one line before differentiating anything, then grind through the product rule on each. The most common slip under time pressure is forgetting that is a function of when differentiating , dropping the that the chain rule demands.
Competitive level (JEE / NEET) - second order derivative of a parametric curve (NCERT Miscellaneous Exercise, Q17, extended)
If and , find .
Step 1. Differentiate and with respect to the parameter separately, using the product rule on the and terms. , since and cancel. Similarly, , since and cancel.
Step 2. Form the first derivative using . , valid for (where ) and . Notice the parameter and the factor both cancel completely — a strong hint that the algebra was done correctly.
Step 3. Differentiate with respect to , which requires the chain rule since is a function of , not directly of : .
Step 4. Replace using , from Step 1. Substituting, , using . Answer:
Timing note: aim for under three minutes once the pattern is automatic. The parametric second-derivative recipe never changes: find and , divide for , then differentiate that expression with respect to and divide by again — never attempt to eliminate and differentiate an explicit unless the algebra is unusually friendly. The biggest time sink is forgetting the second division by in Step 4 and submitting as if it were already , which throws away the entire chain-rule step.
Common traps
Students lose marks in this chapter in a small number of predictable ways. Checking only two of the three conditions for continuity — verifying the left and right hand limits agree, but forgetting to also compare them with — is the single most common slip; the function for , has matching one-sided limits but is still discontinuous, because neither limit equals . Assuming continuity is enough to guarantee a derivative exists is the second major trap, and it is exactly the misconception the warning below addresses; always check both one-sided derivatives explicitly at any point where a function's formula changes, such as at for or at integers for . In logarithmic differentiation, forgetting that the technique requires (so that is defined) leads to nonsense when applied carelessly to something like ; always confirm positivity before taking logs, and note that itself must also be positive for to make sense in the first place. In implicit differentiation, the most common algebra error is forgetting the chain rule on the terms — writing instead of — which silently drops every occurrence of the derivative you are solving for. With inverse trigonometric derivatives, sign errors are rampant: carries a minus sign that does not, and students frequently copy the wrong one under time pressure. Finally, in this chapter "" always means the natural logarithm unless a base is written explicitly (as in ), which trips up students used to base- logs from other subjects; and when computing a second order derivative from a first-derivative expression that still contains or a parameter, forgetting to apply the chain rule again is the most common way to get wrong even after was found correctly.
You should be able to…
- State the definition of continuity at a point precisely, using left hand limit, right hand limit and function value, and apply it to piecewise functions to locate every point of discontinuity.
- Use the algebra of continuous functions (sum, difference, product, quotient, composite) to certify that polynomials, rational functions and standard trigonometric functions are continuous, without recomputing limits from scratch.
- State the definition of differentiability at a point using left hand and right hand derivatives, and prove that a function like or fails to be differentiable at a specific point.
- Prove and correctly apply the one-way implication that every differentiable function is continuous, while recognising continuity alone never guarantees differentiability.
- Apply the chain rule confidently to composite functions of arbitrary depth, and derive or recall the standard derivatives of , and with their domains.
- Differentiate and directly, and use the logarithm laws (product, quotient, power, change of base) to simplify an expression before differentiating it.
- Recognise when a function needs logarithmic differentiation (a variable in the exponent) and carry out the full log-differentiate-solve procedure without dropping a term.
- Differentiate implicit relations by applying the chain rule to every occurrence of , and differentiate parametric forms using .
- Compute second order derivatives for explicit, implicit and parametric functions, reapplying the chain rule wherever the first-derivative expression still contains or a parameter.
Ask the tutor: Want to work through a trickier implicit or parametric second-derivative problem step by step, or get more practice spotting continuity versus differentiability at tricky piecewise joins?
Why does differentiability imply continuity but not the other way round?
Differentiability is a strictly stronger requirement. To have a derivative at a point, the difference quotient must approach a single finite number as , and that limit forces automatically, which is exactly continuity — the full derivation is worked through in this chapter. But a function can be continuous (no jump, no gap) while still having a sharp corner, like at : the left and right hand slopes disagree even though the left and right hand values agree perfectly. Continuity only checks values; differentiability checks slopes, which is extra information the graph's smoothness has to earn.
How is the derivative of e to the x different from every other function I have differentiated?
Every polynomial or trigonometric function you differentiate changes form: differentiating lowers the power, differentiating turns it into . The natural exponential function is the unique function (up to a constant multiple) that reproduces itself exactly under differentiation, . That is precisely why was singled out as the base for the "natural" exponential rather than, say, : it is the base for which the exponential function's growth rate at every point equals its own value there, which makes it the natural currency for continuous growth problems throughout calculus.
When should I use logarithmic differentiation instead of the ordinary product or quotient rule?
Reach for logarithmic differentiation whenever the variable appears in an exponent, as in , , or for a function — the ordinary power rule needs a constant exponent and the ordinary exponential rule needs a constant base, so neither applies when both are variable. It is also the fastest route for a product or quotient of many factors raised to various powers, like , because taking logs turns the product into a sum and the quotient into a difference, which differentiates term by term far more cleanly than repeated product and quotient rules. Just remember the one restriction: both and any base must be positive for the logarithm to be defined.
What is the actual difference between an implicit function and a parametric form?
An implicit function is a single equation relating and directly, like , where you differentiate the whole equation with respect to and solve algebraically for , treating as an unknown function of throughout. A parametric form instead expresses both and separately as functions of a third variable , like , , and you never need an equation directly linking and at all — you just compute and independently and divide. The same curve can often be described either way (a circle is both implicitly and parametrically); parametric form is usually chosen when it is easier to describe motion or a curve through a natural third variable like time or angle than to write one algebraic equation.
Why does the greatest integer function keep showing up as an example of discontinuity?
Because , the greatest integer less than or equal to , is the cleanest possible illustration of a jump discontinuity happening at infinitely many points rather than just one. At any non-integer , the function is locally constant (equal to ) on a whole neighbourhood, so it is continuous there — nothing interesting happens. But at every integer , points just below give value while itself and points just above give value , so the left hand limit () and right hand limit () permanently disagree. It is a single, easy-to-visualise function (a staircase graph) that demonstrates discontinuity at every integer simultaneously, which is exactly why NCERT and exam-setters return to it repeatedly.