Cengage G Tewani Solutions Calculus Chapter 3 Continuity Differentiability Solved Examples

Step-by-Step Solutions for Class 12 Mathematics Chapter 03 Continuity Differentiability

Access comprehensive textbook solutions for Chapter 03 Continuity Differentiability using the reference material for Class 12 Mathematics. Designed to align with the 2026 academic curriculum, these detailed answers help students reinforce core academic concepts and master complex problem-solving methods.

Download Chapter 03 Continuity Differentiability Textbook Solutions PDF

Navigate directly to the solved Mathematics textbook exercises using the digital viewer below. Each solution includes detailed step-by-step explanations, allowing students to instantly cross-check their work and identify areas requiring further revision.

Solved Examples

Question 3.1. A function \(f(x)\) satisfies the following property: \(f(x+y)=f(x)f(y)\)

Show that the function is continuous for all values of \(x\) if it is continuous at \(x=1\).

Solution.

As the function is continuous at \(x=1\), we have

\(\lim_{x\to1^-}f(x)=\lim_{x\to1^+}f(x)=f(1)\)

\(\Rightarrow \lim_{h\to0}f(1-h)=\lim_{h\to0}f(1+h)=f(1)\)

\(\Rightarrow \lim_{h\to0}f(1)f(-h)=\lim_{h\to0}f(1)f(h)=f(1)\) [Using \(f(x+y)=f(x)f(y)\)]

\(\Rightarrow \lim_{h\to0}f(-h)=\lim_{h\to0}f(h)=1\) (1)

Now, consider any arbitrary point \(x=a\).

L.H.L. \(=\lim_{h\to0}f(a-h)=\lim_{h\to0}f(a)f(-h)=f(a)\lim_{h\to0}f(-h)=f(a)\) [as \(\lim_{h\to0}f(-h)=1\), using equation (1)]

R.H.L. \(=\lim_{h\to0}f(a+h)=\lim_{h\to0}f(a)f(h)=f(a)\lim_{h\to0}f(h)=f(a)\) [as \(\lim_{h\to0}f(h)=1\), using equation (1)]

Hence, at any arbitrary point (\(x=a\)), L.H.L. = R.H.L. \(=f(a)\).

Therefore, function is continuous for all values of \(x\) if it is continuous at 1.

Teacher's Note: Put \(x=1\) continuity into the functional equation to get \(\lim f(\pm h)=1\), then test any point \(a\).

Exam Note: Functional equation plus continuity at one point gives everywhere.

Question 3.2. Let \(f\) be a function satisfying \(f(x+y)+\sqrt{6-f(y)}=f(x)f(y)\) and \(f(h)\to6\) as \(h\to0\). Discuss the continuity of \(f\).

Solution.

R.H.L. \(=\lim_{x\to x^+}f(x)\)

\(=\lim_{h\to0}f(x+h)\)

\(=\lim_{h\to0}\left[f(x)f(h)-\sqrt{6-f(h)}\right]\)

\(=f(x)\lim_{h\to0}f(h)-\lim_{h\to0}\sqrt{6-f(h)}\)

\(=f(x)\cdot6-0=6f(x)\neq f(x)\)

This shows that if \(f(x)\neq0\), then \(f\) is discontinuous at \(x\). If \(f(x)=0\), then \(f\) is continuous at \(x\).

Teacher's Note: Replace \(y\) by \(h\to0\) in the relation and compare the right-hand limit with \(f(x)\).

Exam Note: Right limit \(6f(x)\) equals \(f(x)\) only if \(f(x)=0\).

Question 3.3. Find the points of discontinuity of the following functions.

(a) \(f(x)=\dfrac{1}{2\sin x-1}\)

(b) \(f(x)=\dfrac{1}{x^2-3|x|+2}\)

(c) \(f(x)=\dfrac{1}{x^4+x^2+1}\)

(d) \(f(x)=\dfrac{1}{1-e^{-\frac{x-1}{x-2}}}\)

(e) \(f(x)=[[x]]-[x-1]\), where \([\,.\,]\) represents the greatest integer function.

Solution.

(a) \(f(x)\) is discontinuous when \(2\sin x-1=0\)

\(\Rightarrow \sin x=\dfrac12\Rightarrow x=2n\pi+\dfrac{\pi}{6}\) or \(x=2n\pi+\dfrac{5\pi}{6},\ n\in Z\)

(b) \(f(x)\) is discontinuous when \(x^2-3|x|+2=0\)

\(\Rightarrow |x|^2-3|x|+2=0\)

\(\Rightarrow (|x|-1)(|x|-2)=0\)

\(\Rightarrow |x|=1,2\)

\(\Rightarrow x=\pm1,\pm2\)

(c) \(f(x)=\dfrac{1}{x^4+x^2+1}=\dfrac{1}{\left(x^2+\dfrac12\right)^2+\dfrac34}\)

Now, \(x^4+x^2+1=\left(x^2+\dfrac12\right)^2+\dfrac34\geq1\ \forall x\in R\)

\(\Rightarrow f(x)\) is continuous \(\forall x\in R\)

(d) \(f(x)\) is discontinuous when \(x-2=0\). Also when \(1-e^{-\frac{x-1}{x-2}}=0\)

\(\Rightarrow x=2\) and \(e^{-\frac{x-1}{x-2}}=1\)

\(\Rightarrow x=2\) and \(\dfrac{x-1}{x-2}=0\)

\(\Rightarrow x=2\) and \(x=1\)

(e) \(f(x)=[[x]]-[x-1]=[x]-([x]-1)=1\)

\(\Rightarrow f(x)\) is continuous \(\forall x\in R\)

Teacher's Note: A rational function is discontinuous where the denominator vanishes; simplify greatest-integer expressions first.

Exam Note: Check zeros of denominators and undefined points.

Question 3.4. Let \(f(x)=\left\{\dfrac{\log(1+x)^{1+x}-x}{x^2}\right\}\), then find the value of \(f(0)\) so that the function \(f\) is continuous at \(x=0\).

Solution.

We must have \(f(0)=\lim_{x\to0}f(x)\)

\(=\lim_{x\to0}\dfrac{(1+x)\log(1+x)-x}{x^2}\) (\(\dfrac00\) form)

\(=\lim_{x\to0}\dfrac{\log(1+x)+1-1}{2x}\) (Using L'Hopital's rule)

\(=\dfrac12\lim_{x\to0}\dfrac{\log(1+x)}{x}=\dfrac12\).

Teacher's Note: Continuity needs \(f(0)=\lim_{x\to0}f(x)\); evaluate the \(0/0\) limit by L'Hopital's rule.

Exam Note: Removable discontinuity: define \(f(0)\) as the limit.

Question 3.5. What value must be assigned to \(k\) so that the function \(f(x)=\begin{cases}\dfrac{x^4-256}{x-4}, & x\neq4\\ k, & x=4\end{cases}\) is continuous at \(x=4\)?

Solution.

\(f(x)\) is continuous at \(x=4\)

\(\Rightarrow f(4)=\lim_{x\to4}\dfrac{x^4-256}{x-4}\)

\(=\lim_{x\to4}\dfrac{x^4-4^4}{x-4}\)

\(=4\times4^{4-1}=256\)

So \(k=256\).

Teacher's Note: Use \(\lim_{x\to a}\frac{x^n-a^n}{x-a}=na^{n-1}\).

Exam Note: Continuity: \(k\) equals the limit.

Question 3.6. A function \(f(x)\) is defined as follows

\(f(x)=\begin{cases}ax-b, & x\leq1\\ 3x, & 1<x<2\\ bx^2-a, & x\geq2\end{cases}\)

Prove that if \(f(x)\) is continuous at \(x=1\) but discontinuous at \(x=2\), then the locus of the point \((a,b)\) is a straight line excluding the point where it cuts the line, \(y=3\).

Solution.

Given \(f(x)\) is continuous at \(x=1\)

\(\therefore f(1)=\) R.H.L.

\(\Rightarrow f(1)=\lim_{x\to1^+}f(x)\)

\(\Rightarrow f(1)=\lim_{h\to0}f(1+h)\)

\(\Rightarrow a-b=\lim_{h\to0}3(1+h)\)

\(\Rightarrow a-b=3\) (1)

Again, given \(f(x)\) is discontinuous at \(x=2\)

\(\therefore\) L.H.L. \(\neq f(2)\)

\(\Rightarrow \lim_{x\to2^-}f(x)\neq f(2)\)

\(\Rightarrow \lim_{h\to0}f(2-h)\neq f(2)\)

\(\Rightarrow \lim_{h\to0}3(2-h)\neq4b-a\)

