SOLVER7 Study. Nothing Else.
Exercise 5.1 Q25

Examine the continuity of \(f,\) where \(f\) is defined by \(f(x)=\begin{cases} sin\ x - cos\ x,&\text{if x\)\ne\(0}\\ -1,&\text{if x= 0}\end{cases}\)

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine a path that you walk along smoothly without any jumps or gaps. This function is like that path. For every point except zero, it follows the rule using sine and cosine, which are always smooth. At zero, the function is given a special value of -1. Luckily, if you walk closer and closer to zero along the sine-cosine path, you naturally arrive at -1 too. Because the special value matches where the path leads, there is no jump or gap anywhere at all.

Answer: The function \( f \) is continuous everywhere, that is, for all real numbers \( x \). In particular, at \( x = 0 \) we have \( \lim_{x \to 0} f(x) = -1 = f(0) \), so there is no discontinuity.

📖 Continuity of a Piecewise Trigonometric Function

Detailed Explanation

A function \( f \) is continuous at a point \( x = a \) if three conditions hold: \( f(a) \) exists, \( \lim_{x \to a} f(x) \) exists, and \( \lim_{x \to a} f(x) = f(a) \). For a piecewise function, the two pieces might match everywhere except possibly at the point where the definition changes (here \( x = 0 \)). So we handle two cases: points where \( x \ne 0 \), where the function equals \( \sin x - \cos x \), and the special point \( x = 0 \), which is defined separately as \( -1 \). Since sine and cosine are continuous everywhere, their difference is also continuous. The only place needing a careful check is \( x = 0 \).

Formula Used

\( f \) is continuous at \( x = a \) if \( \lim_{x \to a} f(x) = f(a) \). Also \( \sin 0 = 0 \) and \( \cos 0 = 1 \).

Solution

  1. Step 1: Write down the function clearly: \[ f(x) = \begin{cases} \sin x - \cos x & x \ne 0 \\ -1 & x = 0 \end{cases} \] We must examine continuity at every real number \( x \).
  2. Step 2: Check continuity for \( x \ne 0 \). Here \( f(x) = \sin x - \cos x \). Both \( \sin x \) and \( \cos x \) are continuous for all real \( x \), and the difference of two continuous functions is continuous. So \( f \) is continuous at every point where \( x \ne 0 \).
  3. Step 3: Now check the special point \( x = 0 \). First find the value of the function there. By definition, \[ f(0) = -1 \].
  4. Step 4: Next find the limit as \( x \to 0 \). For \( x \ne 0 \), \( f(x) = \sin x - \cos x \), so \[ \lim_{x \to 0} f(x) = \lim_{x \to 0} (\sin x - \cos x). \] Since sine and cosine are continuous, we substitute \( x = 0 \): \[ \lim_{x \to 0} (\sin x - \cos x) = \sin 0 - \cos 0 = 0 - 1 = -1. \]
  5. Step 5: Compare the limit with the function value at \( x = 0 \). We found \[ \lim_{x \to 0} f(x) = -1 \] and \[ f(0) = -1. \] Since they are equal, \( f \) is continuous at \( x = 0 \) as well.
  6. Step 6: Combine both cases: \( f \) is continuous for all \( x \ne 0 \) (Step 2) and continuous at \( x = 0 \) (Step 5). Therefore \( f \) is continuous on all of \( \mathbb{R} \).

Final Answer

The function \( f \) is continuous everywhere, that is, for all real numbers \( x \). In particular, at \( x = 0 \) we have \( \lim_{x \to 0} f(x) = -1 = f(0) \), so there is no discontinuity.

Common Mistake

