Chapter 7 · Limit, Continuity and Differentiability

7.1 Limits

Real functions can be added, multiplied, composed and inverted, and a handful of them — polynomials, rational functions, $|x|$, $[x]$, exponentials, logarithms and the trigonometric functions — build almost everything in calculus. A limit describes what a function does near a point; we evaluate limits by factorising, rationalising and the standard limits $\lim\limits_{x\to0}\frac{\sin x}{x}=1$, $\lim\limits_{x\to0}\frac{e^x-1}{x}=1$ and the $1^\infty$ rule.

A GPS tracker in a car records its position every second. Between $t=10$ s and $t=11$ s the car covered $14.2$ m; between $t=10$ s and $t=10.1$ s it covered $1.38$ m; between $t=10$ s and $t=10.01$ s, $0.1371$ m. The average speeds over these shrinking intervals are $14.2$, $13.8$ and $13.71\ \text{m/s}$, and they are settling down on a number — the speed shown by the speedometer at the instant $t=10$ s. Yet the formula "distance ÷ time" cannot be used at that instant: over an interval of length $0$ it gives $\tfrac00$. The number that the averages approach is called a limit, and limits are the one new idea on which all of calculus rests.

Limits also explain the most famous constant after $\pi$. Invest $\text{₹}\,1$ at $100\%$ annual interest compounded $n$ times a year; after a year you have $\left(1+\tfrac1n\right)^n$ rupees — $2.59$ for $n=10$, $2.705$ for $n=100$, $2.717$ for $n=1000$. More frequent compounding never pushes the amount past about $2.71828$: that limit is the number $e$. Before limits, this section collects the functions that calculus works with — their algebra, their graphs and their inverses — because a limit is always the limit of a function. In JEE Main, limits are among the most dependable questions of the paper: a $\tfrac00$ form to be cleaned up, a standard trigonometric or exponential limit, a $1^\infty$ form, or a one-sided limit of $[x]$ or $|x|$.

Real Functions, their Algebra and the Standard Functions

Section 1.2 defined a function $f:A\to B$ as a rule giving every element of $A$ exactly one image. In calculus we work almost entirely with functions whose inputs and outputs are real numbers.

📘 Definition 7.1 — Real function and the algebra of functions

A real function (real-valued function of a real variable) is a function $f:D\to\mathbb{R}$ with domain $D\subseteq\mathbb{R}$. When only a formula is given, $D$ is the largest set of real $x$ for which the formula gives a real number.

If $f$ and $g$ have domains $D_f$ and $D_g$, then on $D_f\cap D_g$ we define

$$(f\pm g)(x)=f(x)\pm g(x),\qquad (fg)(x)=f(x)\,g(x),\qquad (cf)(x)=c\,f(x)\ \ (c\in\mathbb{R}),$$

and $\left(\dfrac fg\right)(x)=\dfrac{f(x)}{g(x)}$ on the smaller set $\{x\in D_f\cap D_g:\ g(x)\ne0\}$.

A real function is even if $f(-x)=f(x)$ for every $x$ in its (symmetric) domain — its graph is symmetric about the $y$-axis, like $x^2$, $\cos x$ and $|x|$ — and odd if $f(-x)=-f(x)$ — its graph is symmetric about the origin, like $x^3$, $\sin x$ and $\tfrac1x$. Products follow the rule of signs: even $\times$ even and odd $\times$ odd are even, even $\times$ odd is odd. Most functions, such as $x+x^2$, are neither. Every function on a symmetric domain is the sum of an even and an odd part, $f(x)=\tfrac{f(x)+f(-x)}{2}+\tfrac{f(x)-f(-x)}{2}$.

📘 Definition 7.2 — Polynomial and rational functions

A polynomial function is $p(x)=a_nx^n+a_{n-1}x^{n-1}+\dots+a_1x+a_0$ with real coefficients; its domain is $\mathbb{R}$, and its degree is $n$ if $a_n\ne0$. A rational function is a quotient $r(x)=\dfrac{p(x)}{q(x)}$ of polynomials with $q$ not the zero polynomial; its domain is $\mathbb{R}$ minus the real zeros of $q$.

📘 Definition 7.3 — Exponential and logarithmic functions

Let $a\gt0$, $a\ne1$. The exponential function with base $a$ is $x\mapsto a^x$, with domain $\mathbb{R}$ and range $(0,\infty)$. For $x\gt0$, the logarithm $\log_a x$ is the unique real $y$ with $a^y=x$:

$$y=\log_a x\iff a^y=x\qquad(x\gt0).$$

The most important base is $e=2.71828\ldots$ (Theorem 7.8); $e^x$ is often written $\exp x$, and $\log_e x$ is the natural logarithm $\ln x$. In JEE Main and in this course, $\log x$ without a base means $\ln x$ in calculus problems.

📐 Theorem 7.1 — Laws of exponents and logarithms

Let $a,b\gt0$ with $a,b\ne1$, and $x,y\gt0$, $r\in\mathbb{R}$. Then $a^{u}a^{v}=a^{u+v}$, $(a^u)^v=a^{uv}$, and

  1. $\log_a(xy)=\log_a x+\log_a y$, $\ \log_a\dfrac xy=\log_a x-\log_a y$, $\ \log_a(x^r)=r\log_a x$;
  2. change of base: $\log_a x=\dfrac{\log_b x}{\log_b a}=\dfrac{\ln x}{\ln a}$; and $a^{\log_a x}=x$, $\log_a(a^x)=x$;
  3. if $a\gt1$, $a^x$ and $\log_a x$ are strictly increasing ($\log_a x\lt\log_a y\iff x\lt y$); if $0\lt a\lt1$ both are strictly decreasing, and inequalities reverse when logarithms are taken.

Proof. Put $u=\log_a x$ and $v=\log_a y$, so $x=a^u$ and $y=a^v$. Then $xy=a^{u+v}$, $\tfrac xy=a^{u-v}$ and $x^r=a^{ru}$, which are the three laws of (1). For (2), $x=a^u$ gives $\log_b x=u\log_b a$ by (1), so $u=\tfrac{\log_b x}{\log_b a}$. For (3) with $a\gt1$: $a^{v}-a^{u}=a^u\left(a^{v-u}-1\right)\gt0$ whenever $v\gt u$, because $a^{t}\gt1$ for $t\gt0$; and the inverse of an increasing function is increasing (Theorem 7.2). For $0\lt a\lt1$ apply this to $\tfrac1a\gt1$. $\blacksquare$

The trigonometric functions are developed in Chapter 14; for calculus we need their domains, ranges and periods, always with the angle $x$ measured in radians ($180^\circ=\pi$).

$f$domainrangeperiodparity
$\sin x$$\mathbb{R}$$[-1,1]$$2\pi$odd
$\cos x$$\mathbb{R}$$[-1,1]$$2\pi$even
$\tan x$$x\ne(2k+1)\tfrac\pi2$$\mathbb{R}$$\pi$odd
$\cot x$$x\ne k\pi$$\mathbb{R}$$\pi$odd
$\sec x$$x\ne(2k+1)\tfrac\pi2$$(-\infty,-1]\cup[1,\infty)$$2\pi$even
$\operatorname{cosec} x$$x\ne k\pi$$(-\infty,-1]\cup[1,\infty)$$2\pi$odd
✏️ Example 1 — Domains, and the algebra of functions
Find the domain of (a) $f(x)=\ln(x^2-5x+6)$; (b) $g(x)=\sqrt{\log_{1/2}(x-1)}$; (c) $h(x)=\dfrac{\sqrt{9-x^2}}{\ln(x+2)}$. (d) Show that $F(x)=\ln\!\left(x+\sqrt{x^2+1}\right)$ is odd and that $G(x)=x\cdot\dfrac{2^x-1}{2^x+1}$ is even.
(a) The argument of a logarithm must be positive: $(x-2)(x-3)\gt0$, so $x\lt2$ or $x\gt3$. Domain $(-\infty,2)\cup(3,\infty)$.
(b) Need $x-1\gt0$ and $\log_{1/2}(x-1)\ge0=\log_{1/2}1$. The base $\tfrac12$ is less than $1$, so the inequality reverses (Theorem 7.1(3)): $x-1\le1$. Domain $(1,2]$.
(c) Three conditions: $9-x^2\ge0$ gives $[-3,3]$; $x+2\gt0$ gives $x\gt-2$; the denominator $\ln(x+2)\ne0$ gives $x\ne-1$. Domain $(-2,-1)\cup(-1,3]$.
(d) $\left(x+\sqrt{x^2+1}\right)\left(-x+\sqrt{x^2+1}\right)=x^2+1-x^2=1$, so $F(-x)=\ln\dfrac{1}{x+\sqrt{x^2+1}}=-F(x)$: odd. For $G$, multiply top and bottom of $\dfrac{2^{-x}-1}{2^{-x}+1}$ by $2^x$: it equals $\dfrac{1-2^x}{1+2^x}$, so $G(-x)=(-x)\cdot\left(-\dfrac{2^x-1}{2^x+1}\right)=G(x)$: even (odd $\times$ odd).
Check In (c), $x=0$: $\sqrt9/\ln2=4.33$ is defined ✓; $x=-1$: $\ln1=0$ in the denominator ✗; $x=3$: $0/\ln5=0$ ✓.

