Skip to content
Miscellaneous Examples · Example 22

Q.The function ff is defined by f(x)={1−x,x<01,x=0x+1,x>0f(x) = \begin{cases} 1 - x, & x < 0 \\ 1, & x = 0 \\ x + 1, & x > 0 \end{cases} Draw the graph of f(x)f(x).

Sikkim CbseNCERTSubjective· 3mImportance★★★★★est
46% · 46/100 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(x)=1−xf(x) = 1-x for x<0x<0, f(0)=1f(0)=1, and f(x)=x+1f(x)=x+1 for x>0x>0 is exactly the same function as f(x)=∣x∣+1f(x) = |x| + 1 for every real xx. Its graph is a single continuous V-shaped curve with vertex at (0,1)(0, 1), sloping down at −1-1 to the left and up at +1+1 to the right — there is no gap, jump, or open circle anywhere.

To graph a piecewise function, treat each rule separately over its own domain, then check what happens at the boundary point(s) before drawing the final picture.

Step 1 — Plot the piece for x<0x < 0: f(x)=1−xf(x) = 1 - x.

This is a line of slope −1-1 and yy-intercept 11, drawn only for x<0x<0.

  • x=−1⇒f(−1)=1−(−1)=2x=-1 \Rightarrow f(-1) = 1-(-1) = 2, so (−1,2)(-1, 2) is on the graph.
  • x=−2⇒f(−2)=1−(−2)=3x=-2 \Rightarrow f(-2) = 1-(-2) = 3, so (−2,3)(-2, 3) is on the graph.
  • As x→0−x \to 0^- (e.g. x=−0.1x=-0.1), f(−0.1)=1.1→1f(-0.1) = 1.1 \to 1.

Step 2 — Plot the piece at x=0x = 0: f(0)=1f(0) = 1.

This gives the single point (0,1)(0, 1).

Step 3 — Plot the piece for x>0x > 0: f(x)=x+1f(x) = x + 1.

This is a line of slope 11 and yy-intercept 11, drawn only for x>0x>0.

  • x=1⇒f(1)=1+1=2x=1 \Rightarrow f(1) = 1+1 = 2, so (1,2)(1, 2) is on the graph.
  • x=2⇒f(2)=2+1=3x=2 \Rightarrow f(2) = 2+1 = 3, so (2,3)(2, 3) is on the graph.
  • As x→0+x \to 0^+ (e.g. x=0.1x=0.1), f(0.1)=1.1→1f(0.1) = 1.1 \to 1.

Step 4 — Check what happens at the join, x=0x = 0.

The left piece approaches 11 as x→0−x \to 0^-, the right piece approaches 11 as x→0+x \to 0^+, and the middle piece gives f(0)=1f(0) = 1 directly. All three values are the same number, 11. That means the two rays don't stop short of (0,1)(0,1) and leave a gap for the middle piece to fill — they run straight into it. The function is continuous at x=0x = 0; no open circle is needed on either branch.

Step 5 — Recognise the closed form.

For x<0x < 0: ∣x∣=−x|x| = -x, so ∣x∣+1=−x+1=1−x|x| + 1 = -x + 1 = 1 - x — matches the first piece exactly.

At x=0x = 0: ∣0∣+1=1|0| + 1 = 1 — matches the middle piece exactly.

For x>0x > 0: ∣x∣=x|x| = x, so ∣x∣+1=x+1|x| + 1 = x + 1 — matches the third piece exactly.

So for every real xx, f(x)=∣x∣+1f(x) = |x| + 1. The three-part definition is just a longer way of writing the familiar absolute-value graph shifted up by 11 unit.

Step 6 — Draw the graph. …

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.