\(\Rightarrow 6\neq4b-a\)

Let \(6=4b-a\), then (2)

from equations (1) and (2), we get \(b=3\)

\(\therefore\) locus \(y=3\), which is impossible. (\(\because 6\neq4b-a\))

Hence, the locus of \((a,b)\) is \(x-y=3\) excluding the point when it cuts the line, \(y=3\).

Teacher's Note: Continuity at 1 gives \(a-b=3\); discontinuity at 2 excludes the point where \(4b-a=6\), i.e. \(b=3\).

Exam Note: Continuity gives a line; discontinuity removes one point.

Question 3.7. Let \(f(x)\) be a function defined as

\(f(x)=\begin{cases}\dfrac{x^2-1}{x^2-2|x-1|-1}, & x\neq1\\[2mm] \dfrac12, & x=1\end{cases}\)

Discuss the continuity of the function at \(x=1\).

Solution.

\(f(1^+)=\lim_{x\to1^+}\dfrac{x^2-1}{x^2-2|x-1|-1}\)

\(=\lim_{x\to1^+}\dfrac{x^2-1}{x^2-2(x-1)-1}\)

\(=\lim_{x\to1^+}\dfrac{(x+1)}{(x+1)-2}=\infty\)

\(f(1^-)=\lim_{x\to1^-}\dfrac{x^2-1}{x^2-2|x-1|-1}\)

\(=\lim_{x\to1^-}\dfrac{x^2-1}{x^2-2(1-x)-1}\)

\(=\lim_{x\to1^-}\dfrac{(x+1)}{(x+1)+2}=\dfrac12\)

Hence \(f(x)\) is discontinuous at \(x=1\).

Teacher's Note: Remove the modulus separately for \(x>1\) and \(x<1\), cancel \(x-1\) and take both one-sided limits.

Exam Note: Right limit infinite, so discontinuous at \(x=1\).

Question 3.8. Let \(f(x)=\begin{cases}\dfrac{\sin ax^2}{x^2}, & x\neq0\\[2mm] \dfrac34+\dfrac{1}{4a}, & x=0\end{cases}\). For what values of \(a\), \(f(x)\) is continuous at \(x=0\).

Solution.

\(f(x)\) is continuous at \(x=0\)

\(\therefore \lim_{x\to0}f(x)=f(0)\)

\(\Rightarrow \lim_{x\to0}\dfrac{a\sin ax^2}{ax^2}=\dfrac34+\dfrac{1}{4a}\)

\(\Rightarrow a=\dfrac34+\dfrac{1}{4a}\)

\(\Rightarrow 4a^2-3a-1=0\)

\(\Rightarrow (4a+1)(a-1)=0\)

\(\Rightarrow a=-1/4,\ 1\)

Teacher's Note: Write \(\sin ax^2/x^2=a\cdot\frac{\sin ax^2}{ax^2}\to a\) and equate to \(f(0)\).

Exam Note: Use \(\sin t/t\to1\) to equate the limit with \(f(0)\).

Question 3.9. Let \(f(x)=\begin{cases}\dfrac{a+3\cos x}{x^2}, & x<0\\[2mm] b\tan\left(\dfrac{\pi}{[x+3]}\right), & x\geq0\end{cases}\)

If \(f(x)\) is continuous at \(x=0\), then find \(a\) and \(b\), where \([\,.\,]\) denotes the greatest integer function.

Solution.

\(f(0^+)=\lim_{h\to0}b\tan\left(\dfrac{\pi}{[h+3]}\right)=b\tan\left(\dfrac{\pi}{3}\right)=\sqrt3\,b\)

\(f(0^-)=\lim_{h\to0}\dfrac{a+3\cos(-h)}{(-h)^2}\)

\(\Rightarrow a+3=0\) as \(f(x)\) is continuous at \(x=0\), then \(f(0^-)\) must be finite.

\(\Rightarrow a=-3\)

\(\Rightarrow f(0^-)=\lim_{h\to0}\dfrac{-3+3\cosh}{h^2}=\lim_{h\to0}\dfrac{-3\cosh}{2}=\dfrac{-3}{2}\)

Since \(f(x)\) is continuous at \(x=0\), then

\(\sqrt3\,b=\dfrac{-3}{2}\Rightarrow b=\dfrac{-\sqrt3}{2}\)

Teacher's Note: For a finite left limit the numerator must vanish at 0 (\(a=-3\)); then equate both one-sided limits.

Exam Note: Finite \(0/0\) limit forces the numerator zero.

Question 3.10. \(f(x)=\begin{cases}\cos^{-1}\{\cot x\}, & x<\dfrac{\pi}{2}\\[2mm] \pi[x]-1, & x\geq\dfrac{\pi}{2}\end{cases}\)

where \([\,.\,]\) represents the greatest function and \(\{\,.\,\}\) represents the fractional part function. Find the jump of discontinuity.

Solution.

\(\lim_{x\to\pi^-/2}f(x)=\lim_{x\to\pi^-/2}\cos^{-1}\{\cot x\}\)

\(=\cos^{-1}\{0^+\}=\cos^{-1}0=\dfrac{\pi}{2}\)

\(\lim_{x\to\pi^+/2}f(x)=\lim_{x\to\pi^+/2}(\pi[x]-1)=\pi-1\)

\(\therefore\) jump of discontinuity \(=\pi-1-\dfrac{\pi}{2}=\dfrac{\pi}{2}-1\)

Teacher's Note: Find left and right limits at \(\pi/2\) (note \([\pi/2]=1\)); jump is their difference.

Exam Note: Jump of discontinuity equals right limit minus left limit.

Question 3.11. If \(f(x)=\begin{cases}|x+1|;& x\leq0\\ x;& x>0\end{cases}\) and \(g(x)=\begin{cases}|x|+1;& x\leq1\\ -|x-2|;& x>1\end{cases}\).

Draw its graph and discuss the continuity of \(f(x)+g(x)\).

Solution.

Since \(f(x)\) is discontinuous at \(x=0\) and \(g(x)\) is continuous at \(x=0\), then \(f(x)+g(x)\) is discontinuous at \(x=0\).

Since \(f(x)\) is continuous at \(x=1\) and \(g(x)\) is discontinuous at \(x=1\), then \(f(x)+g(x)\) is discontinuous at \(x=1\).

Alternative method

\(f(x)=\begin{cases}-x-1,& x<-1\\ x+1,& -1\leq x\leq0\\ x;& x>0\end{cases}\) and \(g(x)=\begin{cases}-x+1,& x\leq0\\ x+1,& 0<x\leq1\\ x-2,& 1<x<2\\ -x+2,& x\geq2\end{cases}\)

Also, \(f(x)\) and \(g(x)\) are re-written as

\(f(x)=\begin{cases}-x-1,& x<-1\\ x+1,& -1\leq x\leq0\\ x,& 0<x\leq1\\ x,& 1<x<2\\ x,& x\geq2\end{cases}\) and \(g(x)=\begin{cases}-x+1,& x<-1\\ -x+1,& -1\leq x\leq0\\ x+1,& 0<x\leq1\\ x-2,& 1<x<2\\ -x+2,& x\geq2\end{cases}\)

\(f(x)+g(x)=\begin{cases}-2x,& x<-1\\ 2,& -1\leq x\leq0\\ 2x+1,& 0<x\leq1\\ 2x-2& 1<x<2\\ 2,& x\geq2\end{cases}\)

The graph of \(f(x)+g(x)\) is shown in Fig. 3.7.

From the graph, \(f(x)+g(x)\) is discontinuous at \(x=0,1\).

xy-2-11231234O

Teacher's Note: Rewrite both functions on common intervals, add, and read the jumps from the graph.

Exam Note: Sum of continuous and discontinuous functions is discontinuous.

Question 3.12. Discuss the continuity of following functions (\([\,.\,]\) represents the greatest integer function.)

(a) \(f(x)=[\log_e x]\)

(b) \(f(x)=[\sin^{-1}x]\)

(c) \(f(x)=\left[\dfrac{2}{1+x^2}\right],\ x\geq0\)

Solution.

(a) \(\log_e x\) function is a monotonically increasing function.

Hence \(f(x)=[\log_e x]\) is discontinuous, where \(\log_e x=k\) or \(x=e^k,\ k\in Z\).

Thus \(f(x)\) is discontinuous at \(x=\cdots e^{-2},e^{-1},e^0,e^1,e^2,\cdots\)

(b) \(\sin^{-1}x\) is a monotonically increasing function.

Hence, \(f(x)=[\sin^{-1}x]\) is discontinuous where \(\sin^{-1}x\) is an integer.