Let $f(x)=\sqrt x$ and $g(x)=x-1$. The domain of $\dfrac fg$ is

Graphs of Simple Functions and Inverse Functions

Four functions with corners and jumps appear in JEE Main far more often than their simple formulas suggest, because they are exactly where limits, continuity and derivatives can fail.

📘 Definition 7.4 — Modulus, signum, greatest integer and fractional part

For real $x$:

  • modulus $|x|=x$ if $x\ge0$ and $-x$ if $x\lt0$ — the distance from $x$ to $0$;
  • signum $\operatorname{sgn}x=1$ if $x\gt0$, $0$ if $x=0$, $-1$ if $x\lt0$ (so $x=|x|\operatorname{sgn}x$);
  • greatest integer $[x]$ (also written $\lfloor x\rfloor$, the floor of $x$) $=$ the greatest integer that is $\le x$: $[2.7]=2$, $[3]=3$, $[-2.3]=-3$;
  • fractional part $\{x\}=x-[x]$, which always lies in $[0,1)$: $\{2.7\}=0.7$, $\{-2.3\}=0.7$.

The definition of $[x]$ gives the inequalities used in almost every problem about it: $[x]\le x\lt[x]+1$, equivalently $x-1\lt[x]\le x$, and $[x+n]=[x]+n$ for every integer $n$. So $\{x\}$ is periodic with period $1$, and $[x]+[-x]$ is $0$ when $x$ is an integer and $-1$ otherwise.

Figure 7.1 — $|x|$ has a corner at $0$; $\operatorname{sgn}x$ jumps at $0$; $[x]$ and $\{x\}$ jump at every integer. A filled dot belongs to the graph, an open dot does not.
🧭 Problem-solving strategy — building graphs from simple ones
  1. $y=f(x-a)+b$: shift the graph of $f$ by $a$ to the right and $b$ upwards. $y=kf(x)$ stretches vertically; $y=f(kx)$ ($k\gt1$) squeezes horizontally towards the $y$-axis.
  2. $y=-f(x)$ reflects in the $x$-axis; $y=f(-x)$ reflects in the $y$-axis.
  3. $y=|f(x)|$: keep the part of the graph on or above the $x$-axis and reflect the part below it upwards.
  4. $y=f(|x|)$: keep the part for $x\ge0$ and reflect it in the $y$-axis (an even function).
  5. The number of real solutions of $f(x)=g(x)$ is the number of intersections of the two graphs — often the fastest route in an MCQ.
✏️ Example 2 — Graphs with $|\ |$, $[\ ]$ and $\{\ \}$
(a) Sketch $y=|x^2-4x+3|$ and find the number of real solutions of $|x^2-4x+3|=k$ for each $k\ge0$. (b) Solve $[x]^2-3[x]+2=0$. (c) Find all real $x$ with $\{x\}=\dfrac x3$.
(a) graph $x^2-4x+3=(x-1)(x-3)=(x-2)^2-1$ is a parabola with zeros $1,3$ and vertex $(2,-1)$. Taking the modulus reflects the arch between $1$ and $3$ upwards, giving a "W" with a hump of height $1$ at $x=2$.
(a) count The line $y=k$ meets the W in $2$ points for $k=0$ ($x=1,3$), $4$ points for $0\lt k\lt1$, $3$ points for $k=1$ (it touches the hump), and $2$ points for $k\gt1$.
(b) Put $t=[x]$, an integer: $t^2-3t+2=0$ gives $t=1$ or $t=2$. $[x]=1\iff1\le x\lt2$ and $[x]=2\iff2\le x\lt3$, so $x\in[1,3)$.
(c) $\{x\}\in[0,1)$ forces $\tfrac x3\in[0,1)$, so $0\le x\lt3$. On $[0,1)$: $x=\tfrac x3$ gives $x=0$. On $[1,2)$: $x-1=\tfrac x3$ gives $x=\tfrac32$ ✓. On $[2,3)$: $x-2=\tfrac x3$ gives $x=3\notin[2,3)$. Solutions: $x=0$ and $x=\tfrac32$.
⏱ Shortcut For (c), draw the saw-tooth $y=\{x\}$ and the line $y=\tfrac x3$ through the origin: the line leaves the strip $0\le y\lt1$ at $x=3$, after cutting two teeth.

Section 1.2 showed that a bijection $f:A\to B$ pairs the elements of $A$ and $B$ perfectly. Reading the pairing backwards gives a new function.

📘 Definition 7.5 — Inverse function

Let $f:A\to B$ be a bijection (one-one and onto). Its inverse $f^{-1}:B\to A$ sends each $y\in B$ to the unique $x\in A$ with $f(x)=y$:

$$f^{-1}(y)=x\iff f(x)=y,\qquad\text{so}\quad f^{-1}\big(f(x)\big)=x\ (x\in A),\quad f\big(f^{-1}(y)\big)=y\ (y\in B).$$
📐 Theorem 7.2 — Properties of inverse functions
  1. $f:A\to B$ has an inverse — a function $g:B\to A$ with $g\circ f=I_A$ and $f\circ g=I_B$ — if and only if $f$ is a bijection, and then the inverse is unique.
  2. The graph of $f^{-1}$ is the mirror image of the graph of $f$ in the line $y=x$.
  3. $\left(f^{-1}\right)^{-1}=f$, and for bijections $f:A\to B$, $g:B\to C$: $(g\circ f)^{-1}=f^{-1}\circ g^{-1}$.
  4. If $f$ is strictly increasing on an interval, so is $f^{-1}$.

Proof. (1) If such a $g$ exists, $f(x_1)=f(x_2)$ gives $x_1=g(f(x_1))=g(f(x_2))=x_2$, so $f$ is one-one; and every $y\in B$ equals $f(g(y))$, so $f$ is onto. Conversely, for a bijection Definition 7.5 gives such a $g$. If $g$ and $h$ both work, $g=g\circ(f\circ h)=(g\circ f)\circ h=h$. (2) $(p,q)$ lies on the graph of $f$ $\iff q=f(p)\iff p=f^{-1}(q)\iff(q,p)$ lies on the graph of $f^{-1}$, and $(q,p)$ is the reflection of $(p,q)$ in $y=x$. (3) $f$ is an inverse of $f^{-1}$ by the two identities in Definition 7.5; and $(f^{-1}\circ g^{-1})\circ(g\circ f)$ $=f^{-1}\circ(g^{-1}\circ g)\circ f$ $=f^{-1}\circ f=I_A$, similarly in the other order. (4) If $y_1\lt y_2$ but $x_1=f^{-1}(y_1)\ge x_2=f^{-1}(y_2)$, then $y_1=f(x_1)\ge f(x_2)=y_2$, a contradiction. $\blacksquare$

