Mathematics: Class 12 (Book 1) — Chapter 5: Continuity and Differentiability

Introduction & Concept of Continuity

Historical Chronicle / Epigraph: Albert Einstein

  • Historical Context & Milestones: Albert Einstein (1879–1955) famously remarked, "The whole of science is nothing more than a refinement of everyday thinking." This philosophy applies directly to the mathematical formalization of continuity, which translates our intuitive notion of an unbroken curve into rigorous limit-based definitions.

Historical Chronicle / Epigraph: Sir Isaac Newton

  • Historical Context & Milestones: Sir Isaac Newton (1642–1727) co-invented calculus to describe physical motion. His work on limits and rates of change laid the groundwork for the rigorous definitions of continuity and differentiability used today.

This chapter introduces the fundamental concepts of continuity and differentiability of real-valued functions, establishing the mathematical framework for calculus.

Definition of Continuity at a Point

Suppose $f$ is a real function on a subset of the real numbers and let $c$ be a point in the domain of $f$. Then $f$ is continuous at $c$ if:

$$\lim_{x \to c} f(x) = f(c)$$

More elaborately, a function is continuous at $x = c$ if the left hand limit (LHL), right hand limit (RHL), and the value of the function at $x = c$ exist and are all equal to each other:

$$\lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x) = f(c)$$

If $f$ is not continuous at $c$, we say $f$ is discontinuous at $c$, and $c$ is called a point of discontinuity of $f$.

Continuity in an Interval

A real function $f$ is said to be continuous if it is continuous at every point in its domain.

  • For a closed interval $[a, b]$, continuity of $f$ means it is continuous at every point in $(a, b)$, and at the endpoints:
    • $\lim_{x \to a^+} f(x) = f(a)$ (continuity from the right at $a$)
    • $\lim_{x \to b^-} f(x) = f(b)$ (continuity from the left at $b$)
Illustrative Examples of Continuity

Mathematical Problem Statement: Discuss the continuity of the function $f$ given by $f(x) = |x| at x = 0$.


Step-by-Step Algorithmic Solution Trace:

  1. By definition, the modulus function is:$$f(x) = \begin{cases} -x, & \text{if } x < 0 \\ x, & \text{if } x \ge 0 \end{cases}$$
  2. Find the Left Hand Limit (LHL) at $x = 0$:$$\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} (-x) = 0$$
  3. Find the Right Hand Limit (RHL) at $x = 0$:$$\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} (x) = 0$$
  4. Find the value of the function at $x = 0$:$$f(0) = 0$$
  5. Since LHL = RHL = $f(0) = 0$, the function is continuous at $x = 0$.

Final Evaluation Output: $f(x) = |x|$ is continuous at $x = 0$.

Mathematical Problem Statement: Show that the greatest integer function $f(x) = [x]$ is discontinuous at every integral point.


Step-by-Step Algorithmic Solution Trace:

  1. Let $c$ be any integer. By definition, $[x]$ denotes the greatest integer less than or equal to $x$.
  2. Evaluate the Left Hand Limit (LHL) as $x \to c^-$:$$\lim_{x \to c^-} f(x) = \lim_{x \to c^-} [x] = c - 1$$
  3. Evaluate the Right Hand Limit (RHL) as $x \to c^+$:$$\lim_{x \to c^+} f(x) = \lim_{x \to c^+} [x] = c$$
  4. Since LHL $\neq$ RHL, the limit of $f(x)$ as $x \to c$ does not exist.

Final Evaluation Output: $f(x) = [x]$ is discontinuous at every integer point.

Algebra of Continuous Functions

The algebraic combinations of continuous functions preserve continuity under specific conditions.

Theorem 1: Algebraic Operations

Suppose $f$ and $g$ are two real functions continuous at a real number $c$. Then:

  1. $f + g$ is continuous at $x = c$.
  2. $f - g$ is continuous at $x = c$.
  3. $f \cdot g$ is continuous at $x = c$.
  4. $\left(\frac{f}{g}\right)$ is continuous at $x = c$, provided $g(c) \neq 0$.