\(\Rightarrow \sin^{-1}x=-1,0,1\) or \(x=-\sin1,0,\sin1\)

(c) \(\dfrac{2}{1+x^2},\ x\geq0\), is a monotonically decreasing function.

Hence, \(f(x)=\left[\dfrac{2}{1+x^2}\right],\ x\geq0\) is discontinuous, when \(\dfrac{2}{1+x^2}\) is an integer.

\(\Rightarrow \dfrac{2}{1+x^2}=1,2\)

\(\Rightarrow x=1,0\)

Teacher's Note: For \([g(x)]\) with monotonic \(g\), discontinuity occurs exactly where \(g(x)\) is an integer.

Exam Note: Monotonic \(g\): \([g]\) breaks at integer values of \(g\).

Question 3.13. The number of points where \(f(x)=[x/3],\ x\in[0,30]\) is discontinuous (where \([\,.\,]\) represents greatest integer function).

Solution.

\(f(x)=[x/3]\) is discontinuous when \(x/3\) is integer.

For \(x\in[0,30]\), \(f(x)\) is discontinuous when \(x=3,6,9,\cdots,27,30\).

Hence \(f(x)\) is discontinuous at exactly 10 values of \(x\).

Teacher's Note: Count the multiples of 3 in \((0,30]\) where \(x/3\) is an integer.

Exam Note: Integer values of \(x/3\) give the breaks.

Question 3.14. Draw the graph and find the points of discontinuity for \(f(x)=[2\cos x],\ x\in[0,2\pi]\). (\([\,.\,]\) represents the greatest integer function.)

Solution.

\(f(x)=[2\cos x]\)

The graph is shown in Fig. 3.8 (the dotted curve is \(y=2\cos x\)).

Clearly from the graph given in Fig. 3.8, \(f(x)\) is discontinuous at \(x=0,\dfrac{\pi}{3},\dfrac{\pi}{2},\dfrac{2\pi}{3},\dfrac{4\pi}{3},\dfrac{3\pi}{2},\dfrac{5\pi}{3},2\pi\).

xyπ/3π/22π/3π4π/33π/25π/32π-2-112

Teacher's Note: List where \(2\cos x\) takes integer values and check one-sided values; at \(x=\pi\) it stays \(-2\).

Exam Note: At the minimum \(x=\pi\), the function is continuous.

Question 3.15. Draw the graph and discuss the continuity of \(f(x)=[\sin x+\cos x],\ x\in[0,2\pi]\), where \([\,.\,]\) represents the greatest integer function.

Solution.

\(f(x)=[\sin x+\cos x]=[g(x)]\) where \(g(x)=\sin x+\cos x\)

\(g(0)=1,\ g\left(\dfrac{\pi}{4}\right)=\sqrt2,\ g\left(\dfrac{\pi}{2}\right)=1\)

\(g\left(\dfrac{3\pi}{4}\right)=0,\ g(\pi)=-1,\ g\left(\dfrac{5\pi}{4}\right)=-\sqrt2\)

\(g\left(\dfrac{3\pi}{2}\right)=-1,\ g\left(\dfrac{7\pi}{4}\right)=0,\ g(2\pi)=1\)

The graph is shown in Fig. 3.9 (the dotted curve is \(y=\sin x+\cos x\)).

Clearly from the graph, \(f(x)\) is discontinuous at \(x=\dfrac{\pi}{2},\dfrac{3\pi}{4},\pi,\dfrac{3\pi}{2},\dfrac{7\pi}{4},2\pi\).

xyπ/23π/4π3π/27π/42π-2-11

Teacher's Note: Tabulate \(g=\sin x+\cos x\) at key points; \([g]\) breaks where \(g\) crosses an integer.

Exam Note: At \(x=0\), \(f\) is right-continuous, so continuous.

Question 3.16. If the function \(f(x)=\left[\dfrac{(x-2)^3}{a}\right]\sin(x-2)+a\cos(x-2)\). \([\,.\,]\) denotes the greatest integer function which is continuous in \([4,6]\), then find the values of \(a\).

Solution.

\(\sin(x-2)\) and \(\cos(x-2)\) are continuous for all \(x\).

Since \([x^3]\) is not continuous at integral point.

So \(f(x)\) is continuous in \([4,6]\) if \(\left[\dfrac{(x-2)^3}{a}\right]=0\ \forall x\in[4,6]\).

Now \((x-2)^3\in[8,64]\) for \(x\in[4,6]\).

\(\Rightarrow a>64\) for \(\left[\dfrac{(x-2)^3}{a}\right]=0\)

