Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Example 2: Continuity of f(x)=x2f(x)=x^2 at x=0x=0

ExamplesContinuity at a point · Section 5.2
The question

Examine whether the function ff given by f(x)=x2f(x) = x^2 is continuous at x=0x = 0⁠.

Exam answer f(0)=02=0f(0) = 0^2 = 0 LHL=lim⁡x→0−f(x)=lim⁡x→0−x2=0\begin{aligned} \text{LHL} &= \lim_{x\to 0^-} f(x) \\ &= \lim_{x\to 0^-} x^2 = 0 \end{aligned} RHL=lim⁡x→0+f(x)=lim⁡x→0+x2=0\begin{aligned} \text{RHL} &= \lim_{x\to 0^+} f(x) \\ &= \lim_{x\to 0^+} x^2 = 0 \end{aligned}

Since LHL=RHL=f(0)\text{LHL} = \text{RHL} = f(0)⁠, ff is continuous at x=0x = 0⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

To test continuity at 0 we compare three numbers: f(0)f(0)⁠, the left-hand limit and the right-hand limit. Squaring wipes out the sign of xx⁠, so whether xx is a small negative or a small positive number, x2x^2 is a very small positive number. Both sides therefore squeeze down to 0, which is exactly f(0)f(0)⁠.

Given, to find, and the plan
Given
f(x)=x2f(x) = x^2 for every real xx⁠.
To find
Whether ff is continuous at x=0x = 0⁠.
Plan
Check that 0 is in the domain and find f(0)f(0)⁠. Compute the left-hand and right-hand limits at 0 separately. Compare the three numbers (Definition 1, Section 5.2).

Basics you need

1What a limit is

lim⁡x→cf(x)=L\lim_{x\to c} f(x) = L means f(x)f(x) can be made as close to LL as we like by taking xx close enough to cc (with x≠cx \ne c⁠). Basics: what a limit is

2One-sided limits

x→0−x \to 0^-⁠: xx approaches 0 through negative numbers. x→0+x \to 0^+⁠: through positive numbers. The limit at 0 exists exactly when both one-sided limits exist and agree. Basics: left-hand and right-hand limits

3Limit of a product (Class XI)

If lim⁡f=A\lim f = A and lim⁡g=B\lim g = B⁠, then lim⁡(fg)=AB\lim (f g) = AB⁠. With f=g=xf = g = x this gives lim⁡x→cx2=c⋅c=c2\lim_{x\to c} x^2 = c\cdot c = c^2⁠. It holds for one-sided limits too. Basics: limits

4Definition 1: continuity at a point

For cc in the domain: ff is continuous at cc when the left-hand limit, the right-hand limit and f(c)f(c) all exist and are equal, that is lim⁡x→cf(x)=f(c)\lim_{x\to c} f(x) = f(c)⁠. Lesson: continuity at a point

