Show that the function defined by \(f(x) = |cos x|\) is a continuous function.
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine wrapping a gift inside another gift box. The cosine function is one smooth, unbroken ribbon. The modulus function is like a mirror that flips any negative value to positive — it never tears or breaks. When you wrap the ribbon inside the mirror box, the result is still smooth with no breaks. That is exactly what happens with \( f(x) = |\cos x| \). Two smooth, unbroken things combined always stay smooth and unbroken — so this function is continuous everywhere.
Answer: Since \( f(x) = |\cos x| \) is the composition of the continuous cosine function and the continuous modulus function, \( f \) is continuous for all real \( x \). Hence \( f(x) = |\cos x| \) is a continuous function.
A function is continuous at a point if there is no break, jump, or hole in its graph there. A key result from the CBSE syllabus is that the composition of two continuous functions is continuous. We know two standard facts: first, the cosine function \( \cos x \) is continuous for every real number; second, the modulus function \( g(t) = |t| \) is continuous for every real number. Since \( f(x) = |\cos x| \) can be written as a composition of these two continuous functions, it must itself be continuous everywhere.
If \( g \) is continuous and \( h \) is continuous, then the composite \( (g \circ h)(x) = g(h(x)) \) is continuous. Here \( g(t) = |t| \) and \( h(x) = \cos x \).
Since \( f(x) = |\cos x| \) is the composition of the continuous cosine function and the continuous modulus function, \( f \) is continuous for all real \( x \). Hence \( f(x) = |\cos x| \) is a continuous function.
A common mistake is to claim that \( |\cos x| \) is discontinuous at points where \( \cos x = 0 \) (like \( x = \frac{\pi}{2} \)). At these points the graph has a sharp corner, so the function is not differentiable there, but it is still continuous. Do not confuse non-differentiability with discontinuity.
Since \( f(x) = |\cos x| \) is the composition of the continuous cosine function and the continuous modulus function, \( f \) is continuous for all real \( x \). Hence \( f(x) = |\cos x| \) is a continuous function.
One common mistake: Students sometimes try to verify continuity of \( f(x) = |\cos x| \) by checking limits at every point individually, which is unnecessarily lengthy. The correct and efficient approach is to recognise it as a composition of two already-known continuous functions and directly apply the composition theorem.
Answer: Since \( f(x) = |\cos x| \) is the composition of the continuous cosine function and the continuous modulus function, \( f \) is continuous for all real \( x \). Hence \( f(x) = |\cos x| \) is a continuous function.
Question: Show that the function defined by \( f(x) = |\sin x| \) is a continuous function.
Solution: We write \( f(x) = |\sin x| \) as a composition of two functions. Let \( h : \mathbb{R} \to \mathbb{R} \) be defined by \( h(x) = \sin x \), and let \( g : \mathbb{R} \to \mathbb{R} \) be defined by \( g(x) = |x| \). Then the composition \( g \circ h \) is: \[ (g \circ h)(x) = g(h(x)) = g(\sin x) = |\sin x| = f(x) \] Now we check the continuity of each function separately. First, consider \( h(x) = \sin x \). It is a standard trigonometric function and is known to be continuous at every real number, so \( h \) is continuous on \( \mathbb{R} \). Next, consider \( g(x) = |x| \). We verify continuity at an arbitrary point \( c \in \mathbb{R} \). We have: \[ \lim_{x \to c} g(x) = \lim_{x \to c} |x| = |c| = g(c) \] This holds for every real number \( c \), so \( g \) is continuous on \( \mathbb{R} \). Since both \( g \) and \( h \) are continuous on \( \mathbb{R} \), by the theorem on continuity of composite functions, \( f = g \circ h \) is also continuous on \( \mathbb{R} \). Hence, \( f(x) = |\sin x| \) is a continuous function.
Answer: \( f(x) = |\sin x| \) is continuous on \( \mathbb{R} \) because it is the composition \( g \circ h \), where \( g(x) = |x| \) and \( h(x) = \sin x \), both of which are continuous on \( \mathbb{R} \).
Question: Show that the function defined by \( f(x) = |\log|x|| \) is continuous for all \( x \ne 0 \).
Solution: We write \( f(x) = |\log|x|| \) as a composition of functions, working step by step. Define three functions as follows: \[ u(x) = |x|, \quad v(x) = \log x \text{ (for } x > 0 \text{)}, \quad g(x) = |x| \] Then we form the composition: \[ f(x) = g(v(u(x))) = |\log|x|| \] We check the continuity of each component. Step 1: \( u(x) = |x| \) is continuous on \( \mathbb{R} \). For any \( x \ne 0 \), we have \( u(x) = |x| > 0 \), so \( v(u(x)) = \log|x| \) is well-defined. Step 2: \( v(x) = \log x \) is a standard logarithmic function and is continuous for all \( x > 0 \). Since \( u(x) = |x| > 0 \) for \( x \ne 0 \), the composition \( v \circ u \) given by \( (v \circ u)(x) = \log|x| \) is continuous for all \( x \ne 0 \). Step 3: \( g(x) = |x| \) is continuous on \( \mathbb{R} \). We verify: for any \( c \in \mathbb{R} \), \[ \lim_{x \to c} |x| = |c| = g(c) \] so \( g \) is continuous everywhere. Step 4: Since \( \log|x| \) is continuous for \( x \ne 0 \), and \( g(x) = |x| \) is continuous everywhere, the composition \( f(x) = g(\log|x|) = |\log|x|| \) is continuous for all \( x \ne 0 \). Hence, \( f(x) = |\log|x|| \) is a continuous function for all \( x \ne 0 \).
Answer: \( f(x) = |\log|x|| \) is continuous for all \( x \ne 0 \) because it is the composition of continuous functions \( g(x) = |x| \), \( v(x) = \log x \) (for \( x > 0 \)), and \( u(x) = |x| \), each continuous on their respective domains.
Question: Show that the function \( f(x) = |\sin x| \) is a continuous function.
Answer: Since \( f(x) = |\sin x| \) is the composition of the continuous sine function \( g(x) = \sin x \) and the continuous modulus function \( h(t) = |t| \), their composition \( f = h \circ g \) is continuous for all \( x \in \mathbb{R} \). Hence \( f(x) = |\sin x| \) is a continuous function.