Skip to content

Continuity and Differentiability

sources:

  • text: Standard textbook reference

Continuity ensures a function has no breaks, jumps, or holes. Differentiability ensures a function has a defined derivative. Every differentiable function is continuous, but not vice versa.

  • ff is continuous at x=ax = a if limxaf(x)=f(a)\lim_{x \to a} f(x) = f(a)
  • Left-hand limit: limxaf(x)\lim_{x \to a^-} f(x), right-hand limit: limxa+f(x)\lim_{x \to a^+} f(x)
  • ff is differentiable at x=ax = a if f(a)=limh0f(a+h)f(a)hf'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h} exists
  • Chain rule: ddx[f(g(x))]=f(g(x))g(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)
  • Implicit differentiation: differentiate both sides with respect to xx
  • Logarithmic differentiation: take ln\ln of both sides before differentiating

Worked Example 1 — Continuity at a Point

Section titled “Worked Example 1 — Continuity at a Point”

Problem: Determine whether f(x)={x24x2x26x=2f(x) = \begin{cases} \frac{x^2 - 4}{x - 2} & x \neq 2 \\ 6 & x = 2 \end{cases} is continuous at x=2x = 2.

Solution:

For x2x \neq 2: f(x)=x24x2=(x2)(x+2)x2=x+2f(x) = \frac{x^2 - 4}{x - 2} = \frac{(x-2)(x+2)}{x-2} = x + 2

Left-hand limit: limx2f(x)=2+2=4\lim_{x \to 2^-} f(x) = 2 + 2 = 4

Right-hand limit: limx2+f(x)=2+2=4\lim_{x \to 2^+} f(x) = 2 + 2 = 4

But f(2)=64f(2) = 6 \neq 4.

Since limx2f(x)f(2)\lim_{x \to 2} f(x) \neq f(2), the function is not continuous at x=2x = 2.

Common mistake: Evaluating the limit by direct substitution when the function has a removable discontinuity. Simplify first.

Problem: Find ddx[sin(ln(x2+1))]\frac{d}{dx}[\sin(\ln(x^2 + 1))].

Solution:

Let u=ln(x2+1)u = \ln(x^2 + 1), v=sin(u)v = \sin(u):

ddx[sin(ln(x2+1))]=cos(ln(x2+1))1x2+12x\frac{d}{dx}[\sin(\ln(x^2 + 1))] = \cos(\ln(x^2 + 1)) \cdot \frac{1}{x^2 + 1} \cdot 2x

=2xcos(ln(x2+1))x2+1= \frac{2x \cos(\ln(x^2 + 1))}{x^2 + 1}

Common mistake: Forgetting one of the chain rule steps. Each nested function requires one more derivative factor.

Worked Example 3 — Logarithmic Differentiation

Section titled “Worked Example 3 — Logarithmic Differentiation”

Problem: Find dydx\frac{dy}{dx} if y=xxy = x^x.

Solution:

Take ln\ln of both sides: lny=xlnx\ln y = x \ln x

Differentiate implicitly: 1ydydx=lnx+x1x=lnx+1\frac{1}{y}\frac{dy}{dx} = \ln x + x \cdot \frac{1}{x} = \ln x + 1

dydx=y(lnx+1)=xx(lnx+1)\frac{dy}{dx} = y(\ln x + 1) = x^x(\ln x + 1)

Common mistake: Trying to use the power rule for xxx^x. The power rule applies to xnx^n (constant exponent), not axa^x (constant base).

  1. Determine if f(x)=x3f(x) = |x - 3| is differentiable at x=3x = 3.
  2. Find dydx\frac{dy}{dx} if y=esinxy = e^{\sin x}.
  3. Find dydx\frac{dy}{dx} if y=(sinx)xy = (\sin x)^x.

Continuity and differentiability are the foundations of calculus. They guarantee that functions behave well enough for differentiation and integration, which are used throughout physics, engineering, economics, and biology.

A function is continuous if you can draw it without lifting your pen: Continuity means there are no holes, jumps, or vertical asymptotes — the function flows smoothly. Think of it as a road with no potholes or cliffs. Differentiability is stricter: it means the road not only exists but has a well-defined slope at every point (no sharp corners). The absolute value function |x| is continuous at x = 0 (no hole) but not differentiable there (sharp V-shape). Chain rule, implicit differentiation, and logarithmic differentiation are just tools for finding slopes of curves that are hard to differentiate directly.

Why it matters: Continuity and differentiability are the foundations of calculus — they guarantee that limits, derivatives, and integrals work properly. Every physical law expressed as a differential equation assumes continuity. Without these concepts, we couldn’t model motion, growth, decay, or virtually any changing quantity.

The key insight: Differentiability implies continuity (if a function has a derivative, it must be continuous), but continuity does NOT imply differentiability (a continuous function can have sharp corners). This one-way relationship is a fundamental theorem of calculus.

  • Check continuity by verifying left limit = right limit = function value
  • Differentiability implies continuity, but continuity does not imply differentiability
  • Chain rule problems often have 2-3 nested functions
  • Logarithmic differentiation is useful for functions of the form f(x)g(x)f(x)^{g(x)}
  • Piecewise functions often have discontinuities at the boundaries
  • Continuity: limxaf(x)=limxa+f(x)=f(a)\lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = f(a)
  • Derivative definition: f(a)=limh0f(a+h)f(a)hf'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}
  • Chain rule: dydx=dydududx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}
  • Implicit differentiation: differentiate both sides, then solve for dydx\frac{dy}{dx}
  • Logarithmic differentiation: ddx[f(x)]=f(x)ddx[lnf(x)]\frac{d}{dx}[f(x)] = f(x) \cdot \frac{d}{dx}[\ln f(x)]

