SOLVER7 Study. Nothing Else.
Chapter 5 Examples Q12

Discuss the continuity of the function defined by \(f(x) =\begin{cases}x+2,&\text{if x<0}\\ -x+2,&\text {if x>0}\end{cases}\)

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine a road that has a big hole at one spot — you simply cannot stand there. The function \( f \) is like that road: it works fine for all values except \( x = 0 \), which is missing from its map. Since \( x = 0 \) is not even a place the function visits, we never ask whether it is smooth there. Everywhere the function does exist — both to the left and to the right of zero — it draws a perfectly neat, unbroken line. So the function is smooth at every place it is allowed to be.

Answer: The function \( f \) is continuous at every point of its domain, that is, \( f \) is continuous for all \( x \ne 0 \). The point \( x = 0 \) is not in the domain, so continuity there is not considered.

📖 Continuity of a Piecewise Function

Detailed Explanation

A function \( f \) is continuous at a point \( x = a \) if three conditions hold: \( f(a) \) is defined, the limit \( \lim_{x \to a} f(x) \) exists (left-hand limit equals right-hand limit), and this limit equals \( f(a) \). The graph in Fig 5.6 shows two straight line pieces meeting near the point \( (0, 2) \), but notice the small open circle at \( (0, 2) \). This open circle indicates that the point \( x = 0 \) is NOT included in the domain of the function. Looking at the definition, \( f \) is defined only for \( x < 0 \) and \( x > 0 \); there is no rule given for \( x = 0 \). So the domain of \( f \) is all real numbers except \( 0 \). We must check continuity only at points where the function is defined.

Formula Used

\( f \) is continuous at \( x = a \) if \( \lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = f(a) \)

Solution

  1. Step 1: Identify the domain of the function. The definition gives a rule for \( x < 0 \) and for \( x > 0 \), but no rule at \( x = 0 \). The open circle at \( (0, 2) \) in the graph confirms that \( x = 0 \) is not part of the domain. So the domain is \( \{ x : x \ne 0 \} \), that is all real numbers except zero.
  2. Step 2: Check continuity for \( x < 0 \). Here \( f(x) = x + 2 \), which is a polynomial. Every polynomial function is continuous at every point of its domain. Hence \( f \) is continuous for all \( x < 0 \).
  3. Step 3: Check continuity for \( x > 0 \). Here \( f(x) = -x + 2 \), which is again a polynomial and therefore continuous everywhere. Hence \( f \) is continuous for all \( x > 0 \).
  4. Step 4: Consider the point \( x = 0 \). Since \( f \) is not defined at \( x = 0 \), the very first condition for continuity (that \( f(0) \) must exist) fails. Therefore continuity at \( x = 0 \) cannot even be discussed, because \( 0 \) does not belong to the domain of \( f \).
  5. Step 5: Combine the conclusions. For every point in the domain (all real numbers except \( 0 \)), the function is a polynomial piece and is continuous. Even though the two one-sided limits at \( 0 \) are equal, namely \[ \lim_{x \to 0^-} (x+2) = 2 \] and \[ \lim_{x \to 0^+} (-x+2) = 2 \] we do not include \( x = 0 \) because it is outside the domain.

Final Answer

The function \( f \) is continuous at every point of its domain, that is, \( f \) is continuous for all \( x \ne 0 \). The point \( x = 0 \) is not in the domain, so continuity there is not considered.

Common Mistake