Two inverse pairs matter most in calculus. $e^x:\mathbb{R}\to(0,\infty)$ and $\ln x:(0,\infty)\to\mathbb{R}$ are inverse to each other: $\ln(e^x)=x$ for all real $x$ and $e^{\ln x}=x$ for $x\gt0$ — their graphs are mirror images in $y=x$. And $\sin x$ is not one-one on $\mathbb{R}$, but it is a bijection from $\left[-\tfrac\pi2,\tfrac\pi2\right]$ onto $[-1,1]$; its inverse there is $\sin^{-1}x$, one of the inverse trigonometric functions of Section 14.2. To invert a function that is not one-one, first restrict its domain; to make it onto, take the codomain to be its range. Note that $f^{-1}(x)$ is not $\dfrac{1}{f(x)}$.

✏️ Example 3 — Finding inverses, and solving $f(x)=f^{-1}(x)$
(a) $f:\mathbb{R}-\{1\}\to\mathbb{R}-\{2\}$, $f(x)=\dfrac{2x+3}{x-1}$. Find $f^{-1}$. (b) $f:\mathbb{R}\to\mathbb{R}$, $f(x)=\dfrac{e^x-e^{-x}}{2}$. Find $f^{-1}$. (c) $f:[1,\infty)\to[1,\infty)$, $f(x)=x^2-2x+2$. Find $f^{-1}$ and solve $f(x)=f^{-1}(x)$.
In (c), find the sum of all solutions of $f(x)=f^{-1}(x)$ before you open the solution:
(a) $y=\dfrac{2x+3}{x-1}\Rightarrow yx-y=2x+3\Rightarrow x(y-2)=y+3\Rightarrow x=\dfrac{y+3}{y-2}$, defined exactly for $y\ne2$. So $f^{-1}(x)=\dfrac{x+3}{x-2}$ on $\mathbb{R}-\{2\}$. Check: $f(4)=\tfrac{11}{3}$ and $f^{-1}\!\left(\tfrac{11}3\right)=\dfrac{20/3}{5/3}=4$ ✓.
(b) $y=\dfrac{e^x-e^{-x}}2$; multiply by $2e^x$: $(e^x)^2-2y\,e^x-1=0$, a quadratic in $e^x$ with roots $y\pm\sqrt{y^2+1}$. Only the plus sign gives a positive value, so $e^x=y+\sqrt{y^2+1}$ and $f^{-1}(x)=\ln\!\left(x+\sqrt{x^2+1}\right)$ — the odd function of Example 1(d), as it must be (the inverse of an odd bijection is odd).
(c) $f(x)=(x-1)^2+1$ is strictly increasing on $[1,\infty)$ with range $[1,\infty)$. $y=(x-1)^2+1$ with $x\ge1$ gives $x=1+\sqrt{y-1}$: $f^{-1}(x)=1+\sqrt{x-1}$.
(c) equation If $f(x)=f^{-1}(x)=y$, then $f(x)=y$ and $f(y)=x$. Should $x\lt y$, increasing $f$ gives $f(x)\lt f(y)$, i.e. $y\lt x$ — impossible; likewise $x\gt y$. So $x=y$ and $f(x)=x$: $x^2-3x+2=0$, $x=1$ or $x=2$, both in the domain. Sum $=3$.
⏱ Shortcut For a strictly increasing $f$, "$f(x)=f^{-1}(x)$" means "$f(x)=x$": the two mirror-image graphs can only meet on the mirror. (For decreasing $f$ this fails: $f(x)=-x$ equals its own inverse everywhere.)

In the lab below choose $f(x)=x^2$ with no shift ($a=b=0$, plain graph) and press mirror in y = x. What does the mirror image look like?

With $x^2$, $a=0$, $b=0$ and the mirror on, the purple curve is the sideways parabola $x=y^2$, made of $\sqrt x$ and $-\sqrt x$; the readouts say "many-one" and "mirror is not a function". The horizontal line $y=4$ meets $y=x^2$ at $x=\pm2$, so after reflection the vertical line $x=4$ meets the mirror image at $y=\pm2$. Now choose $\sqrt x$ instead: it is one-one, and its mirror image is the right half of the parabola — the graph of $x^2$ on $[0,\infty)$. Restricting the domain is what makes the inverse exist.
Interactive 1 — Graph Lab: Simple Functions, Shifts and the Inverse Mirror

Choose a function $f$, shift it to $g(x)=f(x-a)+b$, and optionally apply $|g(x)|$ or $g(|x|)$. The readout runs the horizontal line test on the window. Press mirror in y = x to draw the reflection (purple): it is the graph of $g^{-1}$ exactly when $g$ is one-one. Play moves the point $P$ along the graph together with its mirror image $Q$. Both axes use the same scale, so the mirror is a true reflection.

00
graph—
horizontal line test—
mirror image—
$P\leftrightarrow Q$—

Which of these functions $\mathbb{R}\to\mathbb{R}$ has an inverse function $\mathbb{R}\to\mathbb{R}$?

Limits: Meaning, One-sided Limits and the Algebra of Limits

The function $f(x)=\dfrac{x^2-4}{x-2}$ is not defined at $x=2$ — the formula gives $\tfrac00$. But near $2$ it is perfectly well behaved: $f(1.9)=3.9$, $f(1.99)=3.99$, $f(1.999)=3.999$ and $f(2.01)=4.01$, $f(2.001)=4.001$. For $x\ne2$, $f(x)=x+2$, so $f(x)$ is as close to $4$ as we please once $x$ is close enough to $2$. We say the limit of $f(x)$ as $x$ tends to $2$ is $4$. What happens at $2$ plays no part.

📘 Definition 7.6 — Limit, left-hand limit and right-hand limit

Let $f$ be defined on an open interval around $a$, except possibly at $a$ itself. We write $\displaystyle\lim_{x\to a}f(x)=L$ if $f(x)$ can be made as close to $L$ as we like by taking $x$ close enough to $a$, with $x\ne a$. Precisely: for every $\varepsilon\gt0$ there is a $\delta\gt0$ such that

$$0\lt|x-a|\lt\delta\ \Rightarrow\ |f(x)-L|\lt\varepsilon .$$

If only $x\lt a$ is allowed we get the left-hand limit (LHL) $\displaystyle\lim_{x\to a^-}f(x)=\lim_{h\to0^+}f(a-h)$; if only $x\gt a$, the right-hand limit (RHL) $\displaystyle\lim_{x\to a^+}f(x)=\lim_{h\to0^+}f(a+h)$.

📐 Theorem 7.3 — Two-sided and one-sided limits

$\displaystyle\lim_{x\to a}f(x)$ exists and equals $L$ if and only if both one-sided limits exist and $\displaystyle\lim_{x\to a^-}f(x)=\lim_{x\to a^+}f(x)=L$.

This is how limits fail. For $\dfrac{|x|}{x}$ at $0$: the LHL is $-1$ and the RHL is $1$, so there is no limit. For $[x]$ at an integer $n$: LHL $=n-1$, RHL $=n$. For $\dfrac1{x^2}$ at $0$ the values grow beyond every bound; we write $\displaystyle\lim_{x\to0}\frac1{x^2}=\infty$, but $\infty$ is not a real number and the limit does not exist in the sense of Definition 7.6. For $\sin\dfrac1x$ near $0$ the values swing between $-1$ and $1$ infinitely often, however small the interval — no limit, not even a one-sided one.

📘 Definition 7.7 — Limits at infinity and infinite limits

$\displaystyle\lim_{x\to\infty}f(x)=L$ means that $f(x)$ is as close to $L$ as we like for all sufficiently large $x$ (similarly $x\to-\infty$). $\displaystyle\lim_{x\to a}f(x)=\infty$ means that $f(x)$ exceeds any given number for all $x\ne a$ close enough to $a$ (similarly $-\infty$). Basic facts: $\dfrac1{x^n}\to0$ as $x\to\pm\infty$ ($n\gt0$); $e^{x}\to0$ as $x\to-\infty$; $\ln x\to-\infty$ as $x\to0^+$.

📐 Theorem 7.4 — Algebra of limits

If $\displaystyle\lim_{x\to a}f(x)=L$ and $\displaystyle\lim_{x\to a}g(x)=M$ with $L,M$ real, then

$$\lim(f\pm g)=L\pm M,\qquad \lim(fg)=LM,\qquad \lim(cf)=cL,\qquad \lim\frac fg=\frac LM\ \ (M\ne0).$$

