Which of the following statements are correct?
(A) If \(f: R \rightarrow R\) then \(f(x)=|x|\) is continuous everywhere.
(B) If \(f: R \rightarrow R\) then \(f(x)=|x|\) is continuous everywhere but not differentiable at \(x=0\).
(C) Let \(f: R-\{0\} \rightarrow R\) then \(f(x)=\displaystyle\frac{1}{x}\) is continuous everywhere.
(D) Let \(f: R \rightarrow R\) then \(f(x)=|x-1|+|x-2|\) is continuous everywhere but not differentiable at exactly 2 points.
(E) If \(f: R \rightarrow R\) then \(f(x)=\cot x\) is continuous everywhere.
Choose the correct answer from the options given below:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → (A), (B), (C), (D) only
Writing |x| without the modulus:
\( |x| = \begin{cases} x, & x \ge 0 \\ -x, & x \lt 0 \end{cases} \)
Both pieces are continuous and both give 0 at x = 0, so |x| is continuous everywhere. At x = 0 the left derivative is −1 and the right derivative is 1, so |x| is not differentiable there.
For |x − 1| + |x − 2| the slopes are:
\(x \lt 1:\ \text{slope } -2\)
\(1 \lt x \lt 2:\ \text{slope } 0\)
\(x \gt 2:\ \text{slope } 2\)
A function is continuous everywhere only if it is defined at every point. \(\cot x = \frac{\cos x}{\sin x}\) is not defined where \(\sin x = 0\), that is, at \(x = n\pi\).
So |x| is continuous everywhere with a corner at 0 only, 1/x is continuous at every point of its domain, |x − 1| + |x − 2| is continuous with corners at x = 1 and x = 2 only, and cot x is not defined at x = nπ.
Checking the statements
(A) If \(f: R \rightarrow R\) then \(f(x)=|x|\) is continuous everywhere. — Correct. Both pieces x and −x meet at 0 with value 0.
(B) If \(f: R \rightarrow R\) then \(f(x)=|x|\) is continuous everywhere but not differentiable at \(x=0\). — Correct. The slopes on the two sides of 0 are −1 and 1.
(C) Let \(f: R-\{0\} \rightarrow R\) then \(f(x)=\frac{1}{x}\) is continuous everywhere. — Correct. 0 is not in the domain, and 1/x is continuous at every other point.
(D) Let \(f: R \rightarrow R\) then \(f(x)=|x-1|+|x-2|\) is continuous everywhere but not differentiable at exactly 2 points. — Correct. The slope jumps from −2 to 0 at x = 1 and from 0 to 2 at x = 2.
(E) If \(f: R \rightarrow R\) then \(f(x)=\cot x\) is continuous everywhere. — Incorrect. cot x is not defined at x = 0, ±π, ±2π, …