A common mistake is assuming the function is discontinuous at \( x = 0 \) just because it is defined by a separate line there. Students must actually compute \( \lim_{x \to 0}(\sin x - \cos x) = -1 \) and check it equals \( f(0) = -1 \); here they match, so it is continuous.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write the function explicitly: \[f(x) = \\begin{cases} \\sin x - \\cos x & x \\ne 0 \\\\ -1 & x = 0 \\end{cases}\] — Reason: Seeing both pieces clearly tells us exactly where to focus our check; the only suspicious point is \( x = 0 \), where the definition switches.
  2. Step 2: For every point where \( x \ne 0 \), the function equals \( \sin x - \cos x \). Both \( \sin x \) and \( \cos x \) are known to be continuous for all real \( x \), and the difference of two continuous functions is also continuous. Therefore \( f \) is continuous at every \( x \ne 0 \). — Reason: Standard results from the algebra of continuous functions let us handle the entire non-zero domain in one sweep.
  3. Step 3: Find the value of the function at the boundary point. By the definition of \( f \): \[f(0) = -1\] — Reason: For continuity we need \( f(0) \) to exist and be a definite number; the piecewise definition gives it directly.
  4. Step 4: Compute the limit of \( f \) as \( x \to 0 \). When \( x \ne 0 \) we use the first piece, so: \[\lim_{x \to 0} f(x) = \lim_{x \to 0} (\sin x - \cos x) = \sin 0 - \cos 0 = 0 - 1 = -1\] — Reason: The limit is controlled by the formula valid near (but not at) \( x = 0 \), and substituting directly works because \( \sin x \) and \( \cos x \) are continuous.
  5. Step 5: Compare the limit with the function value: \[\lim_{x \to 0} f(x) = -1 = f(0)\] Since the limit equals the function value, the continuity condition is satisfied at \( x = 0 \). — Reason: This is precisely the definition of continuity at a point; all three required conditions (existence of \( f(0) \), existence of the limit, and their equality) are met.
  6. Step 6: Combine both cases: \( f \) is continuous for all \( x \ne 0 \) (Step 2) and also continuous at \( x = 0 \) (Steps 3–5). Therefore \( f \) is continuous for every real number \( x \). — Reason: Checking the two natural regions (the pieces and the junction) and finding no break in either region confirms global continuity.

Final Answer

The function \( f \) is continuous everywhere, that is, for all real numbers \( x \). In particular, at \( x = 0 \) we have \( \lim_{x \to 0} f(x) = -1 = f(0) \), so there is no discontinuity.

Common Mistake

One common mistake: students only check whether the limit exists but forget to verify that the limit actually equals the separately-defined value \( f(0) = -1 \); unless all three conditions (function defined, limit exists, limit equals function value) are confirmed together, continuity is not established.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Given: \[f(x) = \begin{cases} \sin x - \cos x & x \ne 0 \\ -1 & x = 0 \end{cases}\]
  2. Step 2: For \( x \ne 0 \): \( f(x) = \sin x - \cos x \) is continuous (difference of continuous functions).
  3. Step 3: At \( x = 0 \): \( f(0) = -1 \) and \( \lim_{x \to 0} f(x) = \sin 0 - \cos 0 = 0 - 1 = -1 \).
  4. Step 4: Since \( \lim_{x \to 0} f(x) = -1 = f(0) \), continuity holds at \( x = 0 \) as well.

Answer: The function \( f \) is continuous everywhere, that is, for all real numbers \( x \). In particular, at \( x = 0 \) we have \( \lim_{x \to 0} f(x) = -1 = f(0) \), so there is no discontinuity.

➕ More Examples

More Examples

Example 1

Question: Examine the continuity of \( f \) at \( x = 0 \), where \( f \) is defined by \[ f(x) = \begin{cases} \sin 2x + \cos x & \text{if } x \ne 0 \\ 1 & \text{if } x = 0 \end{cases} \]

