Pattern 1 — Constants That Make a Function Continuous or Differentiable

JEE Main's favourite question from this chapter: a piecewise function with unknown constants, and the demand that it be continuous — or the stricter demand that it be differentiable — at the joint.

Continuity at the joint x=cx = c: equate three things — LHL, RHL, f(c)f(c). One equation per unknown usually.

Differentiability at the joint: two conditions — first continuity (always check it; differentiability presumes it), then equality of the one-sided derivatives. Two equations, so typically two unknowns.

Worked template: f(x)={ax2+1,x≤1x+a,x>1f(x) = \begin{cases} ax^2 + 1, & x \leq 1 \\ x + a, & x > 1 \end{cases} differentiable at x=1x = 1: continuity gives a+1=1+aa + 1 = 1 + a (automatic here); matching slopes gives 2ax∣x=1=12ax\big\vert_{x=1} = 1, so a=12a = \frac{1}{2}.

When the piece at the joint is a limit-form like sin⁡5x3x\frac{\sin 5x}{3x} or 1−cos⁡2xx2\frac{1 - \cos 2x}{x^2}, the constant is just the standard limit: lim⁡x→0sin⁡kxx=k\lim_{x\to 0}\frac{\sin kx}{x} = k, lim⁡x→01−cos⁡kxx2=k22\lim_{x\to 0}\frac{1 - \cos kx}{x^2} = \frac{k^2}{2}, lim⁡x→0ekx−1x=k\lim_{x\to 0}\frac{e^{kx} - 1}{x} = k, lim⁡x→0log⁡(1+kx)x=k\lim_{x\to 0}\frac{\log(1 + kx)}{x} = k.

Pattern 2 — Counting Kinks

Every ∣x−a∣\vert x - a \vert contributes a corner at aa and smoothness everywhere else, and sums of moduli stack their corners. So:

  1. ∣x−1∣+∣x−3∣\vert x - 1 \vert + \vert x - 3 \vert: non-differentiable at exactly x=1x = 1 and x=3x = 3.
  2. ∣x∣+∣x−1∣+∣x+1∣\vert x \vert + \vert x - 1 \vert + \vert x + 1 \vert: exactly three bad points, −1,0,1-1, 0, 1.
  3. ∣sin⁡x∣\vert \sin x \vert: corners wherever sin⁡x=0\sin x = 0 with nonzero slope — every multiple of π\pi.

General kink principle: ∣f(x)∣\vert f(x) \vert picks up a corner at each simple zero of ff (where f=0f = 0 but f′≠0f' \neq 0); at a zero of even multiplicity — like x2x^2 at 00 — the graph touches smoothly and no corner forms. And one exotic specimen worth knowing: f(x)=x2sin⁡1xf(x) = x^2\sin\frac{1}{x} (with f(0)=0f(0) = 0) is differentiable even at 00 — the squeeze gives f′(0)=0f'(0) = 0 — showing differentiability at a point can coexist with wild oscillation nearby.

Pattern 3 — The Substitution Dictionary

Before differentiating any inverse-trig expression, try to collapse it:

See Substitute Get
2x1−x22x\sqrt{1 - x^2} x=sin⁡θx = \sin\theta sin⁡2θ\sin 2\theta
2x1+x2\dfrac{2x}{1 + x^2}, 1−x21+x2\dfrac{1 - x^2}{1 + x^2}, 2x1−x2\dfrac{2x}{1 - x^2} x=tan⁡θx = \tan\theta sin⁡2θ\sin 2\theta, cos⁡2θ\cos 2\theta, tan⁡2θ\tan 2\theta
2x2−12x^2 - 1 x=cos⁡θx = \cos\theta cos⁡2θ\cos 2\theta
3x−4x33x - 4x^3 x=sin⁡θx = \sin\theta sin⁡3θ\sin 3\theta
cos⁡x1+sin⁡x\dfrac{\cos x}{1 + \sin x} — tan⁡(π4−x2)\tan\left(\dfrac{\pi}{4} - \dfrac{x}{2}\right)

Each collapse turns a quotient-rule marathon into differentiating 2θ2\theta or 3θ3\theta — watch the interval, which decides the sign.

Pattern 4 — Differentiating One Function w.r.t. Another

"Differentiate u w.r.t. v\text{Differentiate } u \text{ w.r.t. } v" means dudv=du/dxdv/dx\dfrac{du}{dv} = \dfrac{du/dx}{dv/dx} — compute both xx-derivatives and divide. E.g. the derivative of exe^x w.r.t. x\sqrt{x} is ex1/(2x)=2x ex\dfrac{e^x}{1/(2\sqrt{x})} = 2\sqrt{x}\,e^x.

Worked Examples

Example 1 — A limit-form continuity constant

Find kk so that f(x)={1−cos⁡2xx2,x≠0k,x=0f(x) = \begin{cases} \dfrac{1 - \cos 2x}{x^2}, & x \neq 0 \\ k, & x = 0 \end{cases} is continuous at 00.

Step 1 — the standard limit: 1−cos⁡2x=2sin⁡2x1 - \cos 2x = 2\sin^2 x, so 1−cos⁡2xx2=2(sin⁡xx)2→2\dfrac{1 - \cos 2x}{x^2} = 2\left(\dfrac{\sin x}{x}\right)^2 \to 2.

Answer: k=2k = 2 — continuity at a removable point just means "set the value equal to the limit".

Example 2 — A differentiability constant

Find aa so that f(x)={ax2+1,x≤1x+a,x>1f(x) = \begin{cases} ax^2 + 1, & x \leq 1 \\ x + a, & x > 1 \end{cases} is differentiable at x=1x = 1.

Step 1 — continuity first: LHL =a+1= a + 1, RHL =1+a= 1 + a — equal for every aa; no constraint yet.

Step 2 — match the one-sided derivatives: left slope 2ax∣1=2a2ax\big\vert_{1} = 2a; right slope 11.

Answer: 2a=12a = 1, so a=12a = \dfrac{1}{2} — the differentiability demand adds the equation that continuity alone could not supply.

Example 3 — Two constants across three pieces

Find aa and bb so that f(x)={1,x≤3ax+b,3<x<57,x≥5f(x) = \begin{cases} 1, & x \leq 3 \\ ax + b, & 3 < x < 5 \\ 7, & x \geq 5 \end{cases} is continuous.

Step 1 — joint at 33: 3a+b=13a + b = 1.

Step 2 — joint at 55: 5a+b=75a + b = 7.

Step 3 — solve the pair: subtracting, 2a=62a = 6, so a=3a = 3 and b=1−9=−8b = 1 - 9 = -8.

Answer: a=3a = 3, b=−8b = -8 — the middle line must hit both flat pieces exactly.

Example 4 — Counting kinks in a modulus sum

At how many points is f(x)=∣x−1∣+∣x−3∣f(x) = \vert x - 1 \vert + \vert x - 3 \vert not differentiable?

Step 1 — one corner per modulus: corners can only occur at x=1x = 1 and x=3x = 3.

Step 2 — check they survive: near x=1x = 1 the second term equals the linear function 3−x3 - x, which is smooth — so the corner of the first term is undisturbed; symmetrically at x=3x = 3.

Answer: exactly 22 points — continuous everywhere, corners at 11 and 33.

Example 5 — The oscillating exception

Show that f(x)={x2sin⁡1x,x≠00,x=0f(x) = \begin{cases} x^2\sin\frac{1}{x}, & x \neq 0 \\ 0, & x = 0 \end{cases} is differentiable at 00.

Step 1 — the difference quotient: f(h)−f(0)h=hsin⁡1h\dfrac{f(h) - f(0)}{h} = h\sin\dfrac{1}{h}.

Step 2 — squeeze: ∣hsin⁡1h∣≤∣h∣→0\left\vert h\sin\frac{1}{h} \right\vert \leq \vert h \vert \to 0.

Answer: f′(0)=0f'(0) = 0 exists — the x2x^2 factor tames the infinite oscillation of sin⁡1x\sin\frac{1}{x}. (With xsin⁡1xx\sin\frac{1}{x} instead, the quotient becomes sin⁡1h\sin\frac{1}{h}, which has no limit — not differentiable. The power of xx decides.)

Example 6 — Dictionary collapse with a sine substitution

Differentiate sin⁡−1(2x1−x2)\sin^{-1}\left(2x\sqrt{1 - x^2}\right) for ∣x∣<12\vert x \vert < \dfrac{1}{\sqrt{2}}.

Step 1 — substitute x=sin⁡θx = \sin\theta: 2x1−x2=2sin⁡θcos⁡θ=sin⁡2θ2x\sqrt{1 - x^2} = 2\sin\theta\cos\theta = \sin 2\theta.

Step 2 — collapse: y=2θ=2sin⁡−1xy = 2\theta = 2\sin^{-1} x on this interval.

Step 3 — differentiate: 21−x2\dfrac{2}{\sqrt{1 - x^2}}.

Answer: 21−x2\dfrac{2}{\sqrt{1 - x^2}} — the interval ∣x∣<12\vert x \vert < \frac{1}{\sqrt 2} keeps 2θ2\theta inside the principal branch, which is what licenses the collapse.

Example 7 — A quarter-turn collapse

Differentiate tan⁡−1(cos⁡x1+sin⁡x)\tan^{-1}\left(\dfrac{\cos x}{1 + \sin x}\right) w.r.t. xx.

Step 1 — rewrite the fraction: with cos⁡x=sin⁡(π2−x)\cos x = \sin\left(\frac{\pi}{2} - x\right) and 1+sin⁡x=1+cos⁡(π2−x)1 + \sin x = 1 + \cos\left(\frac{\pi}{2} - x\right), the half-angle identity gives cos⁡x1+sin⁡x=tan⁡(π4−x2)\frac{\cos x}{1 + \sin x} = \tan\left(\frac{\pi}{4} - \frac{x}{2}\right)

Step 2 — collapse and differentiate: y=π4−x2y = \frac{\pi}{4} - \frac{x}{2}, so y′=−12y' = -\frac{1}{2}.

Answer: −12-\dfrac{1}{2} — constant, with no quotient rule anywhere in sight.

Example 8 — Relative differentiation

Differentiate exe^x with respect to x\sqrt{x}.

Step 1 — both xx-rates: ddxex=ex\frac{d}{dx}e^x = e^x and ddxx=12x\frac{d}{dx}\sqrt{x} = \frac{1}{2\sqrt{x}}.

Step 2 — divide: ex1/(2x)=2x ex\dfrac{e^x}{1/(2\sqrt{x})} = 2\sqrt{x}\,e^x.

Answer: 2x ex2\sqrt{x}\,e^x — the ratio-of-rates recipe, every time.