SOLVER7 Study. Nothing Else.
Exercise 5.1 Q32

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

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

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.

📖 Continuity of f(x) = |cos x|

Detailed Explanation

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.

Formula Used

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 \).

Solution

  1. Step 1: Express the given function as a composition. Let \( h(x) = \cos x \) and \( g(t) = |t| \). Then \( g(h(x)) = |\cos x| = f(x) \). So \( f = g \circ h \).
  2. Step 2: Show that \( h(x) = \cos x \) is continuous. The cosine function is a standard trigonometric function, and it is known to be continuous for every real number \( x \). Hence \( h \) is continuous everywhere.
  3. Step 3: Show that \( g(t) = |t| \) is continuous. Write it as a piecewise function \[ g(t) = \begin{cases} t & t \ge 0 \\ -t & t < 0 \end{cases} \] For \( t > 0 \) and \( t < 0 \) it is a straight line, so it is continuous there. At \( t = 0 \) we check the limits: \[ \lim_{t \to 0^-} g(t) = \lim_{t \to 0^-} (-t) = 0 \] and \[ \lim_{t \to 0^+} g(t) = \lim_{t \to 0^+} t = 0 \] Since both one-sided limits equal \( g(0) = 0 \), the modulus function is continuous at \( 0 \) as well. Thus \( g \) is continuous everywhere.
  4. Step 4: Apply the composition rule. Since \( h(x) = \cos x \) is continuous for all real \( x \), and \( g(t) = |t| \) is continuous for all real \( t \), their composite \( (g \circ h)(x) = g(h(x)) \) is continuous for all real \( x \).
  5. Step 5: Conclude the result. Because \( f(x) = |\cos x| = (g \circ h)(x) \), the function \( f \) is continuous at every real number.

Final 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.

Common Mistake

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.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite \( f(x) = |\cos x| \) as a composition of two simpler functions. Define \( h(x) = \cos x \) and \( g(t) = |t| \), so that \( g(h(x)) = |\cos x| = f(x) \), meaning \( f = g \circ h \). — Reason: Breaking a complicated function into a composition makes it easier to check continuity using the standard theorem.
  2. Step 2: Verify that the inner function \( h(x) = \cos x \) is continuous. The cosine is a standard trigonometric function that is well-defined and continuous for every \( x \in \mathbb{R} \). — Reason: We need each individual piece of the composition to be continuous before we can apply the composition theorem.
  3. Step 3: Verify that the outer function \( g(t) = |t| \) is continuous. Write it in piecewise form: \[g(t) = \begin{cases} t & t \ge 0 \\ -t & t < 0 \end{cases}\] For \( t > 0 \) and \( t < 0 \), \( g \) is a linear (polynomial) function, so it is continuous on those open intervals. — Reason: Polynomial pieces are always continuous, so we only need to separately check the boundary point \( t = 0 \).
  4. Step 4: Check continuity of \( g(t) = |t| \) at the critical point \( t = 0 \) using one-sided limits. The left-hand limit is \[\lim_{t \to 0^{-}} g(t) = \lim_{t \to 0^{-}} (-t) = 0\] and the right-hand limit is \[\lim_{t \to 0^{+}} g(t) = \lim_{t \to 0^{+}} t = 0\] Since both one-sided limits equal \( g(0) = |0| = 0 \), the modulus function \( g(t) = |t| \) is continuous at \( t = 0 \) and hence everywhere on \( \mathbb{R} \). — Reason: Continuity at a point requires the left-hand limit, right-hand limit, and the function value to all be equal.
  5. Step 5: Apply the composition theorem. Since \( h(x) = \cos x \) is continuous on \( \mathbb{R} \) and \( g(t) = |t| \) is continuous on \( \mathbb{R} \), the composite function \( f(x) = g(h(x)) = |\cos x| \) is continuous on all of \( \mathbb{R} \). — Reason: The theorem states that the composition of two continuous functions is continuous, so no further limit calculations are needed.

Final 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.

Common Mistake

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.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Write \( f(x) = |\cos x| = g(h(x)) \) where \( h(x) = \cos x \) and \( g(t) = |t| \), so \( f = g \circ h \).
  2. Step 2: \( h(x) = \cos x \) is continuous for all \( x \in \mathbb{R} \); \( g(t) = |t| \) is continuous for all \( t \in \mathbb{R} \).
  3. Step 3: By the composition theorem, \( f = g \circ h \) is continuous for all \( x \in \mathbb{R} \).

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.