Solution: We check continuity at \( x = 0 \) by computing the limit of \( f(x) \) as \( x \to 0 \) and comparing it with \( f(0) \). Step 1: Find \( f(0) \). From the definition, \( f(0) = 1 \). Step 2: Find \( \lim_{x \to 0} f(x) \). For \( x \ne 0 \), \( f(x) = \sin 2x + \cos x \). So, \[ \lim_{x \to 0} f(x) = \lim_{x \to 0} (\sin 2x + \cos x) \] Using standard limit results \( \lim_{x \to 0} \sin 2x = \sin(0) = 0 \) and \( \lim_{x \to 0} \cos x = \cos(0) = 1 \): \[ \lim_{x \to 0} f(x) = 0 + 1 = 1 \] Step 3: Compare. Since \( \lim_{x \to 0} f(x) = 1 = f(0) \), all three conditions for continuity are satisfied. Therefore, \( f \) is continuous at \( x = 0 \).

Answer: f is continuous at x = 0.

Example 2

Question: Examine the continuity of \( g \) at \( x = 0 \), where \( g \) is defined by \[ g(x) = \begin{cases} \cos x - \sin x & \text{if } x \ne 0 \\ 0 & \text{if } x = 0 \end{cases} \]

Solution: We check continuity at \( x = 0 \) by computing the limit of \( g(x) \) as \( x \to 0 \) and comparing it with \( g(0) \). Step 1: Find \( g(0) \). From the definition, \( g(0) = 0 \). Step 2: Find \( \lim_{x \to 0} g(x) \). For \( x \ne 0 \), \( g(x) = \cos x - \sin x \). So, \[ \lim_{x \to 0} g(x) = \lim_{x \to 0} (\cos x - \sin x) \] Using standard limit results \( \lim_{x \to 0} \cos x = \cos(0) = 1 \) and \( \lim_{x \to 0} \sin x = \sin(0) = 0 \): \[ \lim_{x \to 0} g(x) = 1 - 0 = 1 \] Step 3: Compare. We have \( \lim_{x \to 0} g(x) = 1 \) but \( g(0) = 0 \). Since \( \lim_{x \to 0} g(x) \ne g(0) \), the function \( g \) is NOT continuous at \( x = 0 \).

Answer: g is NOT continuous at x = 0.

🎯 Try a Similar Question

Try a Similar Question

Question: Examine the continuity of \( f \), where \( f \) is defined by \[f(x) = \begin{cases} \sin x + \cos x & \text{if } x \ne 0 \\ 0 & \text{if } x = 0 \end{cases}\] Determine whether \( f \) is continuous or discontinuous at \( x = 0 \), and state your conclusion.

Solution

  1. Step 1: Find the value of f at x = 0: From the definition of the piecewise function, \( f(0) = 0 \).
  2. Step 2: Compute the limit as x approaches 0: We need \( \lim_{x \to 0} f(x) \). For \( x \ne 0 \), the function equals \( \sin x + \cos x \), so \[ \lim_{x \to 0} f(x) = \lim_{x \to 0} (\sin x + \cos x). \]
  3. Step 3: Evaluate the limit using standard results: Using the standard limits \( \lim_{x \to 0} \sin x = 0 \) and \( \lim_{x \to 0} \cos x = 1 \), we get \[ \lim_{x \to 0} (\sin x + \cos x) = 0 + 1 = 1. \]
  4. Step 4: Compare the limit with f(0): We have \( \lim_{x \to 0} f(x) = 1 \) but \( f(0) = 0 \). Since \( 1 \ne 0 \), the condition for continuity is NOT satisfied at \( x = 0 \).
  5. Step 5: Check continuity for x ≠ 0: For all \( x \ne 0 \), the function is \( f(x) = \sin x + \cos x \), which is a sum of two continuous functions. Therefore \( f \) is continuous at every point except \( x = 0 \).
  6. Step 6: State the conclusion: Since \( \lim_{x \to 0} f(x) = 1 \ne 0 = f(0) \), the function \( f \) is discontinuous at \( x = 0 \). It is continuous everywhere else on \( \mathbb{R} \).

Answer: The function \( f \) is discontinuous at \( x = 0 \), because \( \lim_{x \to 0} f(x) = 1 \ne 0 = f(0) \). It is continuous at every other real number.

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