A common mistake is to declare the function discontinuous at \( x = 0 \). Since \( x = 0 \) is not in the domain, we do not test continuity there at all. The correct statement is that \( f \) is continuous everywhere in its domain, i.e. for all \( x \ne 0 \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write out the piecewise definition of the function: \[ f(x) = \begin{cases} x + 2 & x < 0 \\ -x + 2 & x > 0 \end{cases} \] — Reason: Reading the definition carefully tells us exactly which inputs have an assigned output, which is needed before we can talk about continuity at any point.
  2. Step 2: Identify the domain of \( f \). A rule is provided for \( x < 0 \) and for \( x > 0 \), but no rule is given for \( x = 0 \). Therefore the domain is \( \{ x \in \mathbb{R} : x \ne 0 \} \). The open circle at the point \( (0, 2) \) in the graph confirms that \( x = 0 \) is excluded. — Reason: Continuity is only ever tested at points that belong to the domain; a point outside the domain is simply not considered.
  3. Step 3: Check continuity for all \( x < 0 \). In this region \( f(x) = x + 2 \), which is a polynomial in \( x \). Since every polynomial is continuous everywhere on \( \mathbb{R} \), it is certainly continuous at each point in \( (-\infty, 0) \). — Reason: Appealing to the standard result about polynomials saves us from computing limits point-by-point across an entire interval.
  4. Step 4: Check continuity for all \( x > 0 \). In this region \( f(x) = -x + 2 \), which is also a polynomial. By the same reasoning, \( f \) is continuous at every point in \( (0, \infty) \). — Reason: Both pieces of the function are polynomials, so continuity inside each piece follows immediately from the general polynomial continuity theorem.
  5. Step 5: Address the point \( x = 0 \). Since \( x = 0 \) does not belong to the domain of \( f \), there is no value \( f(0) \) to speak of. The very first condition for continuity — that \( f(a) \) must be defined — fails here. Therefore the question of continuity at \( x = 0 \) does not arise. — Reason: Continuity is a property of a function at a point in its domain; asking about continuity outside the domain is meaningless.
  6. Step 6: Combine both pieces. Every point in \( (-\infty, 0) \) is covered by Step 3, and every point in \( (0, \infty) \) is covered by Step 4. Together these two intervals make up the entire domain \( \{ x : x \ne 0 \} \). Hence \( f \) is continuous at every point of its domain. — Reason: Since the domain is exactly the union of the two open intervals and \( f \) is continuous on each, we conclude continuity on the whole domain.

Final Answer

The function \( f \) is continuous at every point of its domain, that is, \( f \) is continuous for all \( x \ne 0 \). The point \( x = 0 \) is not in the domain, so continuity there is not considered.

Common Mistake

One common mistake: students assume they must verify continuity at \( x = 0 \) and then declare the function discontinuous there — but because \( x = 0 \) is not in the domain of \( f \), continuity at that point is simply not applicable, and the function is correctly described as continuous on its entire domain.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Identify the domain: Domain of \( f \): \( x \ne 0 \), i.e., \( x \in (-\infty, 0) \cup (0, \infty) \). The point \( x = 0 \) is excluded (open circle on graph).
  2. Step 2: Continuity for \( x < 0 \): \( f(x) = x + 2 \) — a polynomial, hence continuous for all \( x < 0 \).
  3. Step 3: Continuity for \( x > 0 \): \( f(x) = -x + 2 \) — a polynomial, hence continuous for all \( x > 0 \).

Answer: The function \( f \) is continuous at every point of its domain, that is, \( f \) is continuous for all \( x \ne 0 \). The point \( x = 0 \) is not in the domain, so continuity there is not considered.

➕ More Examples

More Examples

Example 1

Question: Discuss the continuity of the function \( f \) defined by \[f(x) = \begin{cases} x + 5, & x < 0 \\ -x + 5, & x > 0 \end{cases}\]

Solution: The function \( f \) is defined for all \( x \in \mathbb{R} \setminus \{0\} \), i.e., on \( (-\infty, 0) \cup (0, +\infty) \). Note that \( f \) is NOT defined at \( x = 0 \). Case 1: Continuity on \( (-\infty, 0) \). For \( x < 0 \), we have \( f(x) = x + 5 \), which is a polynomial. Every polynomial is continuous everywhere, so \( f \) is continuous at every point in \( (-\infty, 0) \). Case 2: Continuity on \( (0, +\infty) \). For \( x > 0 \), we have \( f(x) = -x + 5 \), which is also a polynomial, hence continuous at every point in \( (0, +\infty) \). Case 3: At \( x = 0 \). Since \( f(0) \) is not defined, the question of continuity at \( x = 0 \) does not arise. We can still compute the one-sided limits for information. Left-hand limit: \[\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} (x + 5) = 0 + 5 = 5\] Right-hand limit: \[\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} (-x + 5) = 0 + 5 = 5\] Although LHL = RHL = 5, since \( f(0) \) is undefined, \( f \) is NOT continuous at \( x = 0 \). Conclusion: \( f \) is continuous at every point in its domain \( (-\infty, 0) \cup (0, +\infty) \), i.e., continuous for all \( x \ne 0 \).

Answer: f is continuous for all x ≠ 0, i.e., on \( (-\infty, 0) \cup (0, +\infty) \). It is not defined (and hence not continuous) at x = 0.

Example 2

