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

Example 6: The identity function f(x)=xf(x)=x is continuous everywhere

ExamplesContinuous functions · Section 5.2
The question

Prove that the identity function on real numbers given by f(x)=xf(x) = x is continuous at every real number.

Exam answer

Let cc be any real number. Then f(c)=cf(c) = c⁠.

LHL=lim⁡x→c−x=c\text{LHL} = \lim_{x\to c^-} x = c RHL=lim⁡x→c+x=c\text{RHL} = \lim_{x\to c^+} x = c

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

As cc is arbitrary, f(x)=xf(x) = x is continuous at every real number. Hence proved.

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

The one idea this problem is built on

The identity function returns its input unchanged, so the distance between f(x)f(x) and f(c)f(c) is exactly the distance between xx and cc. Bringing xx close to cc therefore brings f(x)f(x) equally close to f(c)f(c)⁠, at every point cc⁠. The proof is this observation, carried out at an arbitrary point.

Given, to prove, and the plan
Given
f(x)=xf(x) = x for every real xx⁠.
To prove
ff is continuous at every real number.
Plan
Take an arbitrary real cc⁠. Find f(c)f(c)⁠, the left-hand limit and the right-hand limit at cc⁠, and show they are equal (Definition 1).

Basics you need

1The identity function

f(x)=xf(x) = x sends every number to itself: f(3)=3f(3) = 3⁠, f(−0.5)=−0.5f(-0.5) = -0.5⁠. Its graph is the line y=xy = x through the origin at 45°. Basics: functions

2What 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⁠, x≠cx \ne c⁠. Basics: what a limit is

3One-sided limits

x→c−x\to c^- uses only x<cx < c⁠, and x→c+x\to c^+ only x>cx > c⁠. The limit exists when both exist and agree. Basics: left-hand and right-hand limits

4Definition 1

For cc in the domain, ff is continuous at cc iff the left-hand limit, the right-hand limit and f(c)f(c) exist and are equal. Lesson: continuity at a point

Solution

  1. Fix an arbitrary point and find f(c)f(c)

    f(x)=xf(x) = x is defined for every real xx⁠, so the domain is R\R⁠. Let cc be any real number. Then

    f(c)=c.f(c) = c.
    "Continuous at every real number" is a "for every" statement, so we argue at a point cc about which nothing is assumed beyond being real. Continuity at cc is only meaningful because cc is in the domain.
    The identity function's output equals its input. Basics: functions
  2. Measure how far f(x)f(x) is from f(c)f(c)

    For every real xx⁠,

    ∣f(x)−f(c)∣=∣x−c∣.|f(x) - f(c)| = |x - c|.

    So if xx is within 0.01 of cc⁠, then f(x)f(x) is within 0.01 of cc⁠; if xx is within 0.000001 of cc⁠, so is f(x)f(x)⁠. Any demanded closeness is met by taking xx just as close to cc⁠, from either side.

    This is the meaning of a limit (Basic 2) applied directly. It is also the honest reason behind the textbook's line lim⁡x→cx=c\lim_{x\to c} x = c⁠: that line is not a calculation but a direct consequence of f(x)−c=x−cf(x) - c = x - c⁠.
    ∣x−c∣|x - c| is the distance between xx and cc on the number line. Basics: what a limit is
  3. The two one-sided limits

    Step 2 holds for x<cx < c and for x>cx > c⁠, so

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

    For example, with c=3c = 3⁠:

    xxf(x)f(x)side of 3
    2.92.92.92.9left
    2.992.992.992.99left
    3.013.013.013.01right
    3.13.13.13.1right
    The rule xx is the same on both sides of cc⁠, so both one-sided limits come out the same way. Since they agree, lim⁡x→cf(x)=c\lim_{x\to c} f(x) = c⁠.
  4. Compare and conclude

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

    All three agree, so lim⁡x→cf(x)=c=f(c)\lim_{x\to c} f(x) = c = f(c) and ff is continuous at cc⁠. Because cc was arbitrary, the identity function is continuous at every real number.

    Definition 1 is satisfied at the arbitrary point cc⁠, which proves it at every real number. So ff is a continuous function (Definition 2).
x y O c c (c, c) y = x x → c from the left x → c from the right the value f(c) = c
The identity function y=xy = x (same scale on both axes). At any point cc⁠, the graph arrives at height cc from both sides, and (c,c)(c, c) is on the graph. The dashed guides show that the height equals the input.
Result

For every real cc⁠, lim⁡x→cf(x)=c=f(c)\lim_{x\to c} f(x) = c = f(c)⁠. Hence the identity function f(x)=xf(x) = x is continuous at every real number, as the textbook proves.

Check it with numbers

At c=−1.5c = -1.5⁠: f(−1.5004)=−1.5004f(-1.5004) = -1.5004 and f(−1.4996)=−1.4996f(-1.4996) = -1.4996⁠, each 0.00040.0004 from f(−1.5)=−1.5f(-1.5) = -1.5⁠, exactly the distance of xx from −1.5-1.5⁠.

Common mistakes
  1. Proving it at one point only. "Continuous at every real number" needs an arbitrary cc⁠, not c=0c = 0 or c=1c = 1⁠.
  2. Treating lim⁡x→cx=c\lim_{x\to c} x = c as obvious without reason. It is true because ∣f(x)−c∣=∣x−c∣|f(x) - c| = |x - c|⁠; that is worth saying once.
  3. Mixing up xx and cc⁠. cc is the fixed point being tested; xx is the moving input that approaches it.
What to take away
  1. The identity function is continuous everywhere because it does not change distances.
  2. Constants (Example 5) and the identity function are the two building blocks. Sums, products and quotients of continuous functions are continuous (Theorem 1, Section 5.2.1), so every polynomial a0+a1x+⋯+anxna_0 + a_1x + \dots + a_nx^n is continuous (Example 14).

Every fact used, and where it comes from

FactUsed inSource
Identity function: f(x)=xf(x) = xSteps 1–3Definition (Basics: functions)
∣f(x)−f(c)∣=∣x−c∣|f(x) - f(c)| = |x - c|Step 2Arithmetic
Meaning of a limit; lim⁡x→cx=c\lim_{x\to c} x = cSteps 2, 3Limits, Class XI (Limits and Derivatives) (Basics: what a limit is)
Continuous at cc iff LHL = RHL = f(c)f(c)Step 4Definition 1, Section 5.2 (Lesson: continuity at a point)
Continuous functionStep 4Definition 2, Section 5.2
Sums and products of continuous functions are continuousTake-away 2Theorem 1, Section 5.2.1 (Lesson: algebra of continuous functions)
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 →