Solution

  1. Is 0 in the domain? Find f(0)f(0)

    x2x^2 can be computed for every real xx⁠, so the domain is R\R and 0 belongs to it:

    f(0)=02=0.f(0) = 0^2 = 0.
    Continuity is only tested at points of the domain (Definition 1), and f(0)f(0) is one of the three numbers to compare.
    02=0×0=00^2 = 0 \times 0 = 0⁠.
  2. Left-hand limit at 0

    For x<0x < 0 the rule is still x2x^2⁠. By the product rule for limits (Basic 3),

    lim⁡x→0−f(x)=lim⁡x→0−x2=0⋅0=0.\lim_{x\to 0^-} f(x) = \lim_{x\to 0^-} x^2 = 0\cdot 0 = 0.
    xxf(x)f(x)side of 0
    −0.1-0.10.010.01left
    −0.01-0.010.00010.0001left
    −0.001-0.0010.0000010.000001left
    Even though xx is negative here, x2x^2 is positive: a negative times a negative is positive. So the graph comes down to height 0 from the left (it does not come up from below). The values 0.01, 0.0001, 0.000001 shrink towards 0.
    (−0.1)2=(−0.1)(−0.1)=+0.01(-0.1)^2 = (-0.1)(-0.1) = +0.01⁠. Basics: one-sided limits
  3. Right-hand limit at 0

    lim⁡x→0+f(x)=lim⁡x→0+x2=0⋅0=0.\lim_{x\to 0^+} f(x) = \lim_{x\to 0^+} x^2 = 0\cdot 0 = 0.
    xxf(x)f(x)side of 0
    0.10.10.010.01right
    0.010.010.00010.0001right
    0.0010.0010.0000010.000001right
    The right side gives exactly the same values as the left, because (−x)2=x2(-x)^2 = x^2⁠: the graph is symmetric about the yy-axis. Both one-sided limits are 0, so lim⁡x→0x2=0\lim_{x\to0} x^2 = 0⁠.
  4. How close, exactly?

    The distance of f(x)f(x) from 0 is ∣x2−0∣=∣x∣2|x^2 - 0| = |x|^2⁠. If ∣x∣<0.01|x| < 0.01⁠, then

    ∣f(x)−0∣=∣x∣2<(0.01)2=0.0001.|f(x) - 0| = |x|^2 < (0.01)^2 = 0.0001.

    In general, to get f(x)f(x) within any small positive number ε\varepsilon of 0, take ∣x∣<ε|x| < \sqrt{\varepsilon}⁠.

    This turns the pattern in the tables into a guarantee: x2x^2 is as close to 0 as anyone asks, from either side, once xx is close enough to 0. That is precisely what "the limit is 0" means (Basic 1).
    For non-negative numbers, a<ba < b implies a2<b2a^2 < b^2⁠; apply it with a=∣x∣a = |x|⁠, b=0.01b = 0.01⁠. Basics: what a limit is
  5. Compare the three numbers

    lim⁡x→0−f(x)=0,lim⁡x→0+f(x)=0,f(0)=0.\begin{aligned} \lim_{x\to 0^-} f(x) &= 0, \\ \lim_{x\to 0^+} f(x) &= 0, \\ f(0) &= 0. \end{aligned}

    All three exist and are equal, so lim⁡x→0f(x)=0=f(0)\lim_{x\to0} f(x) = 0 = f(0)⁠. By Definition 1, ff is continuous at x=0x = 0.

    "Limit equals value" is the whole of Definition 1. The textbook writes this as lim⁡x→0f(x)=0=f(0)\lim_{x\to0} f(x) = 0 = f(0)⁠.
x y −2 −1 1 2 1 2 3 4 y = x² x → 0 from the left x → 0 from the right the value f(0) = 0
The parabola y=x2y = x^2 (same scale on both axes). From the left and from the right the curve comes down to the origin, and the origin (0,0)(0, 0) is itself on the graph, so there is no gap at x=0x = 0⁠.
Result

f(0)=0f(0) = 0 and both one-sided limits at 0 are 0, so lim⁡x→0f(x)=f(0)\lim_{x\to0} f(x) = f(0)⁠: f(x)=x2f(x) = x^2 is continuous at x=0x = 0. This agrees with the textbook's solution.

Check it with numbers

x=−0.003x = -0.003 and x=0.003x = 0.003 both give f(x)=0.000009f(x) = 0.000009⁠, which is less than 0.00010.0001⁠, as Step 4 promises for every ∣x∣<0.01|x| < 0.01⁠.

Common mistakes
  1. Giving a negative left-hand value. (−0.1)2(-0.1)^2 is +0.01+0.01⁠, not −0.01-0.01⁠. Use brackets when squaring a negative number.
  2. Reading "x→0−x \to 0^-" as "xx is negative, so f(x)f(x) is negative". The minus sign in 0−0^- describes where xx comes from, not the sign of f(x)f(x)⁠.
  3. Only checking f(0)f(0)⁠. Being defined at 0 is just one of the three conditions; the limits must also be computed and compared.
What to take away
  1. The continuity test at a point: left-hand limit, right-hand limit and value must all exist and agree.
  2. Nothing here was special to 0: lim⁡x→cx2=c2=f(c)\lim_{x\to c} x^2 = c^2 = f(c) for every cc⁠, so x2x^2 is continuous everywhere (a case of Example 14, every polynomial is continuous).
  3. When a single formula is used on both sides of cc⁠, the two one-sided limits are computed the same way; they can differ only when the formula changes at cc⁠.

Every fact used, and where it comes from

FactUsed inSource
x2x^2 is defined for all real xxStep 1Arithmetic
lim⁡(fg)=lim⁡f⋅lim⁡g\lim (fg) = \lim f \cdot \lim g⁠; lim⁡x=c\lim x = cSteps 2, 3Algebra of limits, Class XI (Limits and Derivatives) (Basics: limits)
(−x)2=x2(-x)^2 = x^2Steps 2, 3Product of two negatives is positive
0≤a<b⇒a2<b20 \le a < b \Rightarrow a^2 < b^2Step 4Inequalities of non-negative numbers
Continuous at cc iff lim⁡x→cf(x)=f(c)\lim_{x\to c} f(x) = f(c)Step 5Definition 1, Section 5.2 (Lesson: continuity at a point)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →