Continuity and Differentiability — The Foundations

Continuity at cc: limxcf(x)=f(c)\lim_{x \to c} f(x) = f(c) — left hand limit, right hand limit and value all present and equal. Piecewise functions can only misbehave at their joints; check LHL, RHL and value at each joint separately. Sums, products, quotients (denominator nonzero) and composites of continuous functions stay continuous; polynomials, rational functions, sin\sin, cos\cos, exe^x, logx\log x and x\vert x \vert are continuous throughout their domains, while [x][x] jumps at every integer.

Continuous curve where limit equals value versus a jump discontinuity

Continuity-constant questions (find kk): equate the two sides at the joint. When the piece is a limit form, use the standard limits limx0sinkxx=k\lim_{x\to 0}\frac{\sin kx}{x} = k, limx01coskxx2=k22\lim_{x\to 0}\frac{1 - \cos kx}{x^2} = \frac{k^2}{2}, limx0ekx1x=k\lim_{x\to 0}\frac{e^{kx} - 1}{x} = k.

Differentiability: f(c)=limh0f(c+h)f(c)hf'(c) = \lim_{h \to 0}\frac{f(c+h) - f(c)}{h}, when the limit exists. Every differentiable function is continuous, but not converselyx\vert x \vert is continuous at 00 yet has LHD 1-1 and RHD +1+1: a corner. Every xa\vert x - a \vert carries one corner at aa, and [x][x] fails at integers by failing continuity first.

Smooth curve with one tangent versus modulus corner with two slopes

The Differentiation Toolkit

The table: ddxxn=nxn1\frac{d}{dx}x^n = nx^{n-1}; sincos\sin \to \cos; cossin\cos \to -\sin; tansec2\tan \to \sec^2; sin1x11x2\sin^{-1}x \to \frac{1}{\sqrt{1-x^2}}; cos1x11x2\cos^{-1}x \to -\frac{1}{\sqrt{1-x^2}}; tan1x11+x2\tan^{-1}x \to \frac{1}{1+x^2}; exexe^x \to e^x; logx1x\log x \to \frac{1}{x}; axaxlogaa^x \to a^x\log a.

Chain rule — the engine of everything: ddxv(u(x))=v(u(x))u(x)\frac{d}{dx}v(u(x)) = v'(u(x))\cdot u'(x), one factor per layer, and forgetting the inner factor is the most common error in the chapter.

Implicit differentiation: differentiate the relation as it stands; every appearance of yy triggers a dydx\frac{dy}{dx} by the chain rule; collect and solve — the answer may contain both xx and yy.

Inverse-trig simplification first: arguments like 2x1+x2\frac{2x}{1+x^2} collapse under x=tanθx = \tan\theta to 2tan1x2\tan^{-1}x; differentiating the collapsed form saves a page.

Logarithmic differentiation — for variable-to-variable powers u(x)v(x)u(x)^{v(x)} (both positive where needed): take logy=vlogu\log y = v\log u, differentiate, multiply back by yy. Classify before differentiating: xax^a power rule, axa^x exponential rule, xxx^x logarithmic differentiation, aaa^a constant.

Parametric forms: dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt} (with dxdt0\frac{dx}{dt} \neq 0) — yy's rate on top. Standard collapses: sinθ1+cosθ=tanθ2\frac{\sin\theta}{1+\cos\theta} = \tan\frac{\theta}{2} and sinθ1cosθ=cotθ2\frac{\sin\theta}{1-\cos\theta} = \cot\frac{\theta}{2}.

Second order: d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right). For relation proofs — the flagship 5-marker — use the clear-then-differentiate trick: after the first derivative, clear radicals or denominators, then differentiate the cleaned equation implicitly and substitute back.

Worked Examples — Continuity and Differentiability

Example 1 — A joint that fails