Consequently $\displaystyle\lim_{x\to a}p(x)=p(a)$ for every polynomial $p$, and $\displaystyle\lim_{x\to a}\frac{p(x)}{q(x)}=\frac{p(a)}{q(a)}$ when $q(a)\ne0$. Moreover, the standard functions ($x^{r}$, $a^x$, $\log_a x$, the trigonometric functions, $|x|$) may be evaluated by substitution at any point inside their domains, and $\displaystyle\lim_{x\to a}h\big(g(x)\big)=h(M)$ for such a function $h$ defined around $M$. The same rules hold for one-sided limits and for $x\to\pm\infty$.

The rules follow from the $\varepsilon$–$\delta$ definition (for a sum: if $|f-L|\lt\tfrac\varepsilon2$ and $|g-M|\lt\tfrac\varepsilon2$ then $|(f+g)-(L+M)|\lt\varepsilon$); we use them freely. They do not apply directly to $\tfrac00$, $\tfrac\infty\infty$, $\infty-\infty$, $0\cdot\infty$ or $1^\infty$ — the indeterminate forms, whose value depends on the functions involved. Most limit questions are about these forms, and the first tool is the following factorisation result.

📐 Theorem 7.5 — The algebraic standard limit
$$\lim_{x\to a}\frac{x^n-a^n}{x-a}=n\,a^{\,n-1}$$

for every positive integer $n$ and real $a$; the same formula holds for every rational $n$ when $a\gt0$.

Proof (positive integer $n$).

$$x^n-a^n=(x-a)\left(x^{n-1}+x^{n-2}a+\dots+a^{n-1}\right),$$

as multiplying out shows (the terms telescope). For $x\ne a$ cancel $x-a$; the bracket has $n$ terms, each tending to $a^{n-1}$ as $x\to a$ (Theorem 7.4), so the limit is $n\,a^{n-1}$. $\blacksquare$ (For $n=\tfrac pq$ put $x=t^q$, $a=b^q$ and apply the integer case twice: $\tfrac{t^p-b^p}{t^q-b^q}\to\tfrac{p\,b^{p-1}}{q\,b^{q-1}}=\tfrac pq\,a^{\frac pq-1}$.)

🧭 Problem-solving strategy — evaluating a limit
  1. Substitute first. If you get a real number (with a non-zero denominator), that is the limit (Theorem 7.4).
  2. $\tfrac00$: factorise and cancel $x-a$; or rationalise (multiply top and bottom by the conjugate $\sqrt{\ }+\sqrt{\ }$); or reduce to a standard limit (Theorems 7.5, 7.7, 7.8).
  3. $x\to\pm\infty$ with polynomials: divide top and bottom by the highest power of $x$ in the denominator. Equal degrees give the ratio of leading coefficients; a higher top degree gives $\pm\infty$; a lower one gives $0$. For $x\to-\infty$ remember $\sqrt{x^2}=|x|=-x$.
  4. $\infty-\infty$: combine fractions, or rationalise $\sqrt{A}-B$ into $\dfrac{A-B^2}{\sqrt A+B}$.
  5. A formula that changes at $a$ — piecewise definitions, $|x-a|$, $[x]$, $\{x\}$, $\operatorname{sgn}$ — work out the LHL and the RHL separately (Theorem 7.3).
✏️ Example 4 — Algebraic and one-sided limits
Evaluate (a) $\displaystyle\lim_{x\to3}\frac{x^3-27}{x^2-9}$; (b) $\displaystyle\lim_{x\to0}\frac{\sqrt{1+x}-\sqrt{1-x}}{x}$; (c) $\displaystyle\lim_{x\to\infty}\frac{3x^2-x+5}{2x^2+7}$; (d) $\displaystyle\lim_{x\to\infty}\left(\sqrt{x^2+4x}-x\right)$; (e) $\displaystyle\lim_{x\to1}\frac{x^2-1}{|x-1|}$; (f) $\displaystyle\lim_{x\to2}\big([x]+[-x]\big)$.
(a) $\tfrac00$. Divide top and bottom by $x-3$ and use Theorem 7.5 twice: $\dfrac{x^3-27}{x-3}\Big/\dfrac{x^2-9}{x-3}\to\dfrac{3\cdot3^2}{2\cdot3}=\dfrac92$.
(b) Rationalise: $\dfrac{(1+x)-(1-x)}{x\left(\sqrt{1+x}+\sqrt{1-x}\right)}=\dfrac{2}{\sqrt{1+x}+\sqrt{1-x}}\to\dfrac22=1$.
(c) Divide by $x^2$: $\dfrac{3-\frac1x+\frac5{x^2}}{2+\frac7{x^2}}\to\dfrac32$.
(d) $\infty-\infty$. $\sqrt{x^2+4x}-x=\dfrac{(x^2+4x)-x^2}{\sqrt{x^2+4x}+x}=\dfrac{4}{\sqrt{1+\frac4x}+1}\to\dfrac42=2$ (dividing by $x\gt0$).
(e) For $x\gt1$: $\dfrac{(x-1)(x+1)}{x-1}=x+1\to2$. For $x\lt1$: $|x-1|=-(x-1)$, so the fraction is $-(x+1)\to-2$. LHL $\ne$ RHL: the limit does not exist.
(f) For $x$ just below $2$: $[x]=1$, $[-x]=-2$; just above: $[x]=2$, $[-x]=-3$. Both sums are $-1$, so the limit is $-1$ — although the value at $2$ is $[2]+[-2]=0$. The limit ignores $f(2)$.

In the lab below choose $(1+x)^{1/x}$ at $x=0$ and drag $h$ down to $0.001$. The base $1+x$ tends to $1$, and $1$ to any power is $1$. What do the two readouts approach?

At $h=0.001$ the readouts show $f(-0.001)=2.7196$ and $f(0.001)=2.7169$, closing in on $e=2.71828\ldots$ from both sides. "$1^\infty$" is an indeterminate form: the base gets closer to $1$, but the exponent $\tfrac1x$ grows at the same time, and the two effects balance at $e$ (Theorem 7.8). Compare $\dfrac{|x|}{x}$, where the two readouts stay at $-1$ and $1$ however small $h$ is, and $\sin\dfrac1x$, where they never settle.
Interactive 2 — Limit Lab: Approaching $a$ from the Left and from the Right

The red point sits at $x=a-h$ and the blue point at $x=a+h$. Shrink $h$ (or press Play) and watch the two values $f(a-h)$ and $f(a+h)$. If both settle on the same number, that number is the limit (Theorem 7.3); the open circle marks it when $f(a)$ is undefined or different. The value $f(a)$ itself (filled dot) plays no part.

1
$f(a-h)$—
$f(a+h)$—
$f(a)$—
limit—

Suppose $\displaystyle\lim_{x\to2}f(x)=5$. Which statement must be true?

Standard Limits: Trigonometric, Exponential, Logarithmic and $1^\infty$

Factorising cannot remove the $\tfrac00$ in $\dfrac{\sin x}{x}$ or $\dfrac{e^x-1}{x}$. These limits are found once, with a squeeze argument or a substitution, and then used as building blocks.

📐 Theorem 7.6 — Sandwich (squeeze) theorem

If $g(x)\le f(x)\le h(x)$ for all $x\ne a$ in an open interval around $a$, and $\displaystyle\lim_{x\to a}g(x)=\lim_{x\to a}h(x)=L$, then $\displaystyle\lim_{x\to a}f(x)=L$. (Also for one-sided limits and $x\to\pm\infty$.)

Why. Given $\varepsilon\gt0$, close enough to $a$ both $g(x)$ and $h(x)$ lie in $(L-\varepsilon,L+\varepsilon)$, and $f(x)$ is trapped between them. $\blacksquare$ Example: $-|x|\le x\sin\dfrac1x\le|x|$ and $\pm|x|\to0$, so $\displaystyle\lim_{x\to0}x\sin\frac1x=0$ even though $\sin\tfrac1x$ itself has no limit. Likewise $\dfrac{\sin x}{x}\to0$ as $x\to\infty$, because $\left|\dfrac{\sin x}x\right|\le\dfrac1{|x|}$.