Continuity of Standard Functions
Function Type Domain of Continuity Continuity Status
Polynomial Function $p(x) = a_0 + a_1 x + \dots + a_n x^n$ $\mathbb{R}$ Continuous everywhere
Rational Function $f(x) = \frac{p(x)}{q(x)}$ $\{x \in \mathbb{R} : q(x) \neq 0\}$ Continuous in its domain
Sine Function $f(x) = \sin x$ $\mathbb{R}$ Continuous everywhere
Cosine Function $f(x) = \cos x$ $\mathbb{R}$ Continuous everywhere
Tangent Function $f(x) = \tan x$ $\{x \in \mathbb{R} : x \neq (2n+1)\frac{\pi}{2}, n \in \mathbb{Z}\}$ Continuous in its domain
Theorem 2: Composite Functions

Suppose $f$ and $g$ are real-valued functions such that $(f \circ g)$ is defined at $c$. If $g$ is continuous at $c$ and $f$ is continuous at $g(c)$, then $(f \circ g)$ is continuous at $c$.

Mathematical Problem Statement: Show that $f(x) = \sin(x^2)$ is a continuous function.


Step-by-Step Algorithmic Solution Trace:

  1. Express $f(x)$ as a composition of two functions $g$ and $h$, i.e., $f = g \circ h$.
  2. Let $h(x) = x^2$ (a polynomial function, hence continuous everywhere).
  3. Let $g(x) = \sin x$ (a trigonometric function, hence continuous everywhere).
  4. Since both $g$ and $h$ are continuous everywhere, their composition $(g \circ h)(x) = g(h(x)) = \sin(x^2)$ is also continuous everywhere.

Final Evaluation Output: $f(x) = \sin(x^2)$ is continuous everywhere.

Differentiability & Chain Rule

Differentiability measures the rate of change of a function and is a stronger condition than continuity.

Definition of Derivative

Let $f$ be a real function and $c$ be a point in its domain. The derivative of $f$ at $c$ is defined by:

$$f'(c) = \lim_{h \to 0} \frac{f(c+h) - f(c)}{h}$$

provided this limit exists. A function is differentiable in an interval $[a, b]$ if it is differentiable at every point in $(a, b)$, and has one-sided derivatives at the endpoints.

Theorem 3: Differentiability $\implies$ Continuity

If a function $f$ is differentiable at a point $c$, then it is also continuous at that point.

Note: The converse is not true. For example, $f(x) = |x|$ is continuous at $x = 0$ but not differentiable at $x = 0$ because the left-hand derivative ($-1$) and right-hand derivative ($1$) do not coincide.

Theorem 4: Chain Rule for Composite Functions

Let $f$ be a composite of two functions $u$ and $v$, i.e., $f = v \circ u$. Let $t = u(x)$. If both $\frac{dt}{dx}$ and $\frac{dv}{dt}$ exist, then:

$$\frac{df}{dx} = \frac{dv}{dt} \cdot \frac{dt}{dx}$$

Mathematical Problem Statement: Find the derivative of $f(x) = \sin(x^2)$ with respect to $x$.


Step-by-Step Algorithmic Solution Trace:

  1. Let $t = u(x) = x^2$ and $y = v(t) = \sin t$.
  2. Compute the derivatives:$$\frac{dt}{dx} = 2x \quad \text{and} \quad \frac{dy}{dt} = \cos t$$
  3. Apply the Chain Rule:$$\frac{dy}{dx} = \frac{dy}{dt} \cdot \frac{dt}{dx} = \cos t \cdot 2x$$
  4. Substitute $t = x^2$ back into the expression:$$\frac{dy}{dx} = 2x \cos(x^2)$$

Final Evaluation Output: $\frac{d}{dx}(\sin(x^2)) = 2x \cos(x^2)$

Implicit & Inverse Trigonometric Differentiation
Implicit Differentiation

