Continuity

RS Aggarwal Class 12 Maths Solutions Exercise 9B — Continuity and Differentiability

RS Aggarwal, Class 12 Mathematics — Continuity and Differentiability, Exercise 9B. All 11 questions solved.

Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.

Exercise 9B asks you to prove or test continuity of whole functions rather than at a single point. For a piecewise function the only places that can go wrong are the joins, so the work is to compare the left limit, the right limit and the value at each join. Everywhere else the function is built from polynomials or trigonometric functions, which are continuous on their domains.

Key insight. $f$ is continuous at $a$ exactly when $\lim_{x\to a^-}f(x)=\lim_{x\to a^+}f(x)=f(a)$. Away from the joins, a formula that is continuous on an interval needs no further checking.

Question 1

Prove that the function defined by $f(x)=7x+5$ for $x\ge 0$ and $f(x)=5-3x$ for $x<0$ is continuous everywhere.

Solution. For $x>0$ the function is the polynomial $7x+5$, and for $x<0$ it is the polynomial $5-3x$, so it is continuous at every such point. Only $x=0$ needs a check.

Left limit: $\lim_{x\to0^-}(5-3x)=5$. Right limit: $\lim_{x\to0^+}(7x+5)=5$. Value: $f(0)=7(0)+5=5$.

All three equal $5$, so $f$ is continuous at $0$ and hence on all of $\mathbb R$.

Shown: $f$ is continuous everywhere (all three quantities at $x=0$ equal $5$).

Question 2

Prove that $f(x)=\sin x$ for $x<0$ and $f(x)=x$ for $x\ge 0$ is a continuous function.

Solution. On $x<0$ the function is $\sin x$ and on $x>0$ it is $x$; both are continuous. At the join $x=0$:

Left limit: $\lim_{x\to0^-}\sin x=\sin 0=0$. Right limit: $\lim_{x\to0^+}x=0$. Value: $f(0)=0$.

They agree, so $f$ is continuous at $0$ and therefore everywhere.

Shown: $f$ is continuous on $\mathbb R$ (left limit = right limit = $f(0)=0$).

Question 3

Prove that $f(x)=\dfrac{x^n-1}{x-1}$ for $x\neq1$, with $f(1)=n$, is continuous.

Solution. For $x\ne1$ the function is a quotient of polynomials with a non-zero denominator, so it is continuous there. At $x=1$ we need the limit. Taking $n$ as a positive integer, factorise:

$$\frac{x^n-1}{x-1}=x^{n-1}+x^{n-2}+\dots+x+1\quad(x\ne1).$$

This sum is a polynomial with $n$ terms, so as $x\to1$ it tends to $1+1+\dots+1=n$. (Equivalently, this is the derivative of $x^n$ at $1$, which is $n$.) Since $f(1)=n$, the limit equals the value.

Shown: $\lim_{x\to1}f(x)=n=f(1)$, so $f$ is continuous everywhere.

Question 4

Prove that $\sec x$ is a continuous function.

Solution. Write $\sec x=\dfrac{1}{\cos x}$. Since $\cos x$ is continuous on $\mathbb R$ and the constant $1$ is continuous, the quotient is continuous at every point where $\cos x\neq0$, that is, at every point of its domain $x\ne(2k+1)\dfrac{\pi}{2}$, $k\in\mathbb Z$.

At the excluded points the function is not defined at all, so there is nothing to test; being continuous means continuous at every point of the domain.

Shown: $\sec x$ is continuous at every point of its domain, $x\neq(2k+1)\frac{\pi}{2}$.

Question 5

Prove that $\cos|x|$ is a continuous function.

Solution. For $x\ge0$ we have $|x|=x$, and for $x<0$ we have $|x|=-x$. Because cosine is even, $\cos(-x)=\cos x$, so in both cases $\cos|x|=\cos x$.

Hence $\cos|x|$ is the same function as $\cos x$, which is continuous on all of $\mathbb R$. (Alternatively, it is the composition of the continuous functions $|x|$ and $\cos$.)

Shown: $\cos|x|=\cos x$ for every $x$, hence continuous on $\mathbb R$.

Question 6

Given $f(x)=\dfrac{\sin x}{x}$ for $x\ne0$ and $f(0)=2$, prove that $f$ is continuous at every point except $0$.

Solution. For $x\ne0$ the function is a quotient of continuous functions with a non-zero denominator, so it is continuous there.

At $x=0$: $\lim_{x\to0}\dfrac{\sin x}{x}=1$, but $f(0)=2$. The limit exists yet differs from the value, so $f$ is discontinuous at $0$ (a removable discontinuity; defining $f(0)=1$ would repair it).

