📘 CodingMarble Learn

Continuity and Differentiability

A function is continuous at a point when its graph has no break there: the left limit, the right limit and the value are all equal. The derivative is the slope of the tangent line. With the chain rule, implicit differentiation, the rules for eˣ, ln x and inverse trig functions, logarithmic differentiation and parametric forms, you can differentiate almost any Class 12 function. The second derivative tells how the slope itself changes, that is, how the curve bends.

🎬 Step-by-step story

  1. Continuity: if you can draw the graph without lifting the pencil, the function is continuous. The red graph jumps at x = 1, so it breaks there. The green graph is joined.
  2. The derivative is the slope of the tangent line. In y = sin(2x), 2x sits inside and sin sits outside. Chain rule: outside derivative times inside derivative.
  3. Implicit function: the circle x² + y² = 9 is not written as y = something. Differentiate both sides with respect to x, then solve for dy/dx.
  4. The slope of eˣ equals its own height at every point. The slope of ln x is 1/x. Taking ln first helps with powers like xˣ.
  5. Parametric form: x = t², y = 2t. Then dy/dx = (dy/dt) ÷ (dx/dt). The second derivative tells how the curve bends.
  6. Your turn: pick a function, slide x, and read the value, the slope and the bending.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

What exactly makes a graph discontinuous?

At the break point, the value you reach from the left is not the value you reach from the right, or it does not match f(a). In the 3D, the red graph arrives at 2 from the left but starts at 3 on the right.

Why do we multiply by the inside derivative in the chain rule?

The inside part changes faster or slower than x. In sin(2x), the inside moves twice as fast as x, so every slope doubles. Watch the tangent: its slope reaches 2, not 1.

Why does d/dx(y²) have a dy/dx?

y itself depends on x. So y² is a function inside a function: differentiate y² to get 2y, then multiply by how y changes with x, which is dy/dx.

Why is the circle's tangent slope −x/y?

On the top right of the circle, x and y are positive, so the slope is negative (going down). At the top point x = 0, the slope is 0, a flat tangent. Watch the moving point.

Why is eˣ special?

It is the only kind of function (with its multiples) whose slope is always equal to its height. The readout shows height and slope as the same number.

Why can't I divide d²y/dt² by d²x/dt²?

The second derivative must measure how dy/dx changes with x. So differentiate dy/dx with respect to t, then divide by dx/dt once.

What is continuity?

A function f is continuous at x = a when three things match:

In short: lim(x→a) f(x) = f(a). If any one is missing or different, the graph has a break (a hole or a jump) at a.

Polynomials, sin x, cos x, eˣ, and ln x (for x > 0) are continuous wherever they are defined. Sums, differences, products and quotients (denominator not zero) of continuous functions are continuous too.

Differentiable means continuous, not the other way

If a function has a derivative at a, it must be continuous at a. But |x| is continuous at 0 and still has no derivative there: the graph has a sharp corner, so the left slope (−1) and right slope (+1) do not match.

Derivative and the chain rule

The derivative f′(x) is the slope of the tangent at x: f′(x) = lim(h→0) [f(x + h) − f(x)] / h.

Chain rule (a function inside a function): if y = f(u) and u = g(x), then dy/dx = (dy/du) × (du/dx).

Example: y = (3x + 1)⁵. Outer: u⁵ → 5u⁴. Inner: 3x + 1 → 3. So dy/dx = 5(3x + 1)⁴ × 3 = 15(3x + 1)⁴.

Derivatives of inverse trigonometric functions

Why tan⁻¹x: put y = tan⁻¹x, so tan y = x. Differentiate: sec²y · dy/dx = 1, so dy/dx = 1/sec²y = 1/(1 + tan²y) = 1/(1 + x²).

Tip: a smart substitution like x = tan θ often turns a messy expression into a simple one before differentiating.

Implicit functions

Sometimes x and y are mixed together, like x² + y² = 9 or x³ + y³ = 3xy. We do not need to solve for y. Differentiate every term with respect to x, and whenever you differentiate something with y, multiply by dy/dx (chain rule). Then collect the dy/dx terms.

x² + y² = 9 → 2x + 2y·dy/dx = 0 → dy/dx = −x/y.

Exponential and logarithmic functions

With the chain rule: d/dx (e^(3x)) = 3e^(3x), d/dx ln(sin x) = cos x / sin x = cot x.

Logarithmic differentiation

Use it when the power itself has x (like xˣ or (sin x)^x), or for a long product/quotient.

  1. Take ln of both sides: ln y = x ln x.
  2. Differentiate: (1/y) dy/dx = ln x + 1.
  3. Multiply by y: dy/dx = xˣ(1 + ln x).

Functions in parametric form

Sometimes x and y both depend on a third variable t (a parameter), like x = t², y = 2t. Then

dy/dx = (dy/dt) / (dx/dt), provided dx/dt ≠ 0.

For a circle x = r cos t, y = r sin t: dy/dx = (r cos t)/(−r sin t) = −cot t.

Second order derivative

Differentiate once more: d²y/dx² = d/dx (dy/dx), also written f″(x) or y₂.

It tells how the slope changes. f″ > 0: the slope is growing, the curve bends up like a bowl. f″ < 0: bends down like a cap.

Example: y = x³ → y′ = 3x² → y″ = 6x.

For parametric forms: d²y/dx² = [d/dt (dy/dx)] ÷ (dx/dt). Do not simply divide d²y/dt² by d²x/dt².

Key formulas and definitions

Worked examples