When a relationship between $x$ and $y$ is expressed implicitly (e.g., $y + \sin y = \cos x$), we differentiate both sides directly with respect to $x$ and solve for $\frac{dy}{dx}$.

Mathematical Problem Statement: Find $\frac{dy}{dx}$ if $y + \sin y = \cos x$.


Step-by-Step Algorithmic Solution Trace:

  1. Differentiate both sides of the equation with respect to $x$:$$\frac{d}{dx}(y) + \frac{d}{dx}(\sin y) = \frac{d}{dx}(\cos x)$$
  2. Apply the chain rule to the term involving $y$:$$\frac{dy}{dx} + \cos y \cdot \frac{dy}{dx} = -\sin x$$
  3. Factor out $\frac{dy}{dx}$:$$\frac{dy}{dx}(1 + \cos y) = -\sin x$$
  4. Solve for $\frac{dy}{dx}$:$$\frac{dy}{dx} = -\frac{\sin x}{1 + \cos y} \quad \text{where } y \neq (2n+1)\pi$$

Final Evaluation Output: $\frac{dy}{dx} = -\frac{\sin x}{1 + \cos y}$

Derivatives of Inverse Trigonometric Functions
Function $f(x)$ Derivative $f'(x)$ Domain
$\sin^{-1} x$ $\frac{1}{\sqrt{1 - x^2}}$ $(-1, 1)$
$\cos^{-1} x$ $-\frac{1}{\sqrt{1 - x^2}}$ $(-1, 1)$
$\tan^{-1} x$ $\frac{1}{1 + x^2}$ $\mathbb{R}$

Mathematical Problem Statement: Prove that $\frac{d}{dx}(\sin^{-1} x) = \frac{1}{\sqrt{1 - x^2}}$ for $x \in (-1, 1)$.


Step-by-Step Algorithmic Solution Trace:

  1. Let $y = \sin^{-1} x$. Then $x = \sin y$.
  2. Differentiate both sides with respect to $x$:$$1 = \cos y \cdot \frac{dy}{dx}$$
  3. Solve for $\frac{dy}{dx}$:$$\frac{dy}{dx} = \frac{1}{\cos y}$$
  4. Since $y \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$, $\cos y$ is positive:$$\cos y = \sqrt{1 - \sin^2 y} = \sqrt{1 - x^2}$$
  5. Substitute back:$$\frac{dy}{dx} = \frac{1}{\sqrt{1 - x^2}}$$

Final Evaluation Output: $\frac{d}{dx}(\sin^{-1} x) = \frac{1}{\sqrt{1 - x^2}}$

Exponential & Logarithmic Functions
Definitions and Properties
  • Exponential Function: $y = b^x$ ($b > 1$). The domain is $\mathbb{R}$ and the range is $(0, \infty)$. If $b = e$, it is the natural exponential function $y = e^x$.
  • Logarithmic Function: $y = \log_b x$ ($b > 1, x > 0$). It is the inverse of the exponential function: $\log_b x = y \iff b^y = x$.

Core Logarithmic Identities:

  1. $\log_a p = \frac{\log_b p}{\log_b a}$ (Change of base)
  2. $\log_b(pq) = \log_b p + \log_b q$
  3. $\log_b\left(\frac{x}{y}\right) = \log_b x - \log_b y$
  4. $\log_b(p^n) = n \log_b p$
Theorem 5: Derivatives of Exponential and Logarithmic Functions
  1. $\frac{d}{dx}(e^x) = e^x$
  2. $\frac{d}{dx}(\log x) = \frac{1}{x}$

Mathematical Problem Statement: Differentiate $y = e^{-x}$ with respect to $x$.


Step-by-Step Algorithmic Solution Trace:

  1. Let $u = -x$, so $y = e^u$.
  2. Compute derivatives:$$\frac{dy}{du} = e^u \quad \text{and} \quad \frac{du}{dx} = -1$$
  3. Apply the chain rule:$$\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = e^u \cdot (-1) = -e^{-x}$$