📐 Theorem 7.7 — Trigonometric standard limits ($x$ in radians)
$$\lim_{x\to0}\frac{\sin x}{x}=1,\qquad \lim_{x\to0}\frac{\tan x}{x}=1,\qquad \lim_{x\to0}\frac{1-\cos x}{x^2}=\frac12 .$$

Hence $\displaystyle\lim_{x\to0}\frac{\sin px}{qx}=\frac pq$, and also $\displaystyle\lim_{x\to0}\frac{\sin^{-1}x}{x}=\lim_{x\to0}\frac{\tan^{-1}x}{x}=1$.

Figure 7.2 — For $0\lt x\lt\tfrac\pi2$: triangle $OAP$ $\subset$ sector $OAP$ $\subset$ triangle $OAT$, so $\tfrac12\sin x\lt\tfrac12x\lt\tfrac12\tan x$.

Proof. Take $0\lt x\lt\tfrac\pi2$ and the unit circle of Figure 7.2, with $A=(1,0)$, $P=(\cos x,\sin x)$ and $T=(1,\tan x)$ on the tangent at $A$. Comparing areas, $\tfrac12\sin x\lt\tfrac12x\lt\tfrac12\tan x$ (the area of a sector of angle $x$ in a unit circle is $\tfrac x2$). Dividing by $\tfrac12\sin x\gt0$ and taking reciprocals: $\cos x\lt\dfrac{\sin x}{x}\lt1$. As $x\to0^+$, $\cos x\to1$, so the sandwich theorem gives the RHL $1$; and $\dfrac{\sin x}x$ is even, so the LHL is also $1$. Then $\dfrac{\tan x}x=\dfrac{\sin x}{x}\cdot\dfrac1{\cos x}\to1$, and $\dfrac{1-\cos x}{x^2}=\dfrac{2\sin^2(x/2)}{x^2}=\dfrac12\left(\dfrac{\sin(x/2)}{x/2}\right)^2\to\dfrac12$. For $\sin^{-1}$ put $x=\sin t$: $\dfrac{\sin^{-1}x}{x}=\dfrac{t}{\sin t}\to1$. $\blacksquare$ In degrees the answer changes: $\sin x^\circ=\sin\tfrac{\pi x}{180}$, so $\dfrac{\sin x^\circ}{x}\to\dfrac\pi{180}$.

📐 Theorem 7.8 — Exponential and logarithmic standard limits
  1. $\displaystyle\lim_{x\to0}(1+x)^{1/x}=e$ and $\displaystyle\lim_{x\to\infty}\left(1+\frac1x\right)^{x}=e$, where $e=2.718281828\ldots$;
  2. $\displaystyle\lim_{x\to0}\frac{\ln(1+x)}{x}=1$;
  3. $\displaystyle\lim_{x\to0}\frac{e^x-1}{x}=1$, and for $a\gt0$: $\displaystyle\lim_{x\to0}\frac{a^x-1}{x}=\ln a$.

Proof. (1) The number $e$ is defined as this limit: one shows (using the binomial theorem of Chapter 5) that $\left(1+\tfrac1n\right)^n$ increases with $n$ and stays below $3$, so it settles on a number; numerically $2.5937$, $2.7048$, $2.7169$, $2.71815$ for $n=10,100,10^3,10^4$. The form with $x\to0$ is the same limit with $x$ replaced by $\tfrac1x$. (2) $\dfrac{\ln(1+x)}{x}=\ln\left[(1+x)^{1/x}\right]\to\ln e=1$, by (1) and Theorem 7.4 for the function $\ln$. (3) Put $t=e^x-1$, so $x=\ln(1+t)$ and $t\to0$ as $x\to0$: $\dfrac{e^x-1}{x}=\dfrac{t}{\ln(1+t)}\to1$ by (2). Finally $a^x=e^{x\ln a}$, so $\dfrac{a^x-1}{x}=\ln a\cdot\dfrac{e^{x\ln a}-1}{x\ln a}\to\ln a$ (for $a\ne1$; for $a=1$ both sides are $0$). $\blacksquare$

📐 Theorem 7.9 — The $1^\infty$ form

Suppose that, as $x\to a$ (or $x\to\pm\infty$), $f(x)\to1$ with $f(x)\ne1$, $g(x)\to\pm\infty$, and $g(x)\big(f(x)-1\big)\to\lambda$ (real). Then

$$\lim f(x)^{g(x)}=e^{\lambda}=e^{\,\lim g(x)\,(f(x)-1)} .$$

Proof. Write $t=f(x)-1\to0$. Then $f^{g}=\left[(1+t)^{1/t}\right]^{\,g\,t}$. The bracket tends to $e$ by Theorem 7.8(1) and the exponent $g\,t$ tends to $\lambda$; so $\ln\left(f^g\right)=g\,t\cdot\ln\left[(1+t)^{1/t}\right]\to\lambda\cdot1$, and $f^g\to e^\lambda$. $\blacksquare$ For example $\displaystyle\lim_{x\to0}(1+3x)^{2/x}=e^{\lim\frac2x\cdot3x}=e^6$, and $\displaystyle\lim_{x\to0}(\cos x)^{1/x^2}=e^{\lim\frac{\cos x-1}{x^2}}=e^{-1/2}$.

✏️ Example 5 — Using the standard limits
Evaluate (a) $\displaystyle\lim_{x\to0}\frac{\sin5x}{\tan3x}$; (b) $\displaystyle\lim_{x\to0}\frac{1-\cos4x}{x^2}$; (c) $\displaystyle\lim_{x\to0}\frac{e^{3x}-1}{\ln(1+2x)}$; (d) $\displaystyle\lim_{x\to0}\frac{2^x-3^x}{x}$; (e) $\displaystyle\lim_{x\to\pi/2}\frac{1-\sin x}{\left(\frac\pi2-x\right)^2}$.
Find (b) before you open the solution:
(a) $\dfrac{\sin5x}{\tan3x}=\dfrac{\sin5x}{5x}\cdot\dfrac{3x}{\tan3x}\cdot\dfrac53\to1\cdot1\cdot\dfrac53=\dfrac53$.
(b) $\dfrac{1-\cos4x}{x^2}=16\cdot\dfrac{1-\cos4x}{(4x)^2}\to16\cdot\dfrac12=8$.
(c) $\dfrac{e^{3x}-1}{3x}\cdot\dfrac{2x}{\ln(1+2x)}\cdot\dfrac{3x}{2x}\to1\cdot1\cdot\dfrac32=\dfrac32$.
(d) $\dfrac{2^x-1}{x}-\dfrac{3^x-1}{x}\to\ln2-\ln3=\ln\dfrac23\approx-0.405$.
(e) Put $t=\tfrac\pi2-x\to0$: $\sin x=\cos t$, so the expression is $\dfrac{1-\cos t}{t^2}\to\dfrac12$.
⏱ Shortcut Near $0$ you may replace $\sin u$, $\tan u$, $\sin^{-1}u$, $\tan^{-1}u$, $e^u-1$, $\ln(1+u)$ by $u$, and $1-\cos u$ by $\tfrac{u^2}2$, when they appear as factors of a product or quotient. Never do it inside a sum or difference where the leading terms cancel, such as $\tan x-\sin x$ (Example 6).
✏️ Example 6 — Hard example: $1^\infty$ forms and an unknown constant
(a) Evaluate $\displaystyle\lim_{x\to\infty}\left(\frac{x+3}{x-1}\right)^{x+2}$. (b) Evaluate $\displaystyle\lim_{x\to0}\left(\frac{2+\tan x}{2+\sin x}\right)^{1/x^3}$. (c) Find constants $a$, $b$ such that $\displaystyle\lim_{x\to0}\frac{a\,e^x-b\cos x}{x}=2$.
Find $a+b$ in (c):
(a) $1^\infty$: $f-1=\dfrac{4}{x-1}$ and $g\,(f-1)=\dfrac{4(x+2)}{x-1}\to4$. Theorem 7.9: the limit is $e^4$.
(b) set-up $1^\infty$ again: $f-1=\dfrac{\tan x-\sin x}{2+\sin x}$ and $\lambda=\displaystyle\lim_{x\to0}\frac{\tan x-\sin x}{x^3}\cdot\frac{1}{2+\sin x}$.
(b) the cubic $\tan x-\sin x=\tan x\,(1-\cos x)$, so $\dfrac{\tan x-\sin x}{x^3}=\dfrac{\tan x}{x}\cdot\dfrac{1-\cos x}{x^2}\to1\cdot\dfrac12$. Hence $\lambda=\dfrac12\cdot\dfrac12=\dfrac14$ and the limit is $e^{1/4}\approx1.284$.
(c) The denominator $\to0$, so for a finite limit the numerator must $\to0$: $a-b=0$. With $b=a$: $\dfrac{a(e^x-1)+a(1-\cos x)}{x}=a\cdot\dfrac{e^x-1}{x}+a\,x\cdot\dfrac{1-\cos x}{x^2}\to a\cdot1+a\cdot0\cdot\dfrac12=a$. So $a=b=2$, $a+b=4$.
Check In (b), replacing $\tan x$ and $\sin x$ both by $x$ would give $f=1$ exactly and the false answer $e^0=1$: the difference $\tan x-\sin x$ is of size $\tfrac{x^3}{2}$, which is exactly what the exponent $\tfrac1{x^3}$ magnifies. Numerically, at $x=0.01$ the expression is $1.28403$ ✓.
🚀 Beyond JEE Main (JEE Advanced) — L'Hôpital's rule