1. Is f(x) = 2x + 3 for x ≤ 1 and f(x) = 6 − x for x > 1 continuous at x = 1?

Left limit: 2(1) + 3 = 5. Right limit: 6 − 1 = 5. Value f(1) = 5. All three equal, so f is continuous at x = 1.

2. Find k so that f(x) = kx² for x ≤ 2 and f(x) = 3 for x > 2 is continuous at x = 2.

Left limit = value = 4k. Right limit = 3. For continuity 4k = 3, so k = 3/4.

3. Differentiate y = sin(x² + 5).

Outer sin u → cos u; inner x² + 5 → 2x. dy/dx = cos(x² + 5) × 2x = 2x cos(x² + 5).

4. Differentiate y = tan⁻¹(2x/(1 − x²)) for −1 < x < 1.

Put x = tan θ. Then 2x/(1 − x²) = tan 2θ, so y = 2θ = 2 tan⁻¹x. dy/dx = 2/(1 + x²).

5. Find dy/dx if x² + xy + y² = 7.

2x + (y + x·dy/dx) + 2y·dy/dx = 0. So dy/dx (x + 2y) = −(2x + y), giving dy/dx = −(2x + y)/(x + 2y).

6. Differentiate y = e^(3x) · ln x.

Product rule: dy/dx = 3e^(3x) ln x + e^(3x)(1/x) = e^(3x)(3 ln x + 1/x).

7. Differentiate y = xˣ (x > 0).

ln y = x ln x. (1/y) dy/dx = ln x + 1. dy/dx = xˣ(1 + ln x).

8. If x = a cos t and y = a sin t, find dy/dx and d²y/dx².

dx/dt = −a sin t, dy/dt = a cos t, so dy/dx = −cot t. d/dt(−cot t) = cosec²t. d²y/dx² = cosec²t ÷ (−a sin t) = −1/(a sin³t).

9. If y = 3e^(2x) + 2e^(−x), show that y″ − y′ − 2y = 0.

y′ = 6e^(2x) − 2e^(−x); y″ = 12e^(2x) + 2e^(−x). y″ − y′ − 2y = (12 − 6 − 6)e^(2x) + (2 + 2 − 4)e^(−x) = 0.

Common mistakes

Practice quiz

1. f is continuous at x = a when:
2. d/dx (tan⁻¹x) =
3. If x² + y² = 25, dy/dx =
4. d/dx (e^(5x)) =
5. If x = t², y = t³, then dy/dx =

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is taught in Continuity and Differentiability Class 12?

Continuity at a point, derivatives by chain rule, inverse trig, implicit, exponential and log functions, logarithmic differentiation, parametric forms and second derivatives.

Is every continuous function differentiable?

No. A function can be continuous with a sharp corner, like |x| at 0, where there is no derivative.

When should I use logarithmic differentiation?

When x appears in the power, like xˣ, or when you have a long product or quotient.

Where this is taught

ItalySecondaria di secondo grado – classe 5ª (esame di Stato)Relations and functions
ItalySecondaria di secondo grado – classe 5ª (esame di Stato)Relations and functions
ItalySecondaria di secondo grado – classe 5ª (esame di Stato)Relations and functions
NetherlandsHAVO 5 (eindexamenjaar)Applied calculus (part 2)
NetherlandsVWO 5Differential and integral calculus (part 1)
NetherlandsVWO 6 (eindexamenjaar)Change (part 2)
PolandLiceum ogólnokształcące, klasa IVOptimisation and calculus
RomaniaClasa a XI-aElements of mathematical analysis
RomaniaClasa a XI-aElements of mathematical analysis
Spain1º BachilleratoMeasurement sense
Ukraine11 класAlgebra: exponential and logarithmic functions (40 h)
CBSE (India)Class 12Introduction to Derivatives
CBSE (India)Class 12Calculus
England (GCSE, A level)Year 13G Differentiation
USA (Common Core, NGSS, AP)Grade 12Limits and Continuity
USA (Common Core, NGSS, AP)Grade 12Differentiation: Definition and Fundamental Properties
USA (Common Core, NGSS, AP)Grade 12Differentiation: Composite, Implicit, and Inverse Functions
USA (Common Core, NGSS, AP)Grade 12Analytical Applications of Differentiation
USA (Common Core, NGSS, AP)Grade 12Limits and Continuity
USA (Common Core, NGSS, AP)Grade 12Differentiation: Definition and Fundamental Properties
USA (Common Core, NGSS, AP)Grade 12Differentiation: Composite, Implicit, and Inverse Functions
USA (Common Core, NGSS, AP)Grade 12Analytical Applications of Differentiation
Japan高校(専門学科)1〜3年Advanced Mathematics II
Japan高校3年Differentiation
South Korea고등학교 2학년Limits and continuity
South Korea고등학교 2학년Differentiation
South Korea고등학교 2학년Differentiation techniques
South Korea고등학교 3학년Differentiation techniques
South Korea고등학교 3학년Differentiation and economy
South Korea고등학교 3학년Limits and continuity
South Korea고등학교 3학년Differentiation
Germany (Bavaria)Jahrgangsstufe 12Functions: antiderivatives, product and chain rule
FrancePremièreAnalysis
FrancePremièreMathematics
FrancePremièreMathematics
FrancePremièreMathematics (2026 programme)
FranceTerminaleContent
FranceTerminaleAnalysis
Russia11 классElements of calculus
China高二Ch.5 Derivatives

Learn first

Learn next

Related lessons

All Maths lessons