All guides
Maths

Calculus for JEE: the boundary cases that trip up students

Continuity at piecewise points, differentiability at corners, and the L'Hôpital traps that decide one-mark questions in JEE Main.

9 min readUpdated 14 May 2026

Most calculus questions in JEE Main are routine. What separates a 95+ percentile from a 99+ is handling the boundary cases — the places where standard rules don't apply directly. Here are the four that come up repeatedly and the traps each one sets.

1. Continuity at the junction of a piecewise function

A function defined piecewise as f(x) = egin{cases} g(x) & x < c \ k & x = c \ h(x) & x > c end{cases} is continuous at cc iff limxocg(x)=limxoc+h(x)=klim_{x o c^-} g(x) = lim_{x o c^+} h(x) = k.

Trap: students compute the two-sided limits and forget to check the value kk at the point itself. Continuity needs three things: LHL = RHL, the limit equals f(c)f(c), and f(c)f(c) must be defined.

2. Differentiability at a corner or cusp

A function is differentiable at cc iff lim_{h o 0^-} rac{f(c+h) - f(c)}{h} = lim_{h o 0^+} rac{f(c+h) - f(c)}{h}

Both must exist and be equal. Geometrically: the graph has a unique tangent line at cc.

Common non-differentiable points JEE loves:

  • x|x| at x=0x = 0 — LHD = 1-1, RHD = +1+1.
  • x2/3x^{2/3} at x=0x = 0 — cusp; the derivative tends to pminftypminfty.
  • Greatest-integer function [x][x] at every integer — jump discontinuity, so not even continuous, hence not differentiable.

Trap: differentiability implies continuity, but continuity does not imply differentiability. A function can be continuous everywhere and differentiable nowhere (the Weierstrass function), though JEE never asks about pathological examples.

3. L'Hôpital's rule and when it fails

L'Hôpital applies only to rac{0}{0} or rac{infty}{infty} indeterminate forms. Other indeterminate forms (0cdotinfty0 cdot infty, inftyinftyinfty - infty, 1infty1^infty, 000^0, infty0infty^0) must be rewritten first.

Trap 1: applying L'Hôpital to a non-indeterminate form. If the limit is rac{2}{3} before differentiation, differentiating numerator and denominator gives the wrong answer. Always check the form first.

Trap 2: cycling. Some limits like lim_{x o infty} rac{e^x + e^{-x}}{e^x - e^{-x}} cycle under repeated L'Hôpital. Stop and use algebraic manipulation: divide both by exe^x and the answer is 1.

Trap 3: forgetting the chain rule on the derivatives. When you differentiate sin(2x)sin(2x), the answer is 2cos(2x)2cos(2x), not cos(2x)cos(2x).

4. The indeterminate 1infty1^infty form

For limxoaf(x)g(x)lim_{x o a} f(x)^{g(x)} where f(x)o1f(x) o 1 and g(x)oinftyg(x) o infty:

limxoaf(x)g(x)=elimxoa(f(x)1)g(x)lim_{x o a} f(x)^{g(x)} = e^{lim_{x o a} (f(x) - 1) g(x)}

This single formula handles every 1infty1^infty question in JEE Main and Advanced. The proof uses ln(1+u)approxuln(1 + u) approx u for small uu, which is why you do not have to apply L'Hôpital at all.

Worked example: continuity and differentiability together

Let f(x) = egin{cases} ax^2 + b & x leq 1 \ rac{1}{|x|} & x > 1 end{cases}

Find aa and bb such that ff is differentiable at x=1x = 1.

Continuity: a(1)+b=1impliesa+b=1a(1) + b = 1 implies a + b = 1.

Differentiability: LHD = 2ax ig|_{x=1} = 2a. RHD = - rac{1}{x^2}ig|_{x=1} = -1. So 2a=12a = -1, giving a = - rac{1}{2} and b = rac{3}{2}.

The structure — two equations, two unknowns — is what JEE will reward you for setting up correctly.

5. Maxima and minima at endpoints

When a function is defined on a closed interval [a,b][a, b], the global maximum and minimum can occur:

  • At a critical point inside (a,b)(a, b) where f(x)=0f'(x) = 0 or ff' does not exist.
  • At an endpoint x=ax = a or x=bx = b.

Trap: students find all interior critical points, compare their values, and forget to evaluate at the endpoints. Always include f(a)f(a) and f(b)f(b) in your comparison list.

6. Integration of absolute-value functions

To integrate intabf(x),dxint_a^b |f(x)| , dx, you must:

  1. Find every xx in [a,b][a, b] where f(x)=0f(x) = 0 — these split the interval.
  2. On each sub-interval, determine the sign of ff.
  3. Integrate ff where f>0f > 0 and f-f where f<0f < 0, then add.

Skipping step 1 is the most common mistake. int11xdxint_{-1}^{1} |x| dx is not int11x,dx=0int_{-1}^{1} x , dx = 0; it is int10(x)dx+int01x,dx=1int_{-1}^{0}(-x) dx + int_0^1 x , dx = 1.

How to drill these

Take any JEE Main calculus past-paper section, identify which of the six boundary-case patterns above each question tests, and write the pattern next to it before solving. After 50 problems you will start seeing the patterns before you start solving — which is exactly the skill the exam rewards under time pressure.

More Maths guides

Stuck on a problem from this guide?

Ask JEE Genius — the AI tutor explains every step and references past papers.

Open the chat →