Show that the function defined by $f(x)=|\cos x|$ is a continuous function.

Vedclass pdf generator app on play store
Vedclass iOS app on app store
(N/A) The given function is $f(x)=|\cos x|$.
This function $f$ is defined for every real number and can be written as the composition of two functions $f=g \circ h$,where $g(x)=|x|$ and $h(x)=\cos x$.
$[\because (g \circ h)(x) = g(h(x)) = g(\cos x) = |\cos x| = f(x)]$
First,we prove that $g(x)=|x|$ and $h(x)=\cos x$ are continuous functions.
$g(x)=|x|$ can be written as:
$g(x) = \begin{cases} -x, & \text{if } x < 0 \\ x, & \text{if } x \ge 0 \end{cases}$
Clearly,$g$ is defined for all real numbers. Let $c$ be a real number.
Case $I$: If $c < 0$,then $g(c)=-c$ and $\lim_{x \to c} g(x) = \lim_{x \to c} (-x) = -c = g(c)$. Thus,$g$ is continuous for $x < 0$.
Case $II$: If $c > 0$,then $g(c)=c$ and $\lim_{x \to c} g(x) = \lim_{x \to c} x = c = g(c)$. Thus,$g$ is continuous for $x > 0$.
Case $III$: If $c=0$,then $g(0)=0$. $\lim_{x \to 0^-} g(x) = \lim_{x \to 0^-} (-x) = 0$ and $\lim_{x \to 0^+} g(x) = \lim_{x \to 0^+} (x) = 0$. Since $\lim_{x \to 0^-} g(x) = \lim_{x \to 0^+} g(x) = g(0)$,$g$ is continuous at $x=0$.
Thus,$g(x)=|x|$ is continuous everywhere.
Now,$h(x)=\cos x$ is defined for every real number. Let $c$ be a real number. Put $x=c+h$. As $x \to c$,$h \to 0$.
$\lim_{x \to c} h(x) = \lim_{h \to 0} \cos(c+h) = \lim_{h \to 0} (\cos c \cos h - \sin c \sin h) = \cos c(1) - \sin c(0) = \cos c = h(c)$.
Thus,$h(x)=\cos x$ is continuous everywhere.
Since the composition of two continuous functions is continuous,$f(x) = (g \circ h)(x) = |\cos x|$ is a continuous function.

Explore More

Similar Questions

$f(x) = \begin{cases} \frac{x-4}{|x-4|} + a, & x < 4 \\ a+b, & x=4 \\ \frac{x-4}{|x-4|} + b, & x > 4 \end{cases}$
If $f(x)$ given above is continuous at $x=4$,then find the values of '$a$' and '$b$'.

For the function $f(x) = \frac{\log_e(1 + x) - \log_e(1 - x)}{x}$ to be continuous at $x = 0$,the value of $f(0)$ should be

Let $f: R \rightarrow R$ be such that $f(2x-1) = f(x)$ for all $x \in R$. If $f$ is continuous at $x = 1$ and $f(1) = 1$, then:

Let $f: R \rightarrow R$ be a function defined as $f(x)=\begin{cases} \frac{\sin (a+1) x+\sin 2 x}{2 x} & , \text{if } x<0 \\ b & , \text{if } x=0 \\ \frac{\sqrt{x+b x^{3}}-\sqrt{x}}{b x^{5 / 2}} & , \text{if } x>0 \end{cases}$. If $f$ is continuous at $x=0$,then the value of $a+b$ is equal to ....... .

The function defined by $f(x) = \begin{cases} \frac{x-4}{|x-4|} + a, & x < 4 \\ a + b, & x = 4 \\ \frac{x-4}{|x-4|} + b, & x > 4 \end{cases}$ is continuous at $x = 4$,then:

Vedclass Products

For Students

Vedclass Test Series

Mock tests in real JEE/NEET style with performance analysis. 5-day free trial.

Start Free Trial
For Teachers

Exam Paper Generator

Generate Set A/B/C/D exam papers from 7.5L+ questions in 2 minutes. 3 chapters free.

Try Free
For Institutes

Online Exam Module

Live online exams with unlimited students, 360° analytics & white-label branding.

See Demo