Find all points of discontinuity of f(x)={2x+3,x22x3,x>2f(x) = \begin{cases} 2x + 3, & x \leq 2 \\ 2x - 3, & x > 2 \end{cases}.

Step 1 — away from the joint: each piece is a polynomial — continuous.

Step 2 — at x=2x = 2: LHL =7= 7, RHL =1= 1 — unequal.

Answer: discontinuous only at x=2x = 2 — piecewise functions are innocent except at their joints.

Example 2 — A continuity constant

Find kk so that f(x)={kx2,x23,x>2f(x) = \begin{cases} kx^2, & x \leq 2 \\ 3, & x > 2 \end{cases} is continuous at x=2x = 2.

Step 1 — equate the sides: LHL =4k= 4k must equal RHL =3= 3 (and f(2)=4kf(2) = 4k then agrees automatically).

Answer: k=34k = \dfrac{3}{4}.

Example 3 — Continuous but not differentiable

Show that f(x)=x5f(x) = \vert x - 5 \vert is continuous but not differentiable at x=5x = 5.

Step 1 — continuity: LHL == RHL =0=f(5)= 0 = f(5). ✓

Step 2 — one-sided derivatives: LHD =limh0hh=1= \lim_{h \to 0^-}\frac{\vert h \vert}{h} = -1, RHD =+1= +1 — unequal.

Answer: continuous with a corner — the standing counterexample to "continuous implies differentiable".

Example 4 — Chain rule, twice over

Differentiate (i) sin(x2+5)\sin(x^2 + 5), (ii) (2x+1)3(2x + 1)^3.

Step 1 — (i): outer sin\sin, inner x2+5x^2 + 5: derivative 2xcos(x2+5)2x\cos(x^2 + 5).

Step 2 — (ii): power rule outside, inner derivative 22: 3(2x+1)22=6(2x+1)23(2x+1)^2 \cdot 2 = 6(2x+1)^2.

Answer: as computed — every chain-rule answer carries the inner derivative as a visible factor.

Worked Examples — Implicit, Inverse-Trig, Logarithmic

Example 5 — Implicit with a chain inside

Find dydx\dfrac{dy}{dx} if y+siny=cosxy + \sin y = \cos x.

Step 1 — differentiate through: dydx+cosydydx=sinx\frac{dy}{dx} + \cos y\frac{dy}{dx} = -\sin x.

Step 2 — factor and solve: dydx=sinx1+cosy,y(2n+1)π\frac{dy}{dx} = -\frac{\sin x}{1 + \cos y}, \qquad y \neq (2n+1)\pi

Answer: as displayed — the exclusion keeps the denominator alive, and answers in xx and yy are perfectly acceptable.

Example 6 — Collapse before differentiating

Differentiate y=sin1(2x1+x2)y = \sin^{-1}\left(\dfrac{2x}{1 + x^2}\right) for x<1\vert x \vert < 1.

Step 1 — substitute x=tanθx = \tan\theta: the argument becomes sin2θ\sin 2\theta, so y=2θ=2tan1xy = 2\theta = 2\tan^{-1}x on this interval.

Step 2 — differentiate the collapsed form: 21+x2\frac{2}{1 + x^2}.

Answer: 21+x2\dfrac{2}{1 + x^2} — three lines instead of a quotient-rule page.

Example 7 — The classification table in action

Differentiate y=xxy = x^x, x>0x > 0, and state the derivative of axa^x for constant a>0a > 0.

Step 1 — log the variable-variable power: logy=xlogx\log y = x\log x, so 1yy=logx+1\frac{1}{y}y' = \log x + 1.

Step 2 — multiply back: ddxxx=xx(1+logx)\frac{d}{dx}x^x = x^x(1 + \log x).

Step 3 — the constant-base cousin: ddxax=axloga\frac{d}{dx}a^x = a^x\log a.

Answer: as displayed — and xax^a takes the plain power rule: three shapes, three different tools.

Example 8 — Full logarithmic differentiation

Differentiate xsinxx^{\sin x}, x>0x > 0, w.r.t. xx.

Step 1 — log: logy=sinxlogx\log y = \sin x\log x.

Step 2 — product rule: 1yy=cosxlogx+sinxx\frac{1}{y}y' = \cos x\log x + \frac{\sin x}{x}.

Answer: dydx=xsinx(cosxlogx+sinxx)\dfrac{dy}{dx} = x^{\sin x}\left(\cos x\log x + \dfrac{\sin x}{x}\right) — the original function always rides out front.

Example 9 — Exponential and logarithm composites

Differentiate (i) ex3e^{x^3}, (ii) log(logx)\log(\log x) for x>1x > 1.

Step 1 — (i): the exponential reproduces itself, times the inner derivative: 3x2ex33x^2e^{x^3}.

Step 2 — (ii): two chain links: 1logx1x=1xlogx\frac{1}{\log x}\cdot\frac{1}{x} = \frac{1}{x\log x}.

Answer: as computed — the derivative pair exexe^x \to e^x, logx1x\log x \to \frac{1}{x} plus the chain rule covers the whole family.

Worked Examples — Parametric and Second Order

Example 10 — The parabola

Find dydx\dfrac{dy}{dx} if x=at2x = at^2, y=2aty = 2at.

Step 1 — differentiate each w.r.t. tt and divide: 2a2at=1t\frac{2a}{2at} = \frac{1}{t}.

Answer: 1t\dfrac{1}{t} — answers in terms of the parameter are complete answers.

Example 11 — The cycloid with the half-angle finish

Find dydx\dfrac{dy}{dx} if x=a(θ+sinθ)x = a(\theta + \sin\theta), y=a(1cosθ)y = a(1 - \cos\theta).

Step 1 — divide the rates: asinθa(1+cosθ)\dfrac{a\sin\theta}{a(1 + \cos\theta)}.

Step 2 — half-angle collapse: 2sinθ2cosθ22cos2θ2=tanθ2\dfrac{2\sin\frac{\theta}{2}\cos\frac{\theta}{2}}{2\cos^2\frac{\theta}{2}} = \tan\dfrac{\theta}{2}.

Answer: tanθ2\tan\dfrac{\theta}{2} — the unsimplified quotient loses the presentation mark.

Example 12 — The sine-cosine relation

If y=Asinx+Bcosxy = A\sin x + B\cos x, prove d2ydx2+y=0\dfrac{d^2y}{dx^2} + y = 0.

Step 1 — differentiate twice: y=AsinxBcosx=yy'' = -A\sin x - B\cos x = -y.

Answer: y+y=0y'' + y = 0 for every choice of constants. ∎

Example 13 — The exponential relation

If y=3e2x+2e3xy = 3e^{2x} + 2e^{3x}, prove y5y+6y=0y'' - 5y' + 6y = 0.

Step 1 — the two derivatives: y=6e2x+6e3xy' = 6e^{2x} + 6e^{3x}, y=12e2x+18e3xy'' = 12e^{2x} + 18e^{3x}.

Step 2 — substitute: coefficients of e2xe^{2x}: 1230+18=012 - 30 + 18 = 0; of e3xe^{3x}: 1830+12=018 - 30 + 12 = 0.

Answer: proved. ∎ (Pattern: ekxe^{kx} passes through as k25k+6=(k2)(k3)k^2 - 5k + 6 = (k-2)(k-3), zero at the exponents present.)

Example 14 — Clear-then-differentiate

If y=sin1xy = \sin^{-1}x, show that (1x2)yxy=0(1 - x^2)y'' - xy' = 0.

Step 1 — first derivative, then clear the radical: y=11x2y' = \frac{1}{\sqrt{1 - x^2}}, so 1x2y=1\sqrt{1 - x^2}\,y' = 1.

Step 2 — differentiate the cleaned equation: 1x2yx1x2y=0\sqrt{1 - x^2}\,y'' - \frac{x}{\sqrt{1 - x^2}}y' = 0.

Step 3 — multiply by 1x2\sqrt{1 - x^2}: (1x2)yxy=0(1 - x^2)y'' - xy' = 0. ∎

Answer: proved — the clean-up before the second differentiation is the whole trick, and it recurs in every relation proof of this type.