SOLVER7 Study. Nothing Else.
Exercise 5.1 Q24

Determine if \(f\) defined by \(f(x)=\begin{cases}x^2\ sin \dfrac{1}{x},&\text{ifx\)\ne\(0}\\ 0,&\text{if x= 0}\end{cases}\) is a continuous function?

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine a function is like a machine that gives you a number for every input. This machine behaves very smoothly almost everywhere, like a calm river. Near the tricky spot \( x = 0 \), the machine wobbles wildly, but it gets squeezed tighter and tighter toward zero. Because the wobbling is always trapped between two values that both shrink to zero, the output at \( x = 0 \) is perfectly smooth too. So the machine never jumps or breaks anywhere.

Answer: Yes, \( f \) is a continuous function. It is continuous for all \( x \ne 0 \) as a product of continuous functions, and at \( x = 0 \) the Sandwich Theorem gives \( \lim_{x \to 0} f(x) = 0 = f(0) \). Hence \( f \) is continuous on all of \( \mathbb{R} \).

📖 Continuity of a Piecewise Function with sin(1/x)

Detailed Explanation

A function \( f \) is said to be continuous at a point \( x = a \) if \( \lim_{x \to a} f(x) = f(a) \). This means the limit of the function as \( x \) approaches \( a \) exists and equals the actual value of the function at \( a \). Here the function is \( f(x) = x^2 \sin\frac{1}{x} \) for \( x \ne 0 \) and \( f(0) = 0 \). For all \( x \ne 0 \), the function is a product and composition of continuous functions (polynomial \( x^2 \) and \( \sin\frac{1}{x} \)), so continuity is automatic there. The only doubtful point is \( x = 0 \), because \( \sin\frac{1}{x} \) oscillates wildly near \( 0 \). We handle this using the Sandwich (Squeeze) principle, since \( \sin\frac{1}{x} \) always stays between \( -1 \) and \( 1 \).

Formula Used

\( f \) is continuous at \( x = a \) if \( \lim_{x \to a} f(x) = f(a) \). Also, \( -1 \le \sin\theta \le 1 \) for all \( \theta \).

Solution

  1. Step 1: Check continuity for all \( x \ne 0 \). Here \( f(x) = x^2 \sin\frac{1}{x} \). Since \( x^2 \) is a polynomial (continuous) and \( \sin\frac{1}{x} \) is a composition of continuous functions for \( x \ne 0 \), their product is continuous. So \( f \) is continuous at every point \( x \ne 0 \).
  2. Step 2: Now examine the point \( x = 0 \). We must check whether \( \lim_{x \to 0} f(x) = f(0) \). We know the function value: \( f(0) = 0 \).
  3. Step 3: Set up the bounds using the fact that sine is bounded. For all \( x \ne 0 \), \( -1 \le \sin\frac{1}{x} \le 1 \). Multiplying throughout by \( x^2 \) (which is positive), we get \[ -x^2 \le x^2 \sin\frac{1}{x} \le x^2. \]
  4. Step 4: Apply the Sandwich Theorem by taking limits as \( x \to 0 \). We have \[ \lim_{x \to 0} (-x^2) = 0 \quad \text{and} \quad \lim_{x \to 0} x^2 = 0. \] Since the middle expression is squeezed between two quantities that both tend to \( 0 \), we conclude \[ \lim_{x \to 0} x^2 \sin\frac{1}{x} = 0. \]
  5. Step 5: Compare the limit with the function value. We found \( \lim_{x \to 0} f(x) = 0 \) and \( f(0) = 0 \). Since they are equal, \( f \) is continuous at \( x = 0 \).
  6. Step 6: Combine the conclusions. The function is continuous for all \( x \ne 0 \) (from Step 1) and also continuous at \( x = 0 \) (from Step 5). Therefore \( f \) is continuous at every real number.

Final Answer

Yes, \( f \) is a continuous function. It is continuous for all \( x \ne 0 \) as a product of continuous functions, and at \( x = 0 \) the Sandwich Theorem gives \( \lim_{x \to 0} f(x) = 0 = f(0) \). Hence \( f \) is continuous on all of \( \mathbb{R} \).

