Continuity and Differentiability: JEE Main Notes
Reviewed Last updated 2026-11-20. Syllabus topic: Continuity and differentiability.
In short. Continuity at a needs the limit to equal f(a). Differentiability at a needs equal left and right derivatives, which forces continuity but is stronger. Corners of |g(x)| occur where g = 0 and g prime is not 0.
- Continuous at a: left limit = right limit = f(a). Three things must agree.
- Differentiable at a: left derivative = right derivative (both finite). This implies continuity; the converse fails for |x| at 0.
- Removable breaks are repaired by redefining f(a); jump breaks cannot be repaired.
- A corner of |g(x)| occurs where g(x) = 0 and g prime(x) is not 0; two corners can cancel only if their slope jumps are equal and opposite.
- The greatest integer function [x] is discontinuous at every integer.
Syllabus line: LIMIT, CONTINUITY AND DIFFERENTIABILITY: Real-valued functions, algebra of functions; polynomial, rational, trigonometric, logarithmic and exponential functions; inverse functions. Graphs of simple functions. Limits, continuity and differentiability. Differentiation of the sum, difference, product and quotient of two functions. Differentiation of trigonometric, inverse trigonometric, logarithmic, exponential, composite and implicit functions; derivatives of order upto two, Applications of derivatives: Rate of change of quantities, monotonic-Increasing and decreasing functions, Maxima and minima of functions of one variable. (NTA JEE (Main) 2026 syllabus, Mathematics, Unit 7 (https://jeemain.nta.nic.in/document/syllabus-2026/))
Before you start
Prerequisites
- Functions, limits and standard limits: Continuity is a statement about limits. Read this first if left and right limits are not automatic.
- Sets, relations and functions (lesson planned): Piecewise definitions, modulus and the greatest integer function are used here. Read this first if you cannot sketch |x| or [x].
Related topics
- Functions, limits and standard limits
- Differentiation rules and derivatives of order two
- Sets, Relations and Functions (lesson planned)
The concept step by step
Step 1: The three-part test for continuity
A function f is continuous at a when the left limit, the right limit and f(a) are all equal and finite. If any of the three fails, f is discontinuous at a. A break is removable when the limit exists but differs from f(a) or f(a) is missing, and it is a jump when the one-sided limits differ.
Step 2: Repair or constants
For a piecewise function, compute the left limit from the left piece and the right limit from the right piece, then equate them with the value at the joint. This gives equations for unknown constants. For (x² - 9)/(x - 3) at 3, the limit is 6, so defining f(3) = 6 removes the break.
Step 3: Derivative as a limit
The derivative at a is the limit of [f(a + h) - f(a)]/h as h tends to 0. Take h tending to 0 from the right to get the right derivative and from the left to get the left derivative. The function is differentiable at a only if the two are equal and finite.
Step 4: Differentiable implies continuous, not the converse
If f is differentiable at a then [f(a + h) - f(a)] = h x (difference quotient) tends to 0, so f is continuous at a. The reverse fails: |x| is continuous at 0, but its left derivative is -1 and its right derivative is 1. A sharp corner, a vertical tangent or a jump all stop differentiability.
Step 5: Corners of modulus and greatest integer functions
The graph of |g(x)| has a corner wherever g(x) = 0 and g prime(x) is not 0, because the slope changes sign. If two terms have corners at the same point, the slope jumps add. They cancel only when equal and opposite. The greatest integer function [x] jumps by 1 at every integer, so it is discontinuous there.
Step 6: Joining two pieces smoothly
To make a piecewise function differentiable at a joint, impose two conditions: the pieces have the same value (continuity) and the same slope (equal derivatives). For x² on the left and ax + b on the right at x = 1: a = 2 from the slope and a + b = 1 from the value, so b = -1.
Worked examples
Each solution shows the marks every step would earn. The sanity check tests units and size of the answer.
Example 1 (easy)
The function f(x) = (x² - 9)/(x - 3) for x not equal to 3 is continuous at x = 3 when f(3) = k. Find k.
| Step | Marks |
|---|---|
| For x not equal to 3, f(x) = (x - 3)(x + 3)/(x - 3) = x + 3. | 1 |
| The limit as x tends to 3 is 6. | 1 |
| Continuity needs f(3) = limit, so k = 6. | 1 |
| Total: 3 marks | 3 |
Answer: k = 6
Fast method: Cancel the factor, then substitute x = 3 into x + 3.
Sanity check: The graph is the line y = x + 3 with a hole at x = 3; the hole sits at height 6, which agrees with the line.
Example 2 (easy)
The function f(x) = 3x + k for x 2 is continuous at 2. Find k.
| Step | Marks |
|---|---|
| Left limit and value: 3(2) + k = 6 + k. | 1 |
| Right limit: 2² - 1 = 3. | 1 |
| Equate: 6 + k = 3, so k = -3. | 1 |
| Total: 3 marks | 3 |
Answer: k = -3
Fast method: Equate the two pieces at x = 2: 6 + k = 3.
Sanity check: With k = -3 both pieces equal 3 at x = 2, so the graph joins without a gap.
Example 3 (medium)
Find f prime(0) for f(x) = x |x|.
| Step | Marks |
|---|---|
| Right derivative: limit of [h |h| - 0]/h = limit of h = 0 for h positive. | 1 |
| Left derivative: [(-h)|-h| - 0]/(-h) = |h| for h > 0, which tends to 0. | 1 |
| Both one-sided derivatives are 0, so f is differentiable at 0 and f prime(0) = 0. | 1 |
| Total: 3 marks | 3 |
Answer: 0
Fast method: For x >= 0 the function is x² and for x < 0 it is -x²; both have slope 2|x| tending to 0.
Sanity check: The graph is flat at the origin (a smooth S-shape), so slope 0 is plausible.
Example 4 (medium)
Find the difference (right derivative) - (left derivative) of f(x) = |x - 1| at x = 1, and say whether f is continuous there.
| Step | Marks |
|---|---|
| Right derivative: |h|/h with h > 0 equals 1. | 1 |
| Left derivative: |-h|/(-h) with h > 0 equals -1. | 1 |
| Difference = 1 - (-1) = 2, so f is not differentiable at 1. | 1 |
| f is continuous at 1, since the limit 0 equals f(1) = 0. | 1 |
| Total: 4 marks | 4 |
Answer: 2; continuous but not differentiable
Fast method: The slope of |x - 1| is -1 left of 1 and +1 right of 1, a jump of 2 in slope.
Sanity check: The graph is a V with vertex at x = 1: no gap, but a corner with slopes -1 and 1.
Example 5 (medium)
The function f(x) = x² for x 1 is differentiable at x = 1. Find the product a b.
| Step | Marks |
|---|---|
| Continuity at 1: 1 = a + b. | 1 |
| Slopes at 1: derivative of x² is 2, derivative of a x + b is a, so a = 2. | 1 |
| Then b = 1 - 2 = -1. | 1 |
| The product is a b = 2 x (-1) = -2. | 1 |
| Total: 4 marks | 4 |
Answer: -2
Fast method: Match slope first: a = 2x at 1 = 2. Then match value: b = 1 - a = -1.
Sanity check: The line y = 2x - 1 touches the parabola y = x² at (1, 1) and has the same slope, being the tangent there.
Example 6 (hard)
Show that f(x) = x² sin(1/x) for x not 0, f(0) = 0, is differentiable at 0 and find f prime(0).
| Step | Marks |
|---|---|
| f prime(0) = limit of [f(h) - f(0)]/h = limit of h² sin(1/h)/h = limit of h sin(1/h). | 1 |
| |h sin(1/h)| is at most |h|, which tends to 0. | 1 |
| By squeezing, the limit is 0, so f is differentiable at 0 and f prime(0) = 0. | 1 |
| For x not 0, f prime(x) = 2x sin(1/x) - cos(1/x), which oscillates between about -1 and 1 near 0 and has no limit, so f prime is not continuous at 0. | 1 |
| Total: 4 marks | 4 |
Answer: f prime(0) = 0
Fast method: Bound |h sin(1/h)| by |h|. The difference quotient is squeezed to 0.
Sanity check: At h = 10⁻6 the quotient has size at most 10⁻6, which is practically 0.
Example 7 (hard, multi-step)
Find the number of points in (-3, 3) at which f(x) = [x] + [-x] is discontinuous. ([x] is the greatest integer not exceeding x.)
| Step | Marks |
|---|---|
| At a non-integer x, [x] + [-x] = -1. At an integer n it is n + (-n) = 0. | 2 |
| At an integer n the limit from either side is -1, but f(n) = 0, so f is discontinuous at every integer. | 1 |
| Integers in (-3, 3): -2, -1, 0, 1, 2. | 1 |
| The number of points of discontinuity is 5. | 1 |
| Total: 5 marks | 5 |
Answer: 5
Fast method: f equals -1 everywhere except at the integers, where it equals 0, so the discontinuities are exactly the integers in the open interval.
Sanity check: The graph is a horizontal line at -1 with isolated dots at 0 on the integers: 5 dots between -3 and 3.
Formulas and units
| Result | Formula | Valid when | Units or note | Worked example |
|---|---|---|---|---|
| Continuity at a | limit (x -> a-) f = limit (x -> a+) f = f(a) | f defined at a and both one-sided limits exist | same units as f | Example 1 |
| Derivative at a | f prime(a) = limit (h -> 0) [f(a + h) - f(a)]/h | the limit exists and f defined near a | units of f per unit of x | Example 3 |
| Right and left derivatives | R f prime(a) from h > 0; L f prime(a) = limit of [f(a) - f(a - h)]/h, h > 0 | one-sided limits exist; h > 0 in both formulas | units of f per unit of x | Example 3 |
| Differentiable implies continuous | differentiable at a => continuous at a (converse false) | f is a function of one variable defined near a | not applicable | Example 5 |
| Corner of a modulus | |g(x)| has a corner where g = 0 and g prime is not 0; slope jump = 2|g prime| | g differentiable at the zero of g, with g prime not 0 | units of slope | none |
| Greatest integer | [x] is discontinuous at every integer; [x] + [-x] = 0 at integers, -1 elsewhere | x real; [x] is the greatest integer not above x | dimensionless | Example 7 |
| Smooth join | pieces join smoothly at a if values and derivatives agree at a | pieces are continuous and differentiable on their sides of a | not applicable | Example 5 |
Common mistakes and speed
- Concluding that a continuous function is differentiable. Why it tempts: Smooth graphs are the usual picture, so the corner of |x| at 0 is forgotten.
- Equating only the function values and not the slopes when the question asks for differentiability. Why it tempts: Continuity gives one clean equation and the problem seems finished, but a second equation is needed for the second constant.
- Counting every zero of every modulus argument as a non-differentiable point. Why it tempts: The rule "zeros of the argument" is quoted as a shortcut; the cancellation of slope jumps between terms is overlooked.
- Counting the endpoints of an open interval. Why it tempts: The endpoints are special points of the function, so they look like natural candidates.
- Saying that a function differentiable at 0 has a continuous derivative at 0. Why it tempts: In most standard examples the derivative is continuous, so x² sin(1/x) looks like another such case.
- Ignoring the domain when a factor is cancelled, so a removable hole is treated as a point of the graph. Why it tempts: After cancelling, the simplified expression is defined at the point and appears to define the function there.
Time per question and fast method
Target: about 100 seconds per question.
For constants, write two equations: equal values at the joint (continuity), then equal derivatives (differentiability). For counting non-differentiable points of modulus sums, list the zeros of each modulus argument, add the slope jumps at each shared zero and check whether they cancel.
Recall quiz
Pick an option for each question. Your answers stay on this page and are not sent anywhere.
Score: 0 of 5 correct. Pick an option for each question.
Practice
- Let f(x) = (1 - cos 4x)/x² for x 0. If f is continuous at x = 0, then a + b is ___. Verified (T3)
- The function f(x) = (x² - 5x + 6)/(x² - 4) for x not equal to 2 is made continuous at x = 2 by defining f(2)… Verified (T1)
- The number of points in the interval (0, 2 pi) at which f(x) = |sin x| + |cos x| is not differentiable is Verified (T1)
- The number of points in the interval (0, 3) at which f(x) = |x² - 3x + 2| - (1/pi)|sin(pi x)| + |2x - 3| is… Verified (T1)
Previous-year questions
Previous-year questions are not imported yet. Previous-year questions are not imported yet; see the official papers on the NTA site. Official NTA papers page.
Going deeper and revision
Continuity: types of discontinuity and combinations
Sums, differences, products and composites of continuous functions are continuous, and a quotient is continuous where the denominator is not zero. Polynomials, sin, cos, eˣ are continuous everywhere; ln x on x > 0; tan x except at odd multiples of pi/2. The types of break are removable (limit exists, value missing or different), jump (both one-sided limits finite but different), and infinite (a one-sided limit is infinite). Continuity on an interval means continuity at every interior point and one-sided continuity at a closed endpoint, a point that matters when counting discontinuities in an open or closed interval.
Differentiability: definition, one-sided derivatives and geometry
The left derivative is the limit of [f(a) - f(a - h)]/h and the right derivative is the limit of [f(a + h) - f(a)]/h as h tends to 0 from the positive side. Differentiable means both exist, are finite and equal. Geometrically the graph has a unique non-vertical tangent. Corner points (such as |x| at 0), cusps (x^(2/3) at 0), vertical tangents (x^(1/3) at 0) and jumps are the usual failures. A function such as x |x| is differentiable at 0 with derivative 0, because the one-sided slopes are both 0, while f double prime does not exist there.
Modulus, greatest integer and piecewise functions
For |g(x)|, test only the zeros of g. At a zero with g prime not 0 there is a corner with slope jump 2|g prime|. At a zero where g prime is also 0, such as |(x - 1)²|, there is no corner. For sums of modulus terms, compare slope jumps; they cancel only when equal and opposite, as in |x² - 3x + 2| - (1/pi)|sin(pi x)| at x = 1 and 2. For [x] and for [x] + [-x] (which equals 0 at integers and -1 elsewhere), the function is discontinuous at every integer. Product x [x] type items need the one-sided limits at integers.
The oscillating example x² sin(1/x)
Define f(x) = x² sin(1/x) for x not 0 and f(0) = 0. The derivative at 0 is the limit of h sin(1/h) = 0, so f is differentiable at 0 with f prime(0) = 0. Yet f prime(x) = 2x sin(1/x) - cos(1/x) for x not 0 has no limit at 0, so f prime is not continuous at 0. Differentiable at a point does not mean that the derivative function is continuous there. By contrast x sin(1/x) is continuous at 0 (with f(0) = 0) but not differentiable.
What examiners test and time per item
Typical items: find the constant that makes a piecewise function continuous (60 seconds); count points of non-differentiability of a modulus expression (100 to 180 seconds); decide whether a statement about continuity and differentiability is true; and evaluate one-sided derivatives of a function such as |x - 1| (x - 2). Integer items ask for a + b after imposing continuity and differentiability. Always write the one-sided limits separately, and when counting points list candidates first and then test each for cancellation. Remember the open interval: its endpoints are not counted.
Memory hook
Suppose a cyclist rides along a road. At one spot a flyover meets the road with a small raised lip, and at another spot the road bends sharply at a junction.
- At the lip there is a gap in height: you must lift the wheel. The road is not continuous there, a jump break.
- At the sharp bend the road is joined, so you can ride through, but the handlebar must turn suddenly. The road is continuous but has a corner.
- On a smooth curve both the join and the direction change gradually, so you do not need to turn suddenly: continuous and differentiable.
Continuity is no gap in the road; differentiability is also no sudden change of direction.
No gap means continuous; no sharp turn as well means differentiable.
Revision card
Try to answer each without looking above.
- State the three conditions for continuity at a point.
- State the condition for differentiability in terms of one-sided derivatives.
- Give an example of a function that is continuous but not differentiable at a point.
- Where does |g(x)| fail to be differentiable?
- How do you find a and b so that a piecewise function is differentiable at the joint?
- Where is the greatest integer function discontinuous?
Sources and review
Reviewed Reviewed on 2026-11-20: every number recomputed by code and independently reviewed; textbook section references pending.
- Method: Every number in worked examples, recall checks and notes recomputed by code; claims recomputed independently by a separate verifier run using other numerical methods; textbook section references not yet attached; wording defects found were fixed afterwards and re-linted (code checks re-run) but not re-reviewed by a second run; syllabus scope compared with the NTA JEE Main 2026 syllabus text (by the verifier; see the report)
- Reviewer: independent verifier agent run (not the author)
- Date: 2026-11-20
- Defects found: 0; fixed: 0
- Report: content/reviews/learn3-lcd-2026-11-20.md
Textbook references
- NCERT Mathematics Part 1, Class 12 (reprint 2026-27), Chapter 5: Continuity and Differentiability, 5.2 Continuity (Definition 1) (read from the page image, PDF page 2) (read 2026-11-22)
- NCERT Mathematics Part 1, Class 12 (reprint 2026-27), Chapter 5: Continuity and Differentiability, 5.3 Differentiability (read from the page image, PDF page 15) (read 2026-11-22)
- NCERT Mathematics Part 1, Class 12 (reprint 2026-27), Chapter 5: Continuity and Differentiability, 5.3 Differentiability (Theorem 3 and Corollary 1) (read from the page image, PDF page 17) (read 2026-11-22)
Sources used
- Syllabus: NTA JEE (Main) 2026, Mathematics Unit 7 (https://jeemain.nta.nic.in/document/syllabus-2026/), text read from syllabus/lines/jee-main/2026.json line jee-main-2026-U07
- Every number in the worked examples and recall checks is recomputed by code (central differences, small-step limits, grid search); textbook section references are not attached yet, so this page stays Needs review
How labels work: see how answers and lessons are verified. Found a mistake? Use Report an error on any question page.