Question: Discuss the continuity of the function \( g \) defined by \[g(x) = \begin{cases} 2x + 3, & x < 1 \\ -2x + 7, & x > 1 \end{cases}\]

Solution: The function \( g \) is defined for all \( x \in \mathbb{R} \setminus \{1\} \), i.e., on \( (-\infty, 1) \cup (1, +\infty) \). Note that \( g \) is NOT defined at \( x = 1 \). Case 1: Continuity on \( (-\infty, 1) \). For \( x < 1 \), we have \( g(x) = 2x + 3 \), a polynomial, hence continuous at every point in \( (-\infty, 1) \). Case 2: Continuity on \( (1, +\infty) \). For \( x > 1 \), we have \( g(x) = -2x + 7 \), also a polynomial, hence continuous at every point in \( (1, +\infty) \). Case 3: At \( x = 1 \). Since \( g(1) \) is not defined, continuity at \( x = 1 \) cannot be established. We compute the one-sided limits at \( x = 1 \) for completeness. Left-hand limit: \[\lim_{x \to 1^-} g(x) = \lim_{x \to 1^-} (2x + 3) = 2(1) + 3 = 5\] Right-hand limit: \[\lim_{x \to 1^+} g(x) = \lim_{x \to 1^+} (-2x + 7) = -2(1) + 7 = 5\] Although LHL = RHL = 5, since \( g(1) \) is not defined, \( g \) is NOT continuous at \( x = 1 \). Conclusion: \( g \) is continuous at every point in its domain \( (-\infty, 1) \cup (1, +\infty) \), i.e., continuous for all \( x \ne 1 \).

Answer: g is continuous for all x ≠ 1, i.e., on \( (-\infty, 1) \cup (1, +\infty) \). It is not defined (and hence not continuous) at x = 1.

🎯 Try a Similar Question

Try a Similar Question

Question: Discuss the continuity of the function \( f \) defined by \[ f(x) = \begin{cases} 2x + 3, & \text{if } x < 1 \\ 0, & \text{if } x = 1 \\ 3x - 1, & \text{if } x > 1 \end{cases} \]

Solution

  1. Step 1: Identify the domain and pieces: The function \( f \) is defined for all real numbers \( x \in \mathbb{R} \). It is given by three expressions: a linear polynomial for \( x < 1 \), the value \( 0 \) at \( x = 1 \), and another linear polynomial for \( x > 1 \). The only point that needs special attention is \( x = 1 \), since the formula changes there. For all \( x \ne 1 \) the function is a polynomial, which is automatically continuous.
  2. Step 2: Check continuity for x < 1: For \( x < 1 \), we have \( f(x) = 2x + 3 \). This is a polynomial function, so it is continuous at every point in the interval \( (-\infty, 1) \).
  3. Step 3: Check continuity for x > 1: For \( x > 1 \), we have \( f(x) = 3x - 1 \). This is also a polynomial function, so it is continuous at every point in the interval \( (1, \infty) \).
  4. Step 4: Compute the left-hand limit at x = 1: Using the expression valid for \( x < 1 \): \[ \lim_{x \to 1^-} f(x) = \lim_{x \to 1^-} (2x + 3) = 2(1) + 3 = 5 \]
  5. Step 5: Compute the right-hand limit at x = 1: Using the expression valid for \( x > 1 \): \[ \lim_{x \to 1^+} f(x) = \lim_{x \to 1^+} (3x - 1) = 3(1) - 1 = 2 \]
  6. Step 6: Compare the one-sided limits and the function value: We have \( \lim_{x \to 1^-} f(x) = 5 \) and \( \lim_{x \to 1^+} f(x) = 2 \). Since \( 5 \ne 2 \), the two-sided limit \( \lim_{x \to 1} f(x) \) does not exist. Therefore, \( f \) is NOT continuous at \( x = 1 \), regardless of the value \( f(1) = 0 \).
  7. Step 7: State the conclusion: The function \( f \) is continuous at every point \( x \ne 1 \), but it is discontinuous at \( x = 1 \) because the left-hand limit and the right-hand limit at \( x = 1 \) are not equal.

Answer: The function \( f \) is continuous for all \( x \in \mathbb{R} \) except at \( x = 1 \), where it is discontinuous (since \( \lim_{x \to 1^-} f(x) = 5 \ne 2 = \lim_{x \to 1^+} f(x) \)).

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 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 65/2/3 2026 / Section B Q23