Common Mistake

A common mistake is to try to compute \( \lim_{x \to 0} \sin\frac{1}{x} \) directly and claim the limit does not exist, then conclude \( f \) is discontinuous. In fact \( \sin\frac{1}{x} \) alone has no limit at \( 0 \), but multiplying by \( x^2 \) (which tends to \( 0 \)) forces the whole product to \( 0 \) by the Sandwich Theorem. Never ignore the \( x^2 \) factor.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write down the function clearly: The given function is \[f(x) = \begin{cases} x^2 \sin\!\left(\dfrac{1}{x}\right) & x \ne 0 \\ 0 & x = 0 \end{cases}\] — Reason: Identifying the piecewise definition helps us see exactly where continuity needs special attention (at \( x = 0 \)) versus where it is routine.
  2. Step 2: Confirm continuity for all \( x \ne 0 \): For any \( x \ne 0 \), the expression \( f(x) = x^2 \sin\!\left(\frac{1}{x}\right) \) is a product of two functions: \( x^2 \) (a polynomial, continuous everywhere) and \( \sin\!\left(\frac{1}{x}\right) \) (a composition of the continuous functions \( \sin \) and \( \frac{1}{x} \), continuous for \( x \ne 0 \)). A product of continuous functions is continuous. — Reason: This eliminates all points except \( x = 0 \) from further concern, letting us focus our careful analysis on the origin alone.
  3. Step 3: State what must be checked at \( x = 0 \): At \( x = 0 \), we need to verify: \( \lim_{x \to 0} f(x) = f(0) \). We already know \( f(0) = 0 \). So the question reduces to: does \( \lim_{x \to 0} x^2 \sin\!\left(\frac{1}{x}\right) = 0 \)? — Reason: The function \( \sin\!\left(\frac{1}{x}\right) \) oscillates infinitely often near \( 0 \), so a direct substitution or simple limit rule cannot be applied; we must use a bounding argument.
  4. Step 4: Apply the bounded property of sine: Since \( -1 \le \sin\!\left(\frac{1}{x}\right) \le 1 \) for all \( x \ne 0 \), multiply throughout by \( x^2 \ge 0 \): \[ -x^2 \le x^2 \sin\!\left(\frac{1}{x}\right) \le x^2 \] — Reason: Multiplying by a non-negative quantity \( x^2 \) preserves the direction of both inequalities, creating a valid squeeze around \( f(x) \).
  5. Step 5: Take limits of the bounding functions: Evaluate the limits of the outer expressions as \( x \to 0 \): \[ \lim_{x \to 0} (-x^2) = 0 \quad \text{and} \quad \lim_{x \to 0} x^2 = 0 \] — Reason: Both bounds converge to the same value \( 0 \), which is the condition needed to apply the Sandwich Theorem.
  6. Step 6: Conclude the limit using the Sandwich Theorem: Since \( -x^2 \le f(x) \le x^2 \) for all \( x \ne 0 \), and both bounding functions tend to \( 0 \) as \( x \to 0 \), the Sandwich Theorem gives: \[ \lim_{x \to 0} f(x) = 0 \] — Reason: The theorem forces the middle function to share the same limit as the two bounds when they agree.
  7. Step 7: Verify the continuity condition at \( x = 0 \): We now compare the limit with the function value: \( \lim_{x \to 0} f(x) = 0 \) and \( f(0) = 0 \). Since these are equal, i.e., \( \lim_{x \to 0} f(x) = f(0) \), the function is continuous at \( x = 0 \). — Reason: This is precisely the definition of continuity at a point, so confirming this equality completes the proof.

Final Answer

Yes, \( f \) is a continuous function. It is continuous for all \( x \ne 0 \) as a product of continuous functions, and at \( x = 0 \) the Sandwich Theorem gives \( \lim_{x \to 0} f(x) = 0 = f(0) \). Hence \( f \) is continuous on all of \( \mathbb{R} \).

Common Mistake