➕ More Examples

More Examples

Example 1

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} \).

Example 2

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.

🎯 Try a Similar Question

Try a Similar Question

Question: Show that the function \( f(x) = |\sin x| \) is a continuous function.

Solution

  1. Step 1: Write f(x) as a composition: We can express \( f(x) = |\sin x| \) as a composition of two functions. Define \( g(x) = \sin x \) and \( h(t) = |t| \). Then \( f(x) = h(g(x)) = |\sin x| \), i.e. \( f = h \circ g \).
  2. Step 2: Establish continuity of g(x) = sin x: The sine function \( g(x) = \sin x \) is a standard trigonometric function. It is well known to be continuous for all \( x \in \mathbb{R} \).
  3. Step 3: Establish continuity of h(t) = |t|: The modulus function \( h(t) = |t| \) is defined as \[ h(t) = \begin{cases} t & t \ge 0 \\ -t & t < 0 \end{cases} \] This function is continuous for all \( t \in \mathbb{R} \). In particular, at \( t = 0 \): the left-hand limit is \( \lim_{t \to 0^{-}} (-t) = 0 \), the right-hand limit is \( \lim_{t \to 0^{+}} t = 0 \), and \( h(0) = 0 \). Since all three are equal, \( h \) is continuous at 0, and clearly continuous everywhere else.
  4. Step 4: Apply the theorem on composition of continuous functions: Since \( g(x) = \sin x \) is continuous on \( \mathbb{R} \) and \( h(t) = |t| \) is continuous on \( \mathbb{R} \), their composition \( f(x) = h(g(x)) = |\sin x| \) is continuous on \( \mathbb{R} \).
  5. Step 5: State the conclusion: Therefore, \( f(x) = |\sin x| \) is a continuous function for all \( x \in \mathbb{R} \).

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.

Everything you get with Solver7

More questions in Continuity and Differentiability

Chapter 5 Examples Q1 Chapter 5 Examples Q2 Chapter 5 Examples Q3 65/1/1 2024 / Section A Q3 Chapter 5 Examples Q4 65/2/1 2024 / Section A Q4 65/3/1 2024 / Section A Q4 Chapter 5 Examples Q5 65/4/1 2026 / Section A Q5 Chapter 5 Examples Q6 65(B) 2026 / Section A Q6 65/4/1 2023 / Section A Q6 65/4/2 2024 / Section A Q6 65/5/1 2026 / Section A Q6 Chapter 5 Examples Q7 65/3/1 2026 / Section A Q7 65/4/1 2023 / Section A Q7 65/4/1 2026 / Section A Q7 65/4/2 2024 / Section A Q7 Chapter 5 Examples Q8 65/4/1 2026 / Section A Q8 65/5/1 2026 / Section A Q8 Chapter 5 Examples Q9 Chapter 5 Examples Q10 Chapter 5 Examples Q11 65/2/2 2023 / Section A Q11 65/2/3 2026 / Section A Q11 Chapter 5 Examples Q12 65/2/2 2023 / Section A Q12 Chapter 5 Examples Q13 65/1/1 2023 / Section A Q13 65/1/1 2024 / Section A Q13 65/2/1 2024 / Section A Q13 Chapter 5 Examples Q14 65/3/1 2024 / Section A Q14 Chapter 5 Examples Q15 65/3/1 2023 / Section A Q15 Chapter 5 Examples Q16 65/3/1 2023 / Section A Q16 Chapter 5 Examples Q17 Chapter 5 Examples Q18 Chapter 5 Examples Q19 Chapter 5 Examples Q20 Chapter 5 Examples Q21 65/1/1 2024 / Section B Q21(a) 65/1/1 2026 / Section B Q21(a) 65/3/1 2026 / Section B Q21 Chapter 5 Examples Q22 65/1/1 2024 / Section B Q21(b) 65/1/1 2026 / Section B Q21(b) 65/3/1 2024 / Section B Q22(a) 65/4/1 2026 / Section B Q22(a) 65/5/1 2026 / Section B Q22(a) Chapter 5 Examples Q23 65/2/1 2024 / Section B Q22(a) 65/3/1 2024 / Section B Q22(b) 65/4/1 2023 / Section B Q22 65/4/1 2026 / Section B Q22(b) 65/5/1 2026 / Section B Q22(b) Chapter 5 Examples Q24