Final Evaluation Output: $\frac{d}{dx}(e^{-x}) = -e^{-x}$

Logarithmic Differentiation

This technique is highly useful for differentiating functions of the form $y = [u(x)]^{v(x)}$ or complex products and quotients.

Methodology
  1. Take the natural logarithm of both sides: $\log y = v(x) \log [u(x)]$.
  2. Differentiate implicitly with respect to $x$:$$\frac{1}{y} \frac{dy}{dx} = v'(x) \log [u(x)] + v(x) \cdot \frac{u'(x)}{u(x)}$$
  3. Multiply by $y$ to obtain $\frac{dy}{dx}$.
Solved Examples

Mathematical Problem Statement: Differentiate $y = x^{\sin x}$ with respect to $x$ for $x > 0$.


Step-by-Step Algorithmic Solution Trace:

  1. Take the natural logarithm on both sides:$$\log y = \sin x \log x$$
  2. Differentiate both sides with respect to $x$ using the product rule:$$\frac{1}{y} \frac{dy}{dx} = \frac{d}{dx}(\sin x) \cdot \log x + \sin x \cdot \frac{d}{dx}(\log x)$$$$\frac{1}{y} \frac{dy}{dx} = \cos x \log x + \frac{\sin x}{x}$$
  3. Multiply by $y$:$$\frac{dy}{dx} = y \left( \cos x \log x + \frac{\sin x}{x} \right)$$
  4. Substitute $y = x^{\sin x}$:$$\frac{dy}{dx} = x^{\sin x} \left( \cos x \log x + \frac{\sin x}{x} \right)$$

Final Evaluation Output: $\frac{dy}{dx} = x^{\sin x} \left( \cos x \log x + \frac{\sin x}{x} \right)$

Parametric Differentiation

When $x$ and $y$ are expressed in terms of a third variable $t$ (called the parameter), i.e., $x = f(t)$ and $y = g(t)$, we find $\frac{dy}{dx}$ without eliminating $t$.

Formula $$\frac{dy}{dx} = \frac{\frac{dy}{dt}}{\frac{dx}{dt}} = \frac{g'(t)}{f'(t)} \quad \text{provided } f'(t) \neq 0$$
Solved Examples

Mathematical Problem Statement: Find $\frac{dy}{dx}$ if $x = a \cos \theta$ and $y = a \sin \theta$.


Step-by-Step Algorithmic Solution Trace:

  1. Differentiate $x$ with respect to $\theta$:$$\frac{dx}{d\theta} = -a \sin \theta$$
  2. Differentiate $y$ with respect to $\theta$:$$\frac{dy}{d\theta} = a \cos \theta$$
  3. Apply the parametric derivative formula:$$\frac{dy}{dx} = \frac{\frac{dy}{d\theta}}{\frac{dx}{d\theta}} = \frac{a \cos \theta}{-a \sin \theta} = -\cot \theta$$

Final Evaluation Output: $\frac{dy}{dx} = -\cot \theta$

Second Order Derivatives

The derivative of the first derivative with respect to $x$ is called the second order derivative.

Notation

If $y = f(x)$, then:

$$\frac{dy}{dx} = f'(x)$$ $$\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) = f''(x) = y'' = y_2$$
Solved Examples

Mathematical Problem Statement: If $y = A \sin x + B \cos x$, prove that $\frac{d^2y}{dx^2} + y = 0$.


Step-by-Step Algorithmic Solution Trace:

  1. Find the first derivative:$$\frac{dy}{dx} = A \cos x - B \sin x$$
  2. Differentiate again with respect to $x$:$$\frac{d^2y}{dx^2} = -A \sin x - B \cos x$$
  3. Factor out the negative sign:$$\frac{d^2y}{dx^2} = -(A \sin x + B \cos x) = -y$$
  4. Rearrange the terms:$$\frac{d^2y}{dx^2} + y = 0$$

Final Evaluation Output: $\frac{d^2y}{dx^2} + y = 0$ is proved.

Chapter Summary