One common mistake: students try to evaluate \( \lim_{x \to 0} \sin\!\left(\frac{1}{x}\right) \) separately and, finding it does not exist, incorrectly conclude that \( \lim_{x \to 0} f(x) \) also does not exist. In reality, the factor \( x^2 \to 0 \) suppresses the oscillation of \( \sin\!\left(\frac{1}{x}\right) \), so the product still tends to \( 0 \); always check whether a vanishing factor can tame a bounded but oscillating one before concluding a limit fails to exist.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Continuity for \( x \ne 0 \): \( x^2 \) is a polynomial and \( \sin\frac{1}{x} \) is continuous for \( x \ne 0 \), so their product \( f(x) \) is continuous at all \( x \ne 0 \).
  2. Step 2: Squeeze at \( x = 0 \): Since \( -1 \le \sin\frac{1}{x} \le 1 \), multiply by \( x^2 \ge 0 \):
  3. Step 3: Apply Sandwich Theorem: \[ -x^2 \le x^2 \sin\frac{1}{x} \le x^2 \] As \( x \to 0 \), both \( -x^2 \to 0 \) and \( x^2 \to 0 \), so \( \lim_{x \to 0} f(x) = 0 = f(0) \).

Answer: Yes, \( f \) is a continuous function. It is continuous for all \( x \ne 0 \) as a product of continuous functions, and at \( x = 0 \) the Sandwich Theorem gives \( \lim_{x \to 0} f(x) = 0 = f(0) \). Hence \( f \) is continuous on all of \( \mathbb{R} \).

➕ More Examples

More Examples

Example 1

Question: Determine whether the function \( g \) defined by \[ g(x) = \begin{cases} x^3 \cos\dfrac{1}{x} & \text{if } x \ne 0 \\ 0 & \text{if } x = 0 \end{cases} \] is continuous at \( x = 0 \).

Solution: We need to check whether \( \lim_{x \to 0} g(x) = 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 \), we have \( g(x) = x^3 \cos\left(\dfrac{1}{x}\right) \). Since cosine is bounded, we know \[ -1 \le \cos\left(\frac{1}{x}\right) \le 1 \] for all \( x \ne 0 \). Multiplying throughout by \( x^3 \) (considering both positive and negative values of \( x \)), we get \[ -|x^3| \le x^3 \cos\left(\frac{1}{x}\right) \le |x^3|. \] Now, as \( x \to 0 \), we have \[ \lim_{x \to 0} |x^3| = 0 \quad \text{and} \quad \lim_{x \to 0} (-|x^3|) = 0. \] By the Squeeze (Sandwich) Theorem, \[ \lim_{x \to 0} x^3 \cos\left(\frac{1}{x}\right) = 0. \] Step 3: Compare the limit with \( g(0) \). We have \( \lim_{x \to 0} g(x) = 0 = g(0) \). Step 4: Conclusion. Since the limit exists and equals the value of the function at \( x = 0 \), the function \( g \) is continuous at \( x = 0 \). For \( x \ne 0 \), \( g(x) \) is a product and composition of continuous functions (polynomial \( x^3 \), cosine, and \( 1/x \)), so it is continuous everywhere else as well. Therefore, \( g \) is continuous on all of \( \mathbb{R} \).

Answer: g is continuous at x = 0, and hence continuous everywhere on \( \mathbb{R} \).

Example 2

Question: Examine the continuity of the function \( h \) defined by \[ h(x) = \begin{cases} x^2 \cos\dfrac{2}{x} & \text{if } x \ne 0 \\ 0 & \text{if } x = 0 \end{cases} \] at \( x = 0 \). Is \( h \) continuous on all of \( \mathbb{R} \)?

