Skip to content
Worked Examples · Example 12

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

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★
16% · 46/281 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

f(0)f(0) is not defined by the given rule, so ff fails the first continuity condition at x=0x=0 and is discontinuous there; it is continuous everywhere else, i.e. on R∖{0}\mathbb{R}\setminus\{0\}.

What we must check

ff is continuous at x=ax=a only if all three hold: (1) f(a)f(a) is defined, (2) lim⁡x→af(x)\lim_{x\to a}f(x) exists, (3) the limit equals f(a)f(a). Each piece here is linear, so the only point that can cause trouble is the boundary x=0x=0.

The one-sided limits

For x<0x<0, f(x)=x+2f(x)=x+2:

lim⁡x→0−f(x)=0+2=2.\lim_{x\to 0^-} f(x) = 0+2 = 2.

For x>0x>0, f(x)=−x+2f(x)=-x+2:

lim⁡x→0+f(x)=−0+2=2.\lim_{x\to 0^+} f(x) = -0+2 = 2.

Both equal 22, so lim⁡x→0f(x)=2\lim_{x\to 0} f(x) = 2 exists.

The value at the point

The definition gives a formula only for x<0x<0 and for x>0x>0. It says nothing about x=0x=0, so f(0)f(0) is undefined — condition (1) fails.

Watch out

Don't be misled by the limit existing. A limit can exist at a point where the function has no value, and continuity still fails because there is nothing for the limit to match.

Conclusion …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.