Skip to content
Worked Examples · Example 20

Q.Show that the function ff defined by f(x)=∣1−x+∣x∣∣f(x) = |1 - x + |x||, where xx is any real number, is a continuous function.

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★
19% · 54/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 →

The key idea is to simplify the nested absolute value by splitting the real line into two intervals based on the sign of xx. Once simplified, f(x)f(x) becomes a piecewise polynomial (constant and linear pieces), and each piece is continuous on its interval. Checking the meeting point x=0x=0 shows the left and right limits equal the function value, so ff is continuous everywhere.

We need to show that f(x)=∣1−x+∣x∣∣f(x) = |1 - x + |x|| is continuous for all real xx. The function involves an absolute value inside another absolute value. The standard way to handle such nested absolute values is to remove them by considering the cases where the inner expression changes sign.

The innermost absolute value is ∣x∣|x|, which changes behaviour at x=0x = 0. So we split the domain into x≥0x \geq 0 and x<0x < 0.


  1. Case 1: x≥0x \geq 0 Here ∣x∣=x|x| = x. Substitute into ff:

f(x)=∣1−x+x∣=∣1∣=1.f(x) = |1 - x + x| = |1| = 1.

So for all x≥0x \geq 0, f(x)=1f(x) = 1, a constant function. Constant functions are continuous everywhere on their domain.

  1. Case 2: x<0x < 0 Here ∣x∣=−x|x| = -x. Substitute:

f(x)=∣1−x+(−x)∣=∣1−2x∣.f(x) = |1 - x + (-x)| = |1 - 2x|.

Now we have ∣1−2x∣|1 - 2x|. This absolute value changes sign when 1−2x=01 - 2x = 0, i.e., x=12x = \frac{1}{2}. But note: we are in the region x<0x < 0, and 12>0\frac{1}{2} > 0, so the point x=12x = \frac{1}{2} is not in this region. Therefore, for all x<0x < 0, the expression 1−2x1 - 2x is always positive (since xx is negative, −2x-2x is positive, so 1−2x>1>01 - 2x > 1 > 0). Hence:

∣1−2x∣=1−2x.|1 - 2x| = 1 - 2x.

So for x<0x < 0, f(x)=1−2xf(x) = 1 - 2x, a linear polynomial. Linear functions are continuous everywhere on their domain.

  1. Check continuity at the boundary x=0x = 0 The function is defined piecewise:

f(x)={1−2x,x<0,1,x≥0.f(x) = \begin{cases} 1 - 2x, & x < 0, \\ 1, & x \geq 0. \end{cases}

At x=0x = 0, we compute: …

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.