L'Hôpital's rule is listed in the JEE Advanced 2026 syllabus but not in the JEE Main 2026 list. Every JEE Main limit can be done with the standard limits of this section. This box is for interest only; nothing in it is used in the exercises, the Exam corner or the quiz. It needs derivatives, which are defined in Section 7.2 and developed in Section 7.3.

If $f$ and $g$ are differentiable near $a$ (except possibly at $a$), $g'(x)\ne0$ there, $f(x)\to0$ and $g(x)\to0$ (or both $\to\pm\infty$) as $x\to a$, and $\displaystyle\lim_{x\to a}\frac{f'(x)}{g'(x)}$ exists, then $\displaystyle\lim_{x\to a}\frac{f(x)}{g(x)}=\lim_{x\to a}\frac{f'(x)}{g'(x)}$. Example: $\displaystyle\lim_{x\to0}\frac{x-\sin x}{x^3}=\lim_{x\to0}\frac{1-\cos x}{3x^2}=\frac16$, using $\dfrac{1-\cos x}{x^2}\to\dfrac12$. Always check that the form really is $\tfrac00$ or $\tfrac\infty\infty$ before differentiating.

⚠️ JEE Main traps

1. Radians, not degrees. $\dfrac{\sin x}{x}\to1$ only for $x$ in radians; $\dfrac{\sin x^\circ}{x}\to\dfrac{\pi}{180}$. And $\dfrac{\sin x}x\to1$ only as $x\to0$: as $x\to\infty$ it tends to $0$.

2. $1^\infty$ is not $1$. $(1+\tfrac1n)^n\to e$. Whenever the base $\to1$ and the exponent $\to\infty$, use $e^{\lim g(f-1)}$ (Theorem 7.9).

3. The limit ignores $f(a)$. $\displaystyle\lim_{x\to2}([x]+[-x])=-1$ although the value at $2$ is $0$; and $\dfrac{x^2-4}{x-2}$ has a limit at $2$ although it is undefined there.

4. Check both sides near jumps and corners. $\displaystyle\lim_{x\to0}[x]$ does not exist (LHL $-1$, RHL $0$), but $\displaystyle\lim_{x\to0}[x^2]=0$ and $\displaystyle\lim_{x\to0}\left[\frac{\sin x}{x}\right]=0$ because $\tfrac{\sin x}x$ approaches $1$ from below. For $x\to-\infty$, $\sqrt{x^2}=-x$.

5. Replacing by equivalents inside a difference. $\tan x-\sin x$ is not "$x-x=0$": it is about $\tfrac{x^3}2$. Substitute $\sin u\approx u$ only in products and quotients.

6. Inverses need bijections. State the domain and codomain; $f^{-1}(x)\ne\dfrac1{f(x)}$; and the domain of $f^{-1}$ is the range of $f$.

$\displaystyle\lim_{x\to\infty}x\sin\frac1x$ equals

Exercises

Logarithms without a base are natural logarithms. Give limits exactly where you can, and say clearly when a limit does not exist.

I
Real functions, logarithms and inverses.
  • 1 Find the domain of $f(x)=\sqrt{x+3}+\dfrac{1}{\ln(2-x)}$.
  • 2 Find the domain of $f(x)=\log_2\big(\log_3(x-1)\big)$.
  • 3 $f(x)=x^2-1$ and $g(x)=\sqrt{x+1}$. Find the domain and a simplified formula for $\tfrac fg$, and the value $\left(\tfrac fg\right)(3)$.
  • 4 Decide whether each is even, odd or neither: $x^3\cos x$; $\ \ln\dfrac{1-x}{1+x}$; $\ 2^x+2^{-x}$; $\ x+x^2$.
  • 5 Evaluate $\log_2 48-\log_2 3+9^{\log_3 5}$.
  • 6 Solve $\log_2x+\log_2(x-2)=3$.
  • 7 $f:\mathbb{R}-\{-4\}\to\mathbb{R}-\{3\}$, $f(x)=\dfrac{3x-2}{x+4}$. Find $f^{-1}(x)$ and $f^{-1}(1)$.
  • 8 $f:[2,\infty)\to[-1,\infty)$, $f(x)=x^2-4x+3$. Find $f^{-1}(x)$ and $f^{-1}(8)$.
  • 9 Show that $f:\mathbb{R}\to(-1,1)$, $f(x)=\dfrac{x}{1+|x|}$, is a bijection, find $f^{-1}$, and evaluate $f^{-1}\!\left(\tfrac12\right)$.
1 $x\ge-3$; $2-x\gt0$; $\ln(2-x)\ne0\iff x\ne1$. Domain $[-3,1)\cup(1,2)$.
2 Need $x-1\gt0$ and $\log_3(x-1)\gt0\iff x-1\gt1$. Domain $(2,\infty)$.
3 Common domain $[-1,\infty)$, and $g(x)\ne0$ removes $-1$: domain $(-1,\infty)$. $\dfrac{(x-1)(x+1)}{\sqrt{x+1}}=(x-1)\sqrt{x+1}$; at $3$: $2\cdot2=4$.
4 $x^3\cos x$: odd $\times$ even $=$ odd. $\ln\dfrac{1+x}{1-x}=-\ln\dfrac{1-x}{1+x}$: odd. $2^x+2^{-x}$: even. $x+x^2$: neither ($f(-1)=0$, $f(1)=2$).
5 $\log_2\tfrac{48}3=\log_216=4$; $9^{\log_35}=\left(3^{\log_35}\right)^2=25$. Total $29$.
6 Domain $x\gt2$. $\log_2\big(x(x-2)\big)=3\Rightarrow x^2-2x-8=0\Rightarrow x=4$ or $x=-2$; only $x=4$ is in the domain.
7 $y(x+4)=3x-2\Rightarrow x(y-3)=-2-4y\Rightarrow x=\dfrac{4y+2}{3-y}$. $f^{-1}(x)=\dfrac{4x+2}{3-x}$ ($x\ne3$); $f^{-1}(1)=\tfrac62=3$. Check $f(3)=\tfrac77=1$ ✓.
8 $f(x)=(x-2)^2-1$, increasing on $[2,\infty)$: $f^{-1}(x)=2+\sqrt{x+1}$; $f^{-1}(8)=2+3=5$.
9 $f$ is odd, and for $x\ge0$, $f(x)=1-\dfrac1{1+x}$ increases from $0$ towards $1$; so $f$ is strictly increasing (one-one) with range $(-1,1)$ (onto). For $0\le y\lt1$, $y=\dfrac{x}{1+x}$ gives $x=\dfrac{y}{1-y}$; by oddness $f^{-1}(y)=\dfrac{y}{1-|y|}$. $f^{-1}\!\left(\tfrac12\right)=1$.
II
Graphs of simple functions.
  • 1 Evaluate $[-2.5]+[2.5]+\{-2.5\}+[\pi]$.
  • 2 Solve $[x]^2-5[x]+6=0$.
  • 3 Find the number of real solutions of $|x^2-6x+5|=3$.
  • 4 Sketch $y=|x-1|+|x+2|$. Find its least value and the set of $x$ where it is attained.
  • 5 Find the number of real solutions of $\{x\}=\dfrac x4$.
  • 6 Sketch $y=\operatorname{sgn}(x^2-1)$ and state where it equals $-1$.
  • 7 The graph of $y=x^2$ is shifted $2$ units to the right and $3$ units up, and the result is reflected in the $x$-axis. Write the new equation and find where it meets the $y$-axis.
  • 8 Find the domain of $f(x)=\dfrac{1}{\sqrt{[x]^2-[x]-6}}$.
1 $[-2.5]=-3$, $[2.5]=2$, $\{-2.5\}=-2.5-(-3)=0.5$, $[\pi]=3$: total $2.5$.
2 $[x]=2$ or $3$, so $x\in[2,4)$.
3 $x^2-6x+5=(x-3)^2-4$ has minimum $-4$; after the modulus the hump has height $4\gt3$, so the line $y=3$ cuts the W four times: $x^2-6x+2=0$ gives $3\pm\sqrt7$ and $x^2-6x+8=0$ gives $2,4$.
4 For $x\le-2$: $-2x-1$; for $-2\le x\le1$: constant $3$; for $x\ge1$: $2x+1$. Least value $3$ on $[-2,1]$ — the distance between $-2$ and $1$.
5 $x=4\{x\}\in[0,4)$. On $[n,n+1)$: $x-n=\tfrac x4\Rightarrow x=\tfrac{4n}3$, valid for $n=0,1,2$ ($0,\tfrac43,\tfrac83$) but not $n=3$ ($x=4$). Three solutions.
6 $1$ for $|x|\gt1$, $0$ at $x=\pm1$, $-1$ for $-1\lt x\lt1$: a step graph with isolated dots at $(\pm1,0)$.
7 Shift: $y=(x-2)^2+3$; reflect: $y=-(x-2)^2-3$. At $x=0$: $y=-7$.
8 Need $([x]-3)([x]+2)\gt0$: $[x]\gt3$ or $[x]\lt-2$, i.e. $[x]\ge4$ or $[x]\le-3$, i.e. $x\ge4$ or $x\lt-2$. Domain $(-\infty,-2)\cup[4,\infty)$.
III
Algebraic and one-sided limits.
  • 1 $\displaystyle\lim_{x\to2}\frac{x^3-8}{x^2-4}$
  • 2 $\displaystyle\lim_{x\to0}\frac{\sqrt{4+x}-2}{x}$
  • 3 $\displaystyle\lim_{x\to1}\frac{x^7-1}{x^3-1}$
  • 4 $\displaystyle\lim_{x\to\infty}\frac{5x^3-2x+1}{2x^3+x^2}$
  • 5 $\displaystyle\lim_{x\to\infty}\left(\sqrt{x^2+6x+1}-x\right)$
  • 6 $\displaystyle\lim_{x\to-\infty}\frac{\sqrt{4x^2+1}}{x+3}$
  • 7 $\displaystyle\lim_{x\to3}\frac{|x-3|}{x-3}$ (find both one-sided limits).
  • 8 $\displaystyle\lim_{x\to2^-}[x]$, $\displaystyle\lim_{x\to2^+}[x]$ and $\displaystyle\lim_{x\to2.5}[x]$.
  • 9 $f(x)=x^2+k$ for $x\lt2$ and $f(x)=3x-k$ for $x\ge2$. Find $k$ so that $\displaystyle\lim_{x\to2}f(x)$ exists.
  • 10 $\displaystyle\lim_{x\to1}\left(\frac1{x-1}-\frac2{x^2-1}\right)$
1 $\dfrac{(x-2)(x^2+2x+4)}{(x-2)(x+2)}\to\dfrac{12}{4}=3$.
2 $\dfrac{(4+x)-4}{x\left(\sqrt{4+x}+2\right)}\to\dfrac14$.
3 Theorem 7.5 for top and bottom: $\dfrac{7\cdot1^6}{3\cdot1^2}=\dfrac73\approx2.333$.
4 Equal degrees: $\dfrac52$.
5 $\dfrac{6x+1}{\sqrt{x^2+6x+1}+x}=\dfrac{6+\frac1x}{\sqrt{1+\frac6x+\frac1{x^2}}+1}\to3$.
6 For $x\lt0$, $\sqrt{4x^2+1}=|x|\sqrt{4+\tfrac1{x^2}}=-x\sqrt{4+\tfrac1{x^2}}$; divide by $x$: $\dfrac{-\sqrt{4+1/x^2}}{1+3/x}\to-2$.
7 RHL $=1$, LHL $=-1$: no limit.
8 $1$, $2$ and $2$ (the last is an ordinary point: $[x]=2$ on all of $[2,3)$).
9 LHL $=4+k$, RHL $=6-k$; equal when $k=1$ (both sides $5$).
10 $\infty-\infty$. $\dfrac{(x+1)-2}{x^2-1}=\dfrac{x-1}{(x-1)(x+1)}=\dfrac1{x+1}\to\dfrac12$.
IV
Standard limits and $1^\infty$ forms.
  • 1 $\displaystyle\lim_{x\to0}\frac{\sin7x}{2x}$
  • 2 $\displaystyle\lim_{x\to0}\frac{\tan3x-\sin x}{x}$
  • 3 $\displaystyle\lim_{x\to0}\frac{1-\cos6x}{x^2}$
  • 4 $\displaystyle\lim_{x\to0}\frac{e^{5x}-1}{\sin2x}$
  • 5 $\displaystyle\lim_{x\to0}\frac{4^x-1}{2^x-1}$
  • 6 $\displaystyle\lim_{x\to0}\frac{\ln(1+3x)}{e^x-1}$
  • 7 $\displaystyle\lim_{x\to0}(1+2x)^{3/x}$ — write the answer as $e^k$ and give $k$.
  • 8 $\displaystyle\lim_{x\to\infty}\left(\frac{x^2+2x}{x^2+1}\right)^{x}$
  • 9 $\displaystyle\lim_{x\to0}\frac{\sin x^\circ}{x}$ (angle in degrees), to four decimal places.
  • 10 (Modelling) $\text{₹}\,10\,000$ is invested at $8\%$ per year, compounded $n$ times a year, for $5$ years, so the amount is $10\,000\left(1+\frac{0.08}{n}\right)^{5n}$. Find the limit of the amount as $n\to\infty$ ("continuous compounding"), to the nearest rupee, and compare with yearly compounding.
1 $\dfrac72\cdot\dfrac{\sin7x}{7x}\to\dfrac72$.
2 $3\cdot\dfrac{\tan3x}{3x}-\dfrac{\sin x}{x}\to3-1=2$ (each term has its own limit, so Theorem 7.4 applies).
3 $36\cdot\dfrac{1-\cos6x}{(6x)^2}\to36\cdot\dfrac12=18$.
4 $\dfrac{e^{5x}-1}{5x}\cdot\dfrac{2x}{\sin2x}\cdot\dfrac52\to\dfrac52$.
5 $\dfrac{(2^x-1)(2^x+1)}{2^x-1}=2^x+1\to2$. (Or $\tfrac{\ln4}{\ln2}=2$.)
6 $3\cdot\dfrac{\ln(1+3x)}{3x}\cdot\dfrac{x}{e^x-1}\to3$.
7 $\lambda=\lim\tfrac3x\cdot2x=6$: the limit is $e^6$, $k=6$.
8 $f-1=\dfrac{2x-1}{x^2+1}$, $\ x(f-1)=\dfrac{2x^2-x}{x^2+1}\to2$: the limit is $e^2$.
9 $\sin x^\circ=\sin\tfrac{\pi x}{180}$, so the limit is $\tfrac{\pi}{180}\approx0.0175$ (more precisely $0.017453$).
10 $\left(1+\tfrac{0.08}n\right)^{5n}=\left[\left(1+\tfrac{0.08}n\right)^{n/0.08}\right]^{0.4}\to e^{0.4}$, so the amount tends to $10\,000\,e^{0.4}\approx\text{₹}\,14\,918$. Yearly compounding gives $10\,000\times1.08^5\approx\text{₹}\,14\,693$; even daily compounding ($n=365$) gives $\text{₹}\,14\,918$ to the nearest rupee — the limit is reached quickly.
🎯 Exam corner JEE Main · MCQJEE Main · Numerical

E1. JEE Main · MCQ The domain of $f(x)=\dfrac{\sqrt{x+2}}{\log_{10}(3-x)}$ is (A) $[-2,3)$ (B) $[-2,2)\cup(2,3)$ (C) $(-2,2)\cup(2,3)$ (D) $[-2,2]$

Conditions $x+2\ge0$; $3-x\gt0$; and $\log_{10}(3-x)\ne0$, i.e. $3-x\ne1$, $x\ne2$.
Answer (B) $[-2,2)\cup(2,3)$.
⏱ Shortcut (A) forgets that the logarithm in a denominator must not be $0$; (C) wrongly drops $x=-2$, where $f(-2)=0/\log_{10}5=0$ is perfectly defined.

E2. JEE Main · Numerical The function $f:[1,\infty)\to[2,\infty)$, $f(x)=x+\dfrac1x$, is a bijection. Find $f^{-1}\!\left(\dfrac{26}{5}\right)$. Give the answer to the nearest integer.

Solve $x+\dfrac1x=\dfrac{26}5\iff5x^2-26x+5=0\iff(5x-1)(x-5)=0$: $x=5$ or $x=\tfrac15$.
Domain Only $x=5$ lies in $[1,\infty)$; $\tfrac15$ belongs to the other branch, which the restriction removed.
Answer $5$.
⏱ Shortcut In general $f^{-1}(y)=\dfrac{y+\sqrt{y^2-4}}{2}$ (the larger root); with $y=\tfrac{26}5$: $\sqrt{y^2-4}=\tfrac{24}5$, so $\tfrac{50/5}{2}=5$.

E3. JEE Main · MCQ $\displaystyle\lim_{x\to0}\frac{\sqrt{1+\sin x}-\sqrt{1-\sin x}}{\tan x}$ equals (A) $0$ (B) $\tfrac12$ (C) $1$ (D) $2$

Rationalise Numerator $=\dfrac{2\sin x}{\sqrt{1+\sin x}+\sqrt{1-\sin x}}$.
Simplify Dividing by $\tan x=\tfrac{\sin x}{\cos x}$: $\dfrac{2\cos x}{\sqrt{1+\sin x}+\sqrt{1-\sin x}}\to\dfrac{2}{2}=1$.
Answer (C) $1$.

E4. JEE Main · Numerical If $\displaystyle\lim_{x\to\infty}\left(\frac{x+5}{x+2}\right)^{2x+1}=e^{k}$, find $k$. Give the answer to the nearest integer.

Form $1^\infty$, with $f-1=\dfrac{3}{x+2}$.
Theorem 7.9 $k=\displaystyle\lim_{x\to\infty}(2x+1)\cdot\frac{3}{x+2}=6$.
Answer $6$.
⏱ Shortcut For $\left(\dfrac{x+p}{x+q}\right)^{rx+s}$ as $x\to\infty$ the answer is always $e^{r(p-q)}$: here $2\cdot3=6$. The constants $s$ and $q$ in the exponent and denominator do not matter.

E5. JEE Main · MCQ Let $f(x)=\dfrac{[x]\sin x}{x}$ for $x\ne0$. The left-hand and right-hand limits of $f$ at $x=0$ are, respectively, (A) $-1$ and $0$ (B) $0$ and $0$ (C) $-1$ and $1$ (D) $1$ and $0$

Left For $-1\lt x\lt0$: $[x]=-1$, so $f(x)=-\dfrac{\sin x}{x}\to-1$.
Right For $0\lt x\lt1$: $[x]=0$, so $f(x)=0$.
Answer (A); so $\displaystyle\lim_{x\to0}f(x)$ does not exist.

E6. JEE Main · Numerical Find $\displaystyle\lim_{x\to0}\frac{\ln(1+4x)\,(1-\cos2x)}{x^2\sin x}$. Give the answer to the nearest integer.

Split $\dfrac{\ln(1+4x)}{4x}\cdot\dfrac{1-\cos2x}{(2x)^2}\cdot\dfrac{x}{\sin x}\cdot\dfrac{4x\cdot4x^2}{x^2\cdot x}$.
Limits $1\cdot\dfrac12\cdot1\cdot16=8$.
Answer $8$.
⏱ Shortcut Every factor is a product factor, so replace $\ln(1+4x)\approx4x$, $1-\cos2x\approx2x^2$, $\sin x\approx x$: $\dfrac{4x\cdot2x^2}{x^3}=8$.
🔬 Research–Teaching NexusResearch-tutored · optional, about 45 minutes

Research question. A computer stores numbers with about $16$ significant digits. Can it compute a limit by "plugging in a very small $h$" — and if not, where and why does it fail?

Why it matters. Engineering software, weather models, spacecraft navigation and financial pricing engines all evaluate expressions such as $(1+\tfrac1n)^n$ or $\tfrac{1-\cos x}{x^2}$ millions of times. A formula that is mathematically perfect can return nonsense in floating-point arithmetic; famous failures (a missile-defence clock drifting by a third of a second, a rocket lost to a number conversion) were numerical-precision errors. Numerical analysts study exactly this gap between a limit and its computer approximation.

What to do.

  1. In a spreadsheet or Python, tabulate $(1+\tfrac1n)^n$ for $n=10^1,10^2,\dots,10^{17}$ and the error compared with $e=2.718281828459045$. Where is the error smallest? What happens from $n=10^{12}$ onwards, and at $n=10^{16}$?
  2. Explain the failure: what is $1+10^{-16}$ in a machine that keeps about $16$ digits? Why does an error in the base matter so much when the exponent is huge?
  3. Tabulate $\dfrac{1-\cos x}{x^2}$ for $x=10^{-1},\dots,10^{-9}$. Then tabulate the equivalent form $\dfrac{2\sin^2(x/2)}{x^2}$ (Theorem 7.7's proof). Which one stays close to $\tfrac12$, and why?
  4. Find a third limit from this section whose direct evaluation fails for tiny $x$, and a rewriting that fixes it.

Tools: Spreadsheet or Python (ordinary floating-point numbers).

Hand in: The two tables, a sketch of error against $n$ (logarithmic scales), and a paragraph explaining "catastrophic cancellation" in your own words.

Going further. Many languages provide special functions such as expm1 and log1p for $e^x-1$ and $\ln(1+x)$. Which standard limits of Theorem 7.8 do they protect, and how could you use them to compute $(1+\tfrac1n)^n$ accurately for every $n$?

Instructor note: in IEEE double precision, $(1+1/n)^n$ is best near $n=10^8$ ($2.71828180$, error about $10^{-8}$), drifts to $2.71828205$ for $n=10^9$–$10^{11}$, gives $2.716$ at $n=10^{13}$, $3.035$ at $n=10^{15}$ and exactly $1$ from $n=10^{16}$ (because $1+10^{-16}$ rounds to $1$). $\tfrac{1-\cos x}{x^2}$ returns $0.50004$ at $x=10^{-6}$ and $0$ at $x=10^{-8}$, while the $\sin^2$ form stays at $0.5$. The fix for (1) is $\exp\!\big(n\cdot\texttt{log1p}(1/n)\big)$.

🧪 Self-check quiz

0/5 correct

Q1. The domain of $f(x)=\ln(x-2)+\sqrt{5-x}$ is

Q2. $\displaystyle\lim_{x\to0}\frac{\sin4x}{\sin2x}$ equals

Q3. $\displaystyle\lim_{x\to\infty}\left(1+\frac2x\right)^{x}$ equals

Q4. $[-1.5]+\{-1.5\}$ equals

Q5. For the bijection $f:\mathbb{R}\to\mathbb{R}$, $f(x)=2x+3$, the inverse is $f^{-1}(x)=$