(Remark: for \(a\leq-64\) the ratio lies in \([-1,0)\), so the greatest integer is the constant \(-1\) and \(f\) is continuous there as well; the book's statement covers the case where the bracket is 0.)

Teacher's Note: The bracket must be constant on \([4,6]\); with \((x-2)^3\in[8,64]\), taking \(a>64\) makes it 0.

Exam Note: Greatest-integer factor must stay constant on the interval.

Question 3.17. Discuss the continuity of \(f(x)=\begin{cases}[x\{x\}]+1,& 0\leq x<1\\ 2-\{x\},& 1\leq x\leq2\end{cases}\)

where \(\{x\}\) denotes the fractional part function.

Solution.

\(f(0)=f(0^+)=1\)

\(f(2)=2\) and \(f(2^-)=1\)

Hence \(f(x)\) is discontinuous at \(x=2\).

Also \(f(1^+)=2\) and \(f(1)=2\)

But \(f(1^-)=[x\{x\}]+1=0+1=1\) (as \(x\{x\}=x^2<1\) for \(x\to1^-\)), which is not equal to \(f(1)=2\)

Hence \(f(x)\) is discontinuous at \(x=1\) also.

Teacher's Note: For \(0\leq x<1\), \(x\{x\}=x^2<1\) so \(f=1\); compare one-sided values at 1 and 2.

Exam Note: Check one-sided limits at \(x=1\) and \(x=2\).

Question 3.18. Discuss the continuity of

(a) \(f(x)=\operatorname{sgn}(x^3-x)\)

(b) \(f(x)=\operatorname{sgn}(2\cos x-1)\)

(c) \(f(x)=\operatorname{sgn}(x^2-2x+3)\)

Solution.

(a) \(f(x)=\operatorname{sgn}(x^3-x)\)

Here \(x^3-x=0\Rightarrow x=0,-1,1\)

Hence \(f(x)\) is discontinuous at \(x=0,-1,1\).

(b) \(f(x)=\operatorname{sgn}(2\cos x-1)\)

Here, \(2\cos x-1=0\Rightarrow\cos x=1/2\Rightarrow x=2n\pi\pm(\pi/3)\), \(n\in Z\), where \(f(x)\) is discontinuous.

(c) \(f(x)=\operatorname{sgn}(x^2-2x+3)\)

Here, \(x^2-2x+3>0\) for all \(x\).

Thus, \(f(x)=1\) for all \(x\), hence continuous for all \(x\).

Teacher's Note: \(\operatorname{sgn}(g)\) is discontinuous exactly where \(g\) changes sign or vanishes; solve \(g=0\).

Exam Note: Zeros of \(g(x)\) are the discontinuities of \(\operatorname{sgn}g\).

Question 3.19. If \(f(x)=\operatorname{sgn}(2\sin x+a)\) is continuous for all \(x\), then find the possible values of \(a\).

Solution.

\(f(x)=\operatorname{sgn}(2\sin x+a)\) is continuous for all \(x\).

Then \(2\sin x+a\neq0\) for any real \(x\).

\(\sin x\neq-a/2\ \Rightarrow\ |a/2|>1\ \Rightarrow\ a<-2\) or \(a>2\)

Teacher's Note: \(\operatorname{sgn}\) is continuous only if the argument never vanishes; \(-a/2\) must lie outside \([-1,1]\).

Exam Note: Require \(2\sin x+a\neq0\) for every \(x\).

Question 3.20. Discuss the continuity of \(f(x)=|x|\operatorname{sgn}(x^3-x)\).

Solution.

\(\operatorname{sgn}(x^3-x)\) is discontinuous when \(x^3-x=0\) or \(x=0,\pm1\).

But \(f(0)=f(0^+)=f(0^-)=0\).

Hence \(f(x)\) is continuous at \(x=0\)

Hence \(f(x)=|x|\operatorname{sgn}(x^3-x)\) is discontinuous at \(x=\pm1\) only.

Teacher's Note: The factor \(|x|\) vanishes at 0 and kills the jump there, but not at \(\pm1\).

Exam Note: Check each zero of \(x^3-x\) separately.

Question 3.21. If \(f(x)=\begin{cases}\operatorname{sgn}(x-2)\times[\log_e x],& 1\leq x\leq3\\ \{x^2\},& 3<x\leq3.5\end{cases}\)

where \([\,.\,]\) denotes the greatest integer function and \(\{\,.\}\) represents the fractional part function. Find the point where the continuity of \(f(x)\) should be checked. Hence, find the points of discontinuity.

Solution.

(a) Continuity should be checked at the endpoints of intervals of each definition, i.e., \(x=1,3,3.5\).

(b) For \(\{x^2\}\), continuity should be checked when \(x^2=10,11,12\) or \(x=\sqrt{10},\sqrt{11},\sqrt{12}\). \(\{x^2\}\) is discontinuous for those values of \(x\) where \(x^2\) is an integer (note, here \(x^2\) is monotonic for given domain).

(c) For \(\operatorname{sgn}(x-2)\), continuity should be checked when \(x-2=0\) or \(x=2\).

(d) For \([\log_e x]\), continuity should be checked when \(\log_e x=1\) or \(x=e\ (\in[1,3])\).

Hence, the overall continuity must be checked at \(x=1,2,e,3,\sqrt{10},\sqrt{11},\sqrt{12},3.5\).

Further, \(f(1)=0\) and \(\lim_{x\to1^+}f(x)=\lim_{x\to1^+}\operatorname{sgn}(x-2)\times[\log_e x]=0\). Hence \(f(x)\) is continuous at \(x=1\).

\(\lim_{x\to2^-}f(x)=\lim_{x\to2^-}\operatorname{sgn}(x-2)\times[\log_e x]=(-1)\times0=0\)

\(\lim_{x\to2^+}f(x)=\lim_{x\to2^+}\operatorname{sgn}(x-2)\times[\log_e x]=(1)\times0=0\). Also \(f(2)=0\)

Hence, \(f(x)\) is continuous at \(x=2\)

\(\lim_{x\to e^-}f(x)=\lim_{x\to e^-}\operatorname{sgn}(x-2)\times[\log_e x]=(1)\times0=0\)

\(\lim_{x\to e^+}f(x)=\lim_{x\to e^+}\operatorname{sgn}(x-2)\times[\log_e x]=(1)\times(1)=1\)

Hence, \(f(x)\) is discontinuous at \(x=e\).

\(\lim_{x\to3^-}f(x)=\lim_{x\to3^-}\operatorname{sgn}(x-2)\times[\log_e x]=1\)

\(\lim_{x\to3^+}f(x)=\lim_{x\to3^+}\{x^2\}=0\)

Hence, \(f(x)\) is discontinuous at \(x=3\).

Also \(\{x^2\}\) and hence \(f(x)\) is discontinuous at \(x=\sqrt{10},\sqrt{11},\sqrt{12}\).

\(\lim_{x\to3.5^-}f(x)=\lim_{x\to3.5^-}\{x^2\}=0.25=f(3.5)\)

Hence, \(f(x)\) is discontinuous at \(x=e,3,\sqrt{10},\sqrt{11},\sqrt{12}\).

Teacher's Note: Check continuity at interval ends and at points where \(x-2=0\), \(\ln x\) or \(x^2\) is an integer.

Exam Note: List every suspect point, then test one-sided limits.

Question 3.22. Discuss the continuity of \(f(x)=\lim_{n\to\infty}\dfrac{x^{2n}-1}{x^{2n}+1}\).

Solution.

\(f(x)=\lim_{n\to\infty}\dfrac{(x^2)^n-1}{(x^2)^n+1}\)

\(=\lim_{n\to\infty}\dfrac{1-\dfrac{1}{(x^2)^n}}{1+\dfrac{1}{(x^2)^n}}=\begin{cases}-1,& 0\leq x^2<1\\ 0,& x^2=1\\ 1,& x^2>1\end{cases}=\begin{cases}1,& x<-1\\ 0,& x=-1\\ -1,& -1<x<1\\ 0,& x=1\\ 1,& x>1\end{cases}\)

Thus, \(f(x)\) is discontinuous at \(x=\pm1\).

Teacher's Note: Use \(\lim a^n\) cases: 0, 1 or \(\infty\) according as \(0\leq a<1\), \(a=1\), \(a>1\).

Exam Note: Split into \(|x|<1\), \(|x|=1\), \(|x|>1\).

Question 3.23. Discuss the continuity of \(f(x)=\lim_{n\to\infty}\cos^{2n}x\).

Solution.

\(f(x)=\lim_{n\to\infty}(\cos^2x)^n\)

\(=\begin{cases}0,& 0\leq\cos^2x<1\\ 1,& \cos^2x=1\end{cases}=\begin{cases}0,& x\neq n\pi,\ n\in I\\ 1,& x=n\pi,\ n\in I\end{cases}\)

Hence, \(f(x)\) is discontinuous when \(x=n\pi,\ n\in I\).

Teacher's Note: \(\lim a^n\) with \(a=\cos^2x\) is 0 unless \(\cos^2x=1\), i.e. \(x=n\pi\).

Exam Note: Limit function is 1 at multiples of \(\pi\), else 0.

Question 3.24. Find the values of \(a\) if \(f(x)=\lim_{n\to\infty}\dfrac{ax^{2n}+2}{x^{2n}+a+1}\) is continuous at \(x=1\).

Solution.

\(f(1^+)=a\) and \(f(1^-)=\dfrac{2}{a+1}\)

For continuity at \(x=1\), \(a=\dfrac{2}{a+1}\)

\(\Rightarrow a^2+a=2\ \Rightarrow\ a^2+a-2=0\ \Rightarrow\ a=-2,\ a=1\)

(Remark: for \(a=-2\) the expression at \(x=1\) is of the form \(0/0\), so \(f(1)\) is not defined; for \(a=1\) we get \(f(1)=1=f(1^+)=f(1^-)\).)

Teacher's Note: Take limits for \(x>1\) and \(x<1\) (powers \(x^{2n}\) go to \(\infty\) or 0) and equate them.

Exam Note: Equate left and right limits; check \(f(1)\) is defined.

Question 3.25. Discuss the continuity of the following function:

\(f(x)=\begin{cases}1,& \text{if } x \text{ is rational}\\ 0,& \text{if } x \text{ is irrational}\end{cases}\)

Solution.

For any \(x=a\),

L.H.L. \(=\lim_{x\to a^-}f(x)=\lim_{h\to0}f(a-h)=0\) or 1 [as \(\lim_{h\to0}(a-h)\) can be rational or irrational]

Similarly, R.H.L. \(=\lim_{x\to a^+}f(x)=\lim_{h\to0}f(a+h)=0\) or 1.

Hence, \(f(x)\) oscillates between 0 and 1 as for all values of \(a\).

\(\therefore\) L.H.L. and R.H.L. do not exist.

\(\Rightarrow f(x)\) is discontinuous at a point \(x=a\) for all values of \(a\).

Teacher's Note: Every neighbourhood contains rationals and irrationals, so the function oscillates between 0 and 1.

Exam Note: Dirichlet-type function is discontinuous everywhere.

Question 3.26. Find the value of \(x\) where \(f(x)=\begin{cases}x,& \text{if } x \text{ is rational}\\ 1-x,& \text{if } x \text{ is irrational}\end{cases}\) is continuous.

Solution.

\(f(x)\) is continuous at some \(x=a\), where \(x=1-x\) or \(x=1/2\).

Hence, \(f(x)\) is continuous at \(x=1/2\).

We have \(f(1/2)=1/2\)

If \(x\to1/2^+\) then \(x\) may be rational or irrational

\(\Rightarrow f(1/2^+)=1/2\) or \(1-1/2=1/2\)

If \(x\to1/2^-\) then \(x\) may be rational or irrational

\(\Rightarrow f(1/2^-)=1/2\) or \(1-1/2=1/2\)

Hence \(f(x)\) is continuous at \(x=1/2\).

For some other point, say, \(x=1\ \Rightarrow\ f(1)=1\)

If \(x\to1^+\) then \(x\) may be rational or irrational.

\(\Rightarrow f(1^+)=1\) or \(1-1=0\)

Hence, \(f(1^+)\) oscillates between 1 and 0, which causes discontinuity at \(x=1\).

Similarly, \(f(x)\) oscillates between 0 and 1 for all \(x\in R-\{1/2\}\).

Teacher's Note: Both branches agree only where \(x=1-x\); elsewhere the function oscillates.

Exam Note: Continuity only where both branches coincide.

Question 3.27. If \(f(x)=\dfrac{x+1}{x-1}\) and \(g(x)=\dfrac{1}{x-2}\), then discuss the continuity of \(f(x),\ g(x)\), and \(f\circ g(x)\).

Solution.

\(f(x)=\dfrac{x+1}{x-1}\)

\(\therefore f\) is not defined at \(x=1\). \(\therefore f\) is discontinuous at \(x=1\).

\(g(x)=\dfrac{1}{x-2}\)

\(g(x)\) is not defined at \(x=2\). \(\therefore g\) is discontinuous at \(x=2\).

Now, \(f\circ g(x)\) will be discontinuous at

(a) \(x=2\) [point of discontinuity of \(g(x)\)]

(b) \(g(x)=1\) [when \(g(x)=\) point of discontinuity of \(f(x)\)]

if \(g(x)=1\Rightarrow\dfrac{1}{x-2}=1\Rightarrow x=3\)

\(\therefore f\circ g(x)\) is discontinuous at \(x=2\) and \(x=3\).

Also, \(f\circ g(x)=\dfrac{\dfrac{1}{x-2}+1}{\dfrac{1}{x-2}-1}\)

Here \(f\circ g(2)\) is not defined.

\(\lim_{x\to2}f\circ g(x)=\lim_{x\to2}\dfrac{\dfrac{1}{x-2}+1}{\dfrac{1}{x-2}-1}=\lim_{x\to2}\dfrac{1+x-2}{1-x+2}=1\).

\(\therefore f\circ g(x)\) is discontinuous at \(x=2\) and it has a removable discontinuity at \(x=2\). For continuity at \(x=3\),

\(\lim_{x\to3^+}f\circ g(x)=\lim_{x\to3^+}\dfrac{\dfrac{1}{x-2}+1}{\dfrac{1}{x-2}-1}=-\infty\)

\(\lim_{x\to3^-}f\circ g(x)=\lim_{x\to3^-}\dfrac{\dfrac{1}{x-2}+1}{\dfrac{1}{x-2}-1}=\infty\)

\(\therefore f\circ g(x)\) is discontinuous at \(x=3\), and it is a non-removable discontinuity at \(x=3\).

Teacher's Note: \(f\circ g\) can break where \(g\) breaks or where \(g(x)\) equals a break point of \(f\); simplify and test limits.

Exam Note: Composite breaks where inner breaks or hits outer's break.

Question 3.28. If \(f(x)=\begin{cases}x-2,& x\leq0\\ 4-x^2,& x>0\end{cases}\), then discuss the continuity of \(y=f(f(x))\).

Solution.

\(f(x)\) is discontinuous at \(x=0\),

Hence, \(f(f(x))\) may be discontinuous at \(x=0\)

\(f(f(0^+))=f(4)=4-16=-12\)

and \(f(f(0^-))=f(-2)=-4\)

Hence, \(f(x)\) is discontinuous at \(x=0\)

\(f(f(x))\) is also discontinuous when \(f(x)=0\)

\(\Rightarrow x-2=0\) when \(x\leq0\) or \(x^2-4=0\) when \(x>0\)

\(\Rightarrow\) at \(x=2\)

Also we can see that \(f(f(2))=f(0)=-2\), \(f(f(2^+))=f(0^-)=-2\) and \(f(f(2^-))=f(0^+)=4\)

Hence \(f(f(x))\) is discontinuous at \(x=0\) and \(x=2\).

Teacher's Note: \(f(f(x))\) may break where \(f\) breaks (\(x=0\)) or where \(f(x)=0\) (\(x=2\)); compare one-sided values.

Exam Note: Composite breaks where \(f(x)\) hits a break point of \(f\).

Question 3.29. Let \(f\) be a continuous function defined onto on \([0,1]\) with range \([0,1]\). Show that there is some \(c\) in \([0,1]\) such that \(f(c)=1-c\).

Solution.

Consider \(g(x)=f(x)-1+x\)

\(g(0)=f(0)-1\leq0\) [as \(f(0)\leq1\)]

\(g(1)=f(1)\geq0\) [as \(f(1)\geq0\)]

Hence, \(g(0)\) and \(g(1)\) have values of opposite signs.

Hence, there exists at least one \(c\in[0,1]\) such that \(g(c)=0\).

\(\therefore g(c)=f(c)-1+c=0;\ f(c)=1-c\).

Teacher's Note: Apply the intermediate value theorem to \(g(x)=f(x)-1+x\), which has opposite signs at 0 and 1.

Exam Note: Intermediate value theorem applied to an auxiliary function.

Question 3.30. Let \(f\) be continuous on the interval \([0,1]\) to \(R\) such that \(f(0)=f(1)\). Prove that there exists a point \(c\) in \(\left[0,\dfrac12\right]\) such that \(f(c)=f\left(c+\dfrac12\right)\).

Solution.

Consider a continuous function \(g(x)=f\left(x+\dfrac12\right)-f(x)\)

(\(g\) is continuous \(\forall x\in\left[0,\dfrac12\right]\))

\(g(0)=f\left(\dfrac12\right)-f(0)=f\left(\dfrac12\right)-f(1)\) [as \(f(0)=f(1)\)]

and \(g\left(\dfrac12\right)=f(1)-f\left(\dfrac12\right)=-\left[f\left(\dfrac12\right)-f(1)\right]\)

Since \(g\) is continuous and \(g(0)\) and \(g(1/2)\) have opposite signs, hence the equation \(g(x)=0\) must have at least one root in \([0,1/2]\).

Hence, for some \(c\in\left[0,\dfrac12\right]\), \(g(c)=0\Rightarrow f\left(c+\dfrac12\right)=f(c)\).

Teacher's Note: Define \(g(x)=f(x+\frac12)-f(x)\); \(g(0)=-g(\frac12)\), so the intermediate value theorem gives a root.

Exam Note: Auxiliary function with \(g(0)=-g(1/2)\) has a root.

Question 3.31. Let \(f:[0,1]\to[0,1]\) be a continuous function. Then prove \(f(x)=x\) for at least one \(0\leq x\leq1\)

Solution.

Clearly, \(0\leq f(0)\leq1\) and \(0\leq f(1)\leq1\). As \(f(x)\) is continuous, \(f(x)\) attains all the values between \(f(0)\) and \(f(1)\), and the graph will have no breaks. So, the graph will cut the line \(y=x\) at least once, where \(0\leq x\leq1\).

So, \(f(x)=x\) at that point.

XYO11y = xf(0)f(1)

Teacher's Note: A continuous graph from \((0,f(0))\) to \((1,f(1))\) inside the unit square must cross \(y=x\).

Exam Note: Fixed-point idea: continuous graph crosses the line \(y=x\).

Question 3.32. Suppose \(f\) is a continuous map for \(R\) to \(R\) and \(f(f(a))=a\) for some \(a\). Show that there is some \(b\) such that \(f(b)=b\).

Solution.

If \(f(a)=a\) then \(b=a\) solves the problem.

So assume \(f(a)>a\). Then \(g(x)=f(x)-x\) is positive at \(x=a\) and is negative at \(c=f(a)\) since \(g(c)=f(f(a))-f(a)=a-f(a)<0\).

Since \(g:R\to R\) is continuous, there must be some \(b\), \(a<b<c\), such that \(g(x)=0\), i.e., \(f(b)=b\).

The same argument works if \(f(a)<a\).

Teacher's Note: Apply the intermediate value theorem to \(g(x)=f(x)-x\), which changes sign between \(a\) and \(f(a)\).

Exam Note: Sign change of \(f(x)-x\) gives a fixed point.

Question 3.33. Show that the function \(f(x)=(x-a)^2(x-b)^2+x\) takes the value \(\dfrac{a+b}{2}\) for some value of \(x\in[a,b]\).

Solution.

\(f(a)=a;\ f(b)=b\). Also \(f\) is continuous in \([a,b]\) and \(\dfrac{a+b}{2}\in[a,b]\).

Hence, using intermediate value theorem, there exists at least one \(c\in[a,b]\) such that \(f(c)=\dfrac{a+b}{2}\).

Teacher's Note: Evaluate \(f(a)=a\), \(f(b)=b\); the midpoint lies between them, so the intermediate value theorem applies.

Exam Note: Intermediate value theorem: continuous \(f\) takes every in-between value.

Question 3.34. Using intermediate value theorem, prove that there exists a number \(x\) such that \(x^{2005}+\dfrac{1}{1+\sin^2x}=2005\).

Solution.

Let \(f(x)=x^{2005}+(1+\sin^2x)^{-1}\)

\(\therefore f\) is continuous and \(f(0)=1<2005\) and \(f(2)>2^{2005}\), which is much greater than 2005. Hence, from the intermediate value theorem, there exists a number \(c\) in \((0,2)\) such that \(f(c)=2005\).

Teacher's Note: Show \(f(0)<2005<f(2)\) for the continuous function and invoke the intermediate value theorem.

Exam Note: Bracket the target value, then use the intermediate value theorem.

Question 3.35. Discuss the differentiability of \(f(x)=\begin{cases}\dfrac{\sin x^2}{x},& x\neq0\\ 0,& x=0\end{cases}\) at \(x=0\).

Solution.

For continuity, \(\lim_{x\to0}f(x)=\lim_{h\to0}\dfrac{\sin h^2}{h}\)

\(=\lim_{h\to0}h\dfrac{\sin h^2}{h^2}=0\)

Hence, \(f(x)\) is continuous at \(x=0\).

Also, \(f'(0^+)=\lim_{h\to0}\dfrac{f(h)-f(0)}{h}=\lim_{h\to0}\dfrac{\sin h^2}{h^2}=1\)

and \(f'(0^-)=\lim_{h\to0}\dfrac{f(-h)-f(0)}{-h}=\lim_{h\to0}\dfrac{\sin h^2}{h^2}=1\)

Thus, \(f(x)\) is differentiable at \(x=0\).

Teacher's Note: Check continuity first, then compute both one-sided derivatives from the definition using \(\sin t/t\to1\).

Exam Note: Equal one-sided derivatives mean differentiable.

Question 3.36. Discuss the differentiability of \(f(x)=\begin{cases}x\sin(\ln x^2),& x\neq0\\ 0,& x=0\end{cases}\) at \(x=0\).

Solution.

For continuity,

\(f(0^+)=\lim_{h\to0}h\sin(\ln h^2)=0\times\)(any value between \(-1\) and \(1\)) \(=0\)

\(f(0^-)=\lim_{h\to0}(-h)\sin(\ln h^2)=0\times\)(any value between \(-1\) and \(1\)) \(=0\)

Hence, \(f(x)\) is continuous at \(x=0\).

For differentiability,

\(f'(0^+)=\lim_{h\to0}\dfrac{f(h)-f(0)}{h}\)

\(=\lim_{h\to0}\dfrac{h\sin(\ln h^2)-0}{h}=\lim_{h\to0}\sin(\ln h^2)\)

\(=\) any value between \(-1\) and \(1\).

Hence, \(f'(0)\) does not take any fixed value.

Hence, \(f(x)\) is not differentiable at \(x=0\).

Teacher's Note: The difference quotient reduces to \(\sin(\ln h^2)\), which oscillates between \(-1\) and \(1\) as \(h\to0\).

Exam Note: Oscillating difference quotient means no derivative.

Question 3.37. Which of the following function is non-differential at \(x=0\)?

(i) \(f(x)=\cos|x|\)

(ii) \(f(x)=x|x|\)

(iii) \(f(x)=|x^3|\)

Solution.

(i) \(f(x)=\cos|x|=\cos x\) which is differentiable at \(x=0\)

(ii) \(f(x)=x|x|=\begin{cases}x^2,& x\geq0\\ -x^2,& x<0\end{cases}\Rightarrow f'(x)=\begin{cases}2x,& x>0\\ -2x,& x<0\end{cases}\), \(f'(0^+)=f'(0^-)=0\)

Hence \(f(x)\) is differentiable at \(x=0\).

(iii) \(f(x)=|x^3|=\begin{cases}x^3,& x\geq0\\ -x^3,& x<0\end{cases}\Rightarrow f'(x)=\begin{cases}3x^2,& x>0\\ -3x^2,& x<0\end{cases}\), \(f'(0^+)=f'(0^-)=0\)

Hence \(f(x)\) is differentiable at \(x=0\).

So none of the three functions is non-differentiable at \(x=0\).

Teacher's Note: Rewrite each modulus as a piecewise function and compare \(f'(0^+)\) with \(f'(0^-)\).

Exam Note: Odd powers times modulus are smooth at the origin.

Question 3.38. Discuss the differentiability of \(f(x)=\begin{cases}(x-e)\,2^{-2^{\frac{1}{e-x}}},& x\neq e\\ 0,& x=e\end{cases}\) at \(x=e\).

Solution.

\(f(e^+)=\lim_{h\to0}(e+h-e)\,2^{-2^{\frac{1}{e-(e+h)}}}\)

\(=\lim_{h\to0}(h)\,2^{-2^{-\frac1h}}\)

\(=0\times1=0\) (as for \(h\to0,\ -\dfrac1h\to-\infty\Rightarrow2^{-\frac1h}\to0\))

\(f(e^-)=\lim_{h\to0}(-h)\,2^{-2^{\frac1h}}=0\times0=0\)

Hence, \(f(x)\) is continuous at \(x=e\).

\(f'(e^+)=\lim_{h\to0}\dfrac{f(e+h)-f(e)}{h}=\lim_{h\to0}\dfrac{h\times2^{-2^{-\frac1h}}-0}{h}\)

\(=\lim_{h\to0}2^{-2^{-\frac1h}}=1\)

\(f'(e^-)=\lim_{h\to0}\dfrac{f(e-h)-f(e)}{-h}=\lim_{h\to0}\dfrac{(-h)2^{-2^{\frac1h}}-0}{-h}\)

\(=\lim_{h\to0}2^{-2^{\frac1h}}=0\)

Hence, \(f(x)\) is non-differentiable at \(x=e\).

Teacher's Note: Compute left and right derivatives from the definition; the exponent \(2^{\pm1/h}\) tends to \(0\) or \(\infty\).

Exam Note: Unequal one-sided derivatives (1 and 0): not differentiable.

Question 3.39. A function \(f(x)\) is such that \(f\left(x+\dfrac{\pi}{2}\right)=\dfrac{\pi}{2}-|x|\ \forall x\). Find \(f'\left(\dfrac{\pi}{2}\right)\), if it exists.

Solution.

Given that \(f\left(x+\dfrac{\pi}{2}\right)=\dfrac{\pi}{2}-|x|\)

\(f'\left(\dfrac{\pi^+}{2}\right)=\lim_{h\to0}\dfrac{f\left(\dfrac{\pi}{2}+h\right)-f\left(\dfrac{\pi}{2}\right)}{h}=\dfrac{\dfrac{\pi}{2}-|h|-\dfrac{\pi}{2}}{h}=-1\)

and \(f'\left(\dfrac{\pi^-}{2}\right)=\lim_{h\to0}\dfrac{f\left(\dfrac{\pi}{2}-h\right)-f\left(\dfrac{\pi}{2}\right)}{-h}=\dfrac{\dfrac{\pi}{2}-|-h|-\dfrac{\pi}{2}}{-h}=1\)

\(\Rightarrow f'\left(\dfrac{\pi}{2}\right)\) does not exist.

Teacher's Note: Substitute \(x=\pm h\) in the given relation to get both one-sided derivatives at \(\pi/2\).

Exam Note: Shifted modulus graph has a corner.

Question 3.40. Discuss the differentiability of \(f(x)=|x|+|x-1|\).

Solution.

\(f(x)=|x|+|x-1|\)

\(f(x)\) is continuous everywhere as \(|x|\) and \(|x-1|\) are continuous for all \(x\).

Also \(|x|\) and \(|x-1|\) are non-differentiable at \(x=0\) and \(x=1\), respectively.

Hence, \(f(x)\) is non-differentiable at \(x=0\) and \(x=1\).

Teacher's Note: Each modulus term has a corner; at each corner the other term is smooth, so the sum has a corner.

Exam Note: Smooth plus non-differentiable is non-differentiable.

Question 3.41. Discuss the differentiability of \(f(x)=[x]+|1-x|,\ x\in(-1,3)\), where \([\,.\,]\) represents greatest integer function.

Solution.

\([x]\) is non-differentiable at \(x=0,1,2\) and \(|1-x|\) is non-differentiable at \(x=1\). Thus, \(f(x)\) is definitely non-differentiable at \(x=0,2\).

Moreover, \([x]\) is discontinuous at \(x=1\), whereas \(|1-x|\) is continuous at \(x=1\). Thus, \(f(x)\) is discontinuous and hence non-differentiable at \(x=1\).

Teacher's Note: Greatest integer part breaks at integers 0, 1, 2; discontinuity at 1 survives adding a continuous term.

Exam Note: Discontinuous implies non-differentiable.

Question 3.42. Discuss the differentiability of \(f(x)=(x^2-1)|x^2-x-2|+\sin(|x|)\).

Solution.

\(f(x)=(x^2-1)|x^2-x-2|+\sin(|x|)\)

\(=(x-1)(x+1)\,|x+1|\,|x-2|+\sin(|x|)\)

\((x+1)|x+1|\) is differentiable at \(x=-1\)

\(|x-2|\) is non-differentiable at \(x=2\)

\(\sin(|x|)\) is non-differentiable at \(x=0\)

Hence \(f(x)\) is differentiable at \(x=-1\) but not at \(x=0\) and \(x=2\).

Teacher's Note: Factor \(x^2-x-2=(x-2)(x+1)\); \((x+1)|x+1|\) is smooth, while \(|x-2|\) and \(\sin|x|\) have corners.

Exam Note: Check each modulus factor separately.

Question 3.43. Discuss the differentiability of \(f(x)=|x|\sin x+|x-2|\operatorname{sgn}(x-2)+|x-3|\).

Solution.

\(|x|\sin x\) is differentiable at \(x=0\), though \(|x|\) is non-differentiable at \(x=0\), as \(\sin0=0\)

\(|x-2|\operatorname{sgn}(x-2)=\begin{cases}(2-x)(-1),& x<2\\ 0,& x=2\\ (x-2)(1),& x>2\end{cases}=x-2,\ x\in R\) which is differentiable

\(|x-3|\) is non-differentiable at \(x=3\), hence \(f(x)\) is non-differentiable at \(x=3\)

Teacher's Note: Simplify \(|x-2|\operatorname{sgn}(x-2)=x-2\); a modulus times a factor vanishing at the corner stays smooth.

Exam Note: Only \(|x-3|\) causes non-differentiability.

Question 3.44. Discuss the differentiability of

(a) \(f(x)=\sin|x|\),

(b) \(f(x)=|\log_e|x||\),

(c) \(f(x)=\max\{\sec^{-1}x,\ \operatorname{cosec}^{-1}x\}\),

(d) \(y=\sin^{-1}(\sin x)\), and

(e) \(y=\sin^{-1}|\sin x|\).

(f) \(f(x)=\max\{x^2-3x+2,\ 2-|x-1|\}\)

Solution.

(a) \(f(x)=\sin|x|\). Clearly from the graph (graph (a) below), \(f(x)\) is non-differentiable at \(x=0\).

(b) \(f(x)=|\log_e|x||\). Clearly from the graph (graph (b) below), \(f(x)\) is non-differentiable at \(x=0,\pm1\).

(c) \(f(x)=\max\{\sec^{-1}x,\operatorname{cosec}^{-1}x\}\). Clearly from the graph (graph (c) below), \(f(x)\) is non-differentiable at \(x=\sqrt2\).

(d) \(y=\sin^{-1}(\sin x)\). Clearly from the graph (graph (d) below), \(f(x)\) is non-differentiable at \(x=(2n+1)\dfrac{\pi}{2},\ n\in Z\).

(e) \(y=\sin^{-1}|\sin x|\). Clearly from the graph (graph (e) below), \(f(x)\) is non-differentiable at \(x=\dfrac{n\pi}{2},\ n\in Z\).

(f) From the graph (graph (f) below) \(f(x)\) is non-differentiable

(i) at \(x=1\),

(ii) where \(x^2-3x+2=2-(1-x)\), when \(x<1\)

(iii) where \(x^2-3x+2=2-(x-1)\), where \(x>1\)

Hence \(f(x)\) is non-differentiable at \(x=1\), and \(x=2-\sqrt3\) and \(x=1+\sqrt2\).

xyπ/2π3π/2-π/2-π-3π/21-1xy-3-2-112312xy1√2345π/4π/2y = sec⁻¹xy = cosec⁻¹xxyπ/23π/2-π/2-3π/2π-ππ/2-π/2xyπ/2π3π/2-π/2-π-3π/2π/2xy-112341234y = x²-3x+2y = 2-|x-1|

Teacher's Note: Sketch each graph; corners, cusps and break points of the graph are the points of non-differentiability.

Exam Note: Graph corners show non-differentiable points.

Question 3.45. Discuss the differentiability of \(f(x)=\) maximum \(\{2\sin x,\ 1-\cos x\}\ \forall x\in(0,\pi)\).

Solution.

\(f(x)=\max\{2\sin x,\ 1-\cos x\}\) can be plotted as shown in the figure (the dashed curve is \(y=1-\cos x\)).

Thus, \(f(x)=\) maximum \(\{2\sin x,\ 1-\cos x\}\) is not differentiable, when \(2\sin x=1-\cos x\)

\(\Rightarrow 4\sin^2x=(1-\cos x)^2\)

\(\Rightarrow 4(1+\cos x)=(1-\cos x)\)

\(\Rightarrow 4+4\cos x=1-\cos x\)

\(\Rightarrow\cos x=-3/5\)

\(\Rightarrow x=\cos^{-1}(-3/5)\)

\(\Rightarrow f(x)\) is not differentiable at \(x=\pi-\cos^{-1}(3/5),\ \forall x\in(0,\pi)\).

xyπ/2π-cos⁻¹(3/5)12

Teacher's Note: A maximum of two smooth functions is non-differentiable where they cross; solve \(2\sin x=1-\cos x\).

Exam Note: Max of two curves has a corner at their crossing.

Question 3.46. Discuss the differentiability of \(f(x)=e^{-|x|}\).

Solution.

We have \(f(x)=\begin{cases}e^{-x},& x\geq0\\ e^{x},& x<0\end{cases}\)

Clearly from the graph, \(f(x)\) is non-differentiable at \(x=0\).

xy-3-2-11231

Teacher's Note: Split into \(e^{-x}\) and \(e^x\); the one-sided slopes at 0 are \(-1\) and \(1\).

Exam Note: Corner at origin: slopes differ.

Question 3.47. If \(f(x)=\max\{x^2+2ax+1,\ b\}\) has two points of non-differentiability, then prove that \(a^2>1-b\).

Solution.

\(f(x)=\max\{x^2+2ax+1,b\}\) has two points of non-differentiability if

\(y=x^2+2ax+1\) and \(y=b\) intersect at two points

or \(x^2+2ax+1=b\) has real and distinct roots

or \(x^2+2ax+1-b=0\) has real and distinct roots

\(\Rightarrow 4a^2-4(1-b)>0\ \Rightarrow\ a^2>1-b\)

Teacher's Note: Corners occur where the parabola meets the line \(y=b\); two corners need a positive discriminant.

Exam Note: Two crossings mean positive discriminant.

Question 3.48. Test the continuity and differentiability of the function \(f(x)=\left|\left(x+\dfrac12\right)[x]\right|\) by drawing the graph of the function when \(-2\leq x\leq2\), where \([\,.\,]\) represents greatest integer function.

Solution.

Here, \(f(x)=\left|\left(x+\dfrac12\right)[x]\right|,\ -2\leq x\leq2\)

\(\Rightarrow f(x)=\begin{cases}\left|\left(x+\dfrac12\right)(-2)\right|,& -2\leq x<-1\\ \left|\left(x+\dfrac12\right)(-1)\right|,& -1\leq x<0\\ \left|\left(x+\dfrac12\right)(0)\right|,& 0\leq x<1\\ \left|\left(x+\dfrac12\right)(1)\right|,& 1\leq x<2\\ \left|\dfrac52\times2\right|,& x=2\end{cases}\)

\(\Rightarrow f(x)=\begin{cases}-(2x+1),& -2\leq x<-1\\ -\left(x+\dfrac12\right),& -1\leq x<-1/2\\ (x+1/2),& -\dfrac12\leq x<0\\ 0,& 0\leq x<1\\ x+\dfrac12,& 1\leq x<2\\ 5,& x=2\end{cases}\)

which could be plotted as in the figure below.

The graph clearly shows that \(f(x)\) is not continuous at \(x=\{-1,0,1,2\}\) as at these points the graph is broken. \(f(x)\) is not differentiable at \(x=\left\{-1,\dfrac{-1}{2},0,1,2\right\}\) as at \(x=\{-1,0,1,2\}\) the graph is broken and at \(x=-1/2\) there is a sharp edge.

xy-2-11212345

Teacher's Note: Write \([x]\) interval-wise, remove the modulus piecewise, plot; breaks give discontinuity, corners give non-differentiability.

Exam Note: Breaks and corners both kill differentiability.

Question 3.49. If \(f(x)=\begin{cases}x,& x\leq1\\ x^2+bx+c,& x>1\end{cases}\), then find the values of \(b\) and \(c\) if \(f(x)\) is differentiable at \(x=1\).

Solution.

\(f(x)=\begin{cases}x,& x\leq1\\ x^2+bx+c,& x>1\end{cases}\Rightarrow f'(x)=\begin{cases}1,& x<1\\ 2x+b,& x>1\end{cases}\)

\(f(x)\) is differentiable at \(x=1\)

Then, it must be continuous at \(x=1\)

for which \(\lim_{x\to1^+}f(x)=\lim_{x\to1^-}f(x)\)

\(\Rightarrow 1+b+c=1\)

\(\Rightarrow b+c=0\) (1)

Also \(f'(1^+)=f'(1^-)\)

\(\Rightarrow\lim_{x\to1^+}f'(x)=\lim_{x\to1^-}f'(x)\)

\(\Rightarrow 2+b=1\Rightarrow b=-1\)

\(\Rightarrow c=1\) [from equation (1)]

Teacher's Note: Differentiable means continuous and equal one-sided derivatives: \(1+b+c=1\) and \(2+b=1\).

Exam Note: Match function values and slopes at the joint.

Question 3.50. Find the values of \(a\) and \(b\) if \(f(x)=\begin{cases}a+\sin^{-1}(x+b),& x\geq1\\ x,& x<1\end{cases}\) is differentiable at \(x=1\).

Solution.

\(f(x)=\begin{cases}a+\sin^{-1}(x+b),& x\geq1\\ x,& x<1\end{cases}\Rightarrow f'(x)=\begin{cases}\dfrac{1}{\sqrt{1-(x+b)^2}},& x>1\\ 1,& x<1\end{cases}\)

For \(f(x)\) to be continuous at \(x=1\),

\(f(1^+)=f(1^-)\Rightarrow a+\sin^{-1}(1+b)=1\) (1)

Also \(f'(1^+)=f'(1^-)\Rightarrow\dfrac{1}{\sqrt{1-(1+b)^2}}=1\Rightarrow b=-1\).

\(\Rightarrow\) From equation (1), \(a=1\)

Teacher's Note: Impose continuity \(a+\sin^{-1}(1+b)=1\) and equal derivatives \(1/\sqrt{1-(1+b)^2}=1\).

Exam Note: Continuity and derivative equality give two equations.

Question 3.51. The function \(f(x)=\begin{cases}ax(x-1)+b,& x<1\\ x-1,& 1\leq x\leq3\\ px^2+qx+2,& x>3\end{cases}\)

Find the values of the constants \(a,b,p\) and \(q\) so that all the following conditions are satisfied.

(a) \(f(x)\) is continuous for all \(x\).

(b) \(f'(1)\) does not exist.

(c) \(f'(x)\) is continuous at \(x=3\).

Solution.

\(f(x)\) is continuous \(\forall x\in R\). Hence, it must be continuous at \(x=1,3\).

\(f(1^-)=\lim_{x\to1}ax(x-1)+b=b\)

\(f(1^+)=\lim_{x\to1}(x-1)=0\)

Now \(f(1^-)=f(1^+)\) (for continuity at \(x=1\))

\(\Rightarrow b=0\)

\(f(3^-)=\lim_{x\to3}(x-1)=2\)

\(f(3^+)=\lim_{x\to3}(px^2+qx+2)=9p+3q+2\)

Now \(f(3^-)=f(3^+)\) (for continuity at \(x=3\))

\(\Rightarrow 9p+3q=0\) (1)

\(f'(x)=\begin{cases}2ax-a,& x<1\\ 1,& 1<x<3\\ 2px+q,& x>3\end{cases}\)

Now given that \(f'(1)\) does not exist

\(\Rightarrow f'(1^+)\neq f'(1^-)\)

\(\Rightarrow 1\neq2a-a\)

\(\Rightarrow a\neq1\).

Also given that \(f'(3)\) exists.

\(\Rightarrow f'(3^-)=f'(3^+)\)

\(\Rightarrow 1=6p+q\) (2)

Solving equations (1) and (2) for \(p\) and \(q\), we get \(p=1/3,\ q=-1\).

Teacher's Note: Use continuity at 1 and 3 for \(b\) and \(9p+3q=0\), \(f'(1^+)\neq f'(1^-)\) for \(a\), and \(f'(3^-)=f'(3^+)\).

Exam Note: Continuity, derivative mismatch at 1, derivative match at 3.

Question 3.52. Discuss the differentiability of \(f(x)=\sin^{-1}\dfrac{2x}{1+x^2}\).

Solution.

\(f(x)=\sin^{-1}\left(\dfrac{2x}{1+x^2}\right)=\begin{cases}2\tan^{-1}x,& -1\leq x\leq1\\ \pi-2\tan^{-1}x,& \text{if } x>1\\ -\pi-2\tan^{-1}x,& \text{if } x<-1\end{cases}\)

\(\Rightarrow f'(x)=\begin{cases}\dfrac{2}{1+x^2},& -1<x<1\\[2mm] -\dfrac{2}{1+x^2},& \text{if } x>1\\[2mm] -\dfrac{2}{1+x^2},& \text{if } x<-1\end{cases}\) (1)

\(\Rightarrow f'(-1^-)=-1,\ f'(-1^+)=1\) and \(f'(1^-)=1\) and \(f'(1^+)=-1\).

Hence, \(f(x)\) is non-differentiable at \(x=\pm1\).

Graph of \(f(x)=\sin^{-1}\left(\dfrac{2x}{1+x^2}\right)\) is shown below.

Students find it difficult to remember all the cases of \(\sin^{-1}\left(\dfrac{2x}{1+x^2}\right)\) in equation (1). Then, use the following short-cut method to check the differentiability.

Differentiate \(f(x)\) w.r.t. \(x\), we get

\(\dfrac{df(x)}{dx}=\dfrac{d\left(\dfrac{2x}{1+x^2}\right)}{dx}\Big/\sqrt{1-\left(\dfrac{2x}{1+x^2}\right)^2}\)

\(=\dfrac{\dfrac{2(1+x^2)-2x(2x)}{(1+x^2)^2}}{\dfrac{\sqrt{(1+x^2)^2-4x^2}}{1+x^2}}\)

\(=\dfrac{2(1-x^2)}{(1+x^2)|1-x^2|}\)

Clearly, \(\dfrac{df(x)}{dx}\) is discontinuous at \(x^2=1\) or \(x=\pm1\).

Hence, \(f(x)\) is non-differentiable at \(x=\pm1\).

xy-4-3-2-11234π/2-π/2

Teacher's Note: Write \(\sin^{-1}\frac{2x}{1+x^2}\) as \(\pm\pi\) or \(2\tan^{-1}x\) by range; or differentiate and check where \(|1-x^2|\) vanishes.

Exam Note: Derivative has \(|1-x^2|\) in the denominator.

Download Cengage G Tewani Solutions for Class 12 Math PDF

Download Cengage G Tewani Solutions for Class 12

Access the complete chapter-wise PDF for Cengage G Tewani Solutions Calculus Chapter 3 Continuity Differentiability Solved Examples. These structured Cengage G Tewani Solutions solutions for Class 12 Mathematics help students build foundational accuracy and prepare effectively for upcoming school evaluations.

Mastering Core Concepts with Cengage G Tewani Solutions

Clear, methodical explanations accompany every challenging problem within the text. Engaging with these detailed mathematical breakdowns lays a solid foundation for advanced learning and improves execution speed for upcoming exams.

Explore More Study Resources for Class 12 Math

Maximize your academic readiness by pairing these solutions with our official sample papers and interactive practice tests. All supplementary study materials for the 2026 session are available across our platform free of charge.

FAQs

What are these [current-page:node:field_author] Solutions for Class 12 Mathematics?

They are chapter-wise solved questions from the book for Class 12 Mathematics. Each answer is explained step by step so you can check your work and revise.

Are the [current-page:node:field_author] Class 12 Mathematics Solutions free to read?

Yes. All chapters can be read online for free on a phone, tablet or computer, and no sign-up is needed.

How should I use these [current-page:node:field_author] solutions for Class 12 Mathematics?

Try each question on your own first, then read the solution. Use it to check your steps, correct mistakes and learn how a full answer is written.

Will practising [current-page:node:field_author] Class 12 Mathematics questions help in exams?

Regular practice improves accuracy and speed and shows which topics need more revision. It works best alongside your textbook and class notes.

Are these solutions arranged chapter by chapter?

Yes. The chapter list on this page links to every chapter’s solved questions, so you can open the topic you are studying.

Which session are these Class 12 Mathematics Solutions for?

They are listed for the 2026-27 session. Check that the questions match the textbook edition you use.