Worked Example 4 — Continuity of Piecewise Function

Section titled “Worked Example 4 — Continuity of Piecewise Function”

Problem: Find the value of kk if f(x)={kx+1x32x1x>3f(x) = \begin{cases} kx + 1 & x \leq 3 \\ 2x - 1 & x > 3 \end{cases} is continuous at x=3x = 3.

Solution:

For continuity at x=3x = 3, we need limx3f(x)=limx3+f(x)=f(3)\lim_{x \to 3^-} f(x) = \lim_{x \to 3^+} f(x) = f(3).

Left-hand limit: limx3f(x)=k(3)+1=3k+1\lim_{x \to 3^-} f(x) = k(3) + 1 = 3k + 1

Right-hand limit: limx3+f(x)=2(3)1=5\lim_{x \to 3^+} f(x) = 2(3) - 1 = 5

Function value: f(3)=3k+1f(3) = 3k + 1

Setting equal: 3k+1=5    k=433k + 1 = 5 \implies k = \frac{4}{3}

Common mistake: Forgetting to check that the function value equals the limits, not just that the left and right limits are equal.

Worked Example 5 — Derivative Using Chain Rule (Multi-layer)

Section titled “Worked Example 5 — Derivative Using Chain Rule (Multi-layer)”

Problem: Find ddx[ln(sin(x2))]\frac{d}{dx} \left[ \ln\left(\sqrt{\sin(x^2)}\right) \right].

Solution:

Simplify first: ln(sin(x2))=12ln(sin(x2))\ln\left(\sqrt{\sin(x^2)}\right) = \frac{1}{2} \ln(\sin(x^2))

Now differentiate: ddx[12ln(sin(x2))]=121sin(x2)cos(x2)2x\frac{d}{dx} \left[ \frac{1}{2} \ln(\sin(x^2)) \right] = \frac{1}{2} \cdot \frac{1}{\sin(x^2)} \cdot \cos(x^2) \cdot 2x

=xcos(x2)sin(x2)=xcot(x2)= \frac{x \cos(x^2)}{\sin(x^2)} = x \cot(x^2)

Common mistake: Not simplifying before differentiating. Simplifying ln(u)\ln(\sqrt{u}) to 12lnu\frac{1}{2}\ln u makes the chain rule much easier.

Worked Example 6 — Implicit Differentiation

Section titled “Worked Example 6 — Implicit Differentiation”

Problem: Find dydx\frac{dy}{dx} if x2+y2+sin(xy)=4x^2 + y^2 + \sin(xy) = 4.

Solution:

Differentiate both sides with respect to xx: 2x+2ydydx+cos(xy)(y+xdydx)=02x + 2y \frac{dy}{dx} + \cos(xy) \left(y + x \frac{dy}{dx}\right) = 0

Expand: 2x+2ydydx+ycos(xy)+xcos(xy)dydx=02x + 2y \frac{dy}{dx} + y\cos(xy) + x\cos(xy) \frac{dy}{dx} = 0

Collect dydx\frac{dy}{dx} terms: dydx(2y+xcos(xy))=2xycos(xy)\frac{dy}{dx} \left(2y + x\cos(xy)\right) = -2x - y\cos(xy)

dydx=2xycos(xy)2y+xcos(xy)\frac{dy}{dx} = \frac{-2x - y\cos(xy)}{2y + x\cos(xy)}

Common mistake: Forgetting to apply the chain rule when differentiating sin(xy)\sin(xy). The derivative of sin(xy)\sin(xy) is cos(xy)(y+xdydx)\cos(xy) \cdot (y + x \frac{dy}{dx}).

  1. For piecewise functions, always check continuity at the boundary by computing left and right limits separately
  2. The function xa|x - a| is continuous everywhere but not differentiable at x=ax = a
  3. When using logarithmic differentiation, remember that ln(ab)=lna+lnb\ln(ab) = \ln a + \ln b can simplify products
  4. For implicit differentiation, always collect dydx\frac{dy}{dx} terms on one side before solving
  5. The derivative of axa^x is axlnaa^x \ln a (not xax1xa^{x-1}), while the derivative of xnx^n is nxn1nx^{n-1} (not nxlnxn^x \ln x)

Confusing continuity with differentiability. A function can be continuous but not differentiable (like |x| at x = 0). Continuity means no breaks or jumps; differentiability means the derivative exists. Students often assume continuity implies differentiability, which is false.

Forgetting that the derivative of a^x is a^x ln(a), not x*a^(x-1). The power rule x^n -> nx^(n-1) applies only when x is the variable and n is constant. For a^x where a is constant, the derivative is a^x ln(a). Students frequently apply the power rule to exponential functions.

Making sign errors in implicit differentiation. When differentiating y^2 implicitly, the result is 2y * dy/dx, not just 2y. Students often forget the chain rule factor dy/dx when differentiating terms involving y. Always multiply by dy/dx when differentiating any term containing y with respect to x.

  • Derivatives — Differentiability implies continuity, making continuity a prerequisite for understanding derivatives.
  • Integrals — The definite integral requires the function to be continuous over the interval of integration.
  • Limits — Continuity is defined in terms of limits, connecting the concept to the foundational notion of limiting behaviour.