Shown: continuous for all $x\ne0$; at $0$, $\lim f=1\neq2=f(0)$, so it is discontinuous only there.

Question 7

Discuss the continuity of the greatest integer function $f(x)=[x]$.

Solution. On any open interval $(n,n+1)$ with $n$ an integer, $[x]=n$ is constant, so $f$ is continuous at every non-integer.

Now take an integer $n$. From the left, $x$ slightly less than $n$ lies in $(n-1,n)$, so $\lim_{x\to n^-}[x]=n-1$. From the right, $\lim_{x\to n^+}[x]=n$. The two one-sided limits differ by $1$, so the limit does not exist and $f$ is discontinuous at $n$ (even though $f(n)=n$).

$f(x)=[x]$ is discontinuous at every integer $x=n$ and continuous at all other points.

Question 8

Prove that $f(x)=2x-1$ for $x<2$ and $f(x)=\dfrac{3x}{2}$ for $x\ge2$ is continuous.

Solution. Each piece is a polynomial, so only $x=2$ matters.

Left limit: $\lim_{x\to2^-}(2x-1)=3$. Right limit: $\lim_{x\to2^+}\dfrac{3x}{2}=\dfrac{6}{2}=3$. Value: $f(2)=\dfrac{3\cdot2}{2}=3$.

All equal $3$, so $f$ is continuous at $2$ and hence everywhere.

Shown: left limit = right limit = $f(2)=3$, so $f$ is continuous on $\mathbb R$.

Question 9

Given $f(x)=x$ for $x\ne0$ and $f(0)=1$, prove that $f$ is continuous at every point except $0$.

Solution. For $x\ne0$ the function is $x$, a polynomial, so it is continuous there.

At $0$: $\lim_{x\to0}f(x)=\lim_{x\to0}x=0$, but $f(0)=1$. The limit and the value differ, so $f$ is discontinuous at $0$.

Shown: continuous for $x\neq0$; at $0$ the limit is $0$ but $f(0)=1$, so it is discontinuous only there.

Question 10

Find the point of discontinuity of $f(x)=x^3-x^2+2x-2$ for $x\ne1$, with $f(1)=4$.

Solution. For $x\ne1$, $f$ is a polynomial and so continuous. Check $x=1$. Since $f(x)$ at $x\neq 1$ is given by the polynomial, factorise it by grouping:

$$x^3-x^2+2x-2=x^2(x-1)+2(x-1)=(x-1)(x^2+2).$$

The limit as $x\to1$ is $\lim_{x\to1}(x^3-x^2+2x-2)=1-1+2-2=0$, while $f(1)=4$. They differ, so $f$ is discontinuous at $x=1$ and nowhere else. (The factor $(x-1)$ shows the polynomial itself vanishes at $1$; the stated value $4$ is what breaks continuity.)

The only point of discontinuity is $x=1$ (limit $0$, value $4$).

Question 11

Discuss the continuity of $f(x)=|x|+|x-1|$ on the interval $[-1,2]$.

Solution. The absolute value $|x|$ is continuous on $\mathbb R$, and so is $|x-1|$ (a composition of $|\cdot|$ with a polynomial). A sum of continuous functions is continuous.

To see it concretely, the kinks are at $x=0$ and $x=1$. For $x<0$: $f=-x+(1-x)=1-2x$; for $0\le x<1$: $f=x+(1-x)=1$; for $x\ge1$: $f=x+(x-1)=2x-1$. At $x=0$ the pieces give $1$ and $1$; at $x=1$ they give $1$ and $1$. No jumps occur.

$f$ is continuous on $[-1,2]$ (indeed on all of $\mathbb R$).

Common mistakes

  • Checking only one side of a join. A function such as $[x]$ matches its value from the right but not its limit from the left, and a one-sided check would call it continuous.
  • Saying $\dfrac{\sin x}{x}$ is “continuous because the limit is $1$”. Continuity also needs the stated value $f(0)$ to equal that limit, and here $f(0)=2$.
  • Treating $\sec x$ as discontinuous at $\frac{\pi}{2}$. It is undefined there, so the point is outside the domain, not a point of discontinuity.
  • Calling $x^3-x^2+2x-2$ “zero at $1$, so $f(1)=0$” and forgetting that the question assigns $f(1)=4$ separately.

Practise next

Try the neighbouring exercise, 9A, for continuity at a given point and finding unknown constants that make a piecewise function continuous.

Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full

Subscribe