Solution: We check the three conditions for continuity at \( x = 0 \). Condition 1: \( h(0) \) is defined. From the definition, \( h(0) = 0 \). So \( h(0) \) exists. Condition 2: \( \lim_{x \to 0} h(x) \) exists. For \( x \ne 0 \): \( h(x) = x^2 \cos\left(\dfrac{2}{x}\right) \). Since cosine is always bounded between \(-1\) and \(1\), we have \[ -1 \le \cos\left(\frac{2}{x}\right) \le 1 \] for all \( x \ne 0 \). Multiplying by \( x^2 \ge 0 \), we obtain \[ -x^2 \le x^2 \cos\left(\frac{2}{x}\right) \le x^2. \] As \( x \to 0 \): \[ \lim_{x \to 0} (-x^2) = 0 \quad \text{and} \quad \lim_{x \to 0} x^2 = 0. \] By the Squeeze Theorem, \[ \lim_{x \to 0} x^2 \cos\left(\frac{2}{x}\right) = 0. \] So the limit exists and equals \( 0 \). Condition 3: The limit equals the function value. We have \( \lim_{x \to 0} h(x) = 0 = h(0) \). All three conditions are satisfied, so \( h \) is continuous at \( x = 0 \). For \( x \ne 0 \): The expression \( x^2 \cos\left(\dfrac{2}{x}\right) \) is a composition and product of continuous functions (the polynomial \( x^2 \), the function \( \dfrac{2}{x} \) which is continuous for \( x \ne 0 \), and cosine). So \( h \) is continuous for all \( x \ne 0 \). Conclusion: \( h \) is continuous on all of \( \mathbb{R} \).

Answer: h is continuous at x = 0, and hence continuous on all of \( \mathbb{R} \).

🎯 Try a Similar Question

Try a Similar Question

Question: Determine whether the function \( g \) defined by \[ g(x) = \begin{cases} x^3 \cos\!\left(\dfrac{1}{x}\right) & \text{if } x \ne 0 \\ 0 & \text{if } x = 0 \end{cases} \] is continuous at \( x = 0 \). Is \( g \) differentiable at \( x = 0 \)? If yes, find \( g'(0) \).

Solution

  1. Step 1: Check continuity for x ≠ 0: For \( x \ne 0 \), the function \( g(x) = x^3 \cos\!\left(\dfrac{1}{x}\right) \) is a product of \( x^3 \) (a polynomial, hence continuous) and \( \cos\!\left(\dfrac{1}{x}\right) \) (a composition of continuous functions for \( x \ne 0 \)). Therefore \( g \) is continuous at every \( x \ne 0 \).
  2. Step 2: Check continuity at x = 0 using the Sandwich Theorem: We need to verify \( \lim_{x \to 0} g(x) = g(0) = 0 \). Since \( -1 \le \cos\!\left(\dfrac{1}{x}\right) \le 1 \) for all \( x \ne 0 \), multiplying through by \( x^3 \) (taking absolute values) gives \[ -|x|^3 \le x^3 \cos\!\left(\frac{1}{x}\right) \le |x|^3. \] As \( x \to 0 \), both \( -|x|^3 \to 0 \) and \( |x|^3 \to 0 \). By the Sandwich Theorem, \( \lim_{x \to 0} g(x) = 0 = g(0) \). Hence \( g \) is continuous at \( x = 0 \).
  3. Step 3: Check differentiability at x = 0 using the definition: We compute \( g'(0) \) from first principles: \[ g'(0) = \lim_{h \to 0} \frac{g(h) - g(0)}{h} = \lim_{h \to 0} \frac{h^3 \cos\!\left(\dfrac{1}{h}\right) - 0}{h} = \lim_{h \to 0} h^2 \cos\!\left(\frac{1}{h}\right). \]
  4. Step 4: Evaluate the limit using Sandwich Theorem again: Since \( \left|\cos\!\left(\dfrac{1}{h}\right)\right| \le 1 \), we have \[ \left|h^2 \cos\!\left(\frac{1}{h}\right)\right| \le h^2. \] As \( h \to 0 \), \( h^2 \to 0 \), so by the Sandwich Theorem \[ \lim_{h \to 0} h^2 \cos\!\left(\frac{1}{h}\right) = 0. \] Therefore \( g'(0) = 0 \).
  5. Step 5: State the conclusion: The function \( g \) is continuous at \( x = 0 \) (and hence on all of \( \mathbb{R} \)), and it is also differentiable at \( x = 0 \) with \( g'(0) = 0 \).

Answer: Yes, \( g \) is continuous on all of \( \mathbb{R} \). Moreover, \( g \) is differentiable at \( x = 0 \) with \( g'(0) = 0 \). (The original question only asked about continuity and concluded \( f \) was continuous; this new question additionally establishes differentiability at \( x = 0 \) with a specific derivative value.)

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