SOLVER7 Study. Nothing Else.
Chapter 2 Miscellaneous Examples Q22

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

CBSE Class 11 Maths · Relations and Functions

Solution

👶 Simple Explanation

Simple Explanation

Imagine a road that changes its rule depending on which side of a signpost you are on. To the left of the signpost, the road slopes one way; to the right, it slopes the other way. Here, the signpost is at \( x = 0 \), and the function behaves differently on each side. Both sides meet at the point \( (0, 1) \), making a V-shape, just like the bottom of the letter V. Each side of the V is a straight line going upward as you move away from the middle.

Answer: The graph is a V-shape with vertex at \( (0, 1) \). The left arm is the line \( f(x) = 1 - x \) for \( x < 0 \) passing through \( (-1, 2) \) and \( (-2, 3) \); the right arm is the line \( f(x) = x + 1 \) for \( x > 0 \) passing through \( (1, 2) \) and \( (2, 3) \); and the point \( (0, 1) \) is the vertex where the two arms meet.

📖 Graph of a Piecewise-Defined Function

Detailed Explanation

This is a piecewise-defined function, meaning the rule for finding \( f(x) \) changes depending on which interval the input \( x \) belongs to. Here there are three pieces: one rule for negative \( x \), one single point at \( x = 0 \), and one rule for positive \( x \). To draw the graph, we treat each piece as a separate straight line and plot only the portion of that line valid on its interval. Both \( 1 - x \) and \( x + 1 \) are linear (degree one), so each piece is a straight line. Looking at the figure, the left branch \( f(x) = 1 - x \) slopes downward from left to right for negative \( x \), the right branch \( f(x) = x + 1 \) slopes upward for positive \( x \), and both meet at the point \( (0, 1) \), forming a V-shape.

Formula Used

For \( x < 0 \): \( f(x) = 1 - x \). For \( x = 0 \): \( f(x) = 1 \). For \( x > 0 \): \( f(x) = x + 1 \). A line through two points is enough to draw each linear piece.

Solution

  1. Step 1: Understand the three pieces. The function uses \( f(x) = 1 - x \) only when \( x \) is negative, the single value \( f(0) = 1 \) at the origin's height, and \( f(x) = x + 1 \) only when \( x \) is positive. We will plot each piece over its own set of \( x \)-values.
  2. Step 2: Make a table for the left piece \( f(x) = 1 - x \), using \( x < 0 \). Take \( x = -1 \): \( f(-1) = 1 - (-1) = 2 \). Take \( x = -2 \): \( f(-2) = 1 - (-2) = 3 \). As \( x \) approaches \( 0 \) from the left, \( f(x) \) approaches \( 1 - 0 = 1 \). So this piece passes through \( (-1, 2) \) and \( (-2, 3) \) and heads toward \( (0, 1) \).
  3. Step 3: Make a table for the right piece \( f(x) = x + 1 \), using \( x > 0 \). Take \( x = 1 \): \( f(1) = 1 + 1 = 2 \). Take \( x = 2 \): \( f(2) = 2 + 1 = 3 \). As \( x \) approaches \( 0 \) from the right, \( f(x) \) approaches \( 0 + 1 = 1 \). So this piece passes through \( (1, 2) \) and \( (2, 3) \) and heads toward \( (0, 1) \).
  4. Step 4: Plot the value at \( x = 0 \). Here \( f(0) = 1 \), so mark the point \( (0, 1) \). Conveniently, both linear pieces also approach the height \( 1 \) at \( x = 0 \), so the point \( (0, 1) \) neatly joins the two branches.
  5. Step 5: Draw the graph. For \( x < 0 \), draw the straight line through \( (-2, 3) \), \( (-1, 2) \) sloping down to \( (0, 1) \). For \( x > 0 \), draw the straight line through \( (0, 1) \), \( (1, 2) \), \( (2, 3) \) sloping up. Mark the joining point \( (0, 1) \). The two rays form a V-shape opening upward with vertex at \( (0, 1) \), exactly as in Fig 2.17.

Final Answer

The graph is a V-shape with vertex at \( (0, 1) \). The left arm is the line \( f(x) = 1 - x \) for \( x < 0 \) passing through \( (-1, 2) \) and \( (-2, 3) \); the right arm is the line \( f(x) = x + 1 \) for \( x > 0 \) passing through \( (1, 2) \) and \( (2, 3) \); and the point \( (0, 1) \) is the vertex where the two arms meet.

Common Mistake

A common mistake is to draw each straight line over the entire \( x \)-axis instead of restricting it to its interval. For example, drawing \( f(x) = x + 1 \) for negative \( x \) as well, or drawing \( f(x) = 1 - x \) for positive \( x \). Each formula must be used only on its stated domain, so the left line is drawn only for \( x < 0 \) and the right line only for \( x > 0 \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the three separate pieces of the function and their domains. The rule \( f(x) = 1 - x \) applies only when \( x < 0 \); the isolated rule \( f(0) = 1 \) applies exactly at \( x = 0 \); and the rule \( f(x) = x + 1 \) applies only when \( x > 0 \). — Reason: Recognising where each rule is valid prevents you from drawing a piece outside its allowed interval, which would give the wrong graph.
  2. Step 2: Compute two points on the left branch using \( f(x) = 1 - x \) for \( x < 0 \). Substituting \( x = -1 \): \( f(-1) = 1 - (-1) = 2 \), giving the point \( (-1, 2) \). Substituting \( x = -2 \): \( f(-2) = 1 - (-2) = 3 \), giving the point \( (-2, 3) \). — Reason: Two points completely determine a straight line, so these two coordinates are enough to draw the entire left branch accurately.
  3. Step 3: Check the behaviour of the left branch as \( x \) approaches \( 0 \) from the left. As \( x \to 0^{-} \), \( f(x) = 1 - x \to 1 - 0 = 1 \). So the left branch tends toward the point \( (0, 1) \) but does not include it (since this piece is only for \( x < 0 \)). — Reason: This tells us where to stop drawing the left branch and confirms it connects visually with the vertex.
  4. Step 4: Plot the isolated vertex point. At \( x = 0 \), the function explicitly gives \( f(0) = 1 \), so the point \( (0, 1) \) belongs to the graph. — Reason: The piecewise definition lists \( f(0) = 1 \) as a separate rule, so this single point must be marked on the graph to make it complete.
  5. Step 5: Compute two points on the right branch using \( f(x) = x + 1 \) for \( x > 0 \). Substituting \( x = 1 \): \( f(1) = 1 + 1 = 2 \), giving the point \( (1, 2) \). Substituting \( x = 2 \): \( f(2) = 2 + 1 = 3 \), giving the point \( (2, 3) \). — Reason: As with the left branch, two points are sufficient to pin down the straight line for the right branch.
  6. Step 6: Check the behaviour of the right branch as \( x \) approaches \( 0 \) from the right. As \( x \to 0^{+} \), \( f(x) = x + 1 \to 0 + 1 = 1 \). So the right branch also tends toward \( (0, 1) \), again not including it as part of this piece (since this piece is only for \( x > 0 \)). — Reason: This confirms the right branch also meets at the vertex \( (0, 1) \), completing the V-shape.
  7. Step 7: Assemble the full graph. Draw the ray for \( f(x) = 1 - x \) through \( (-2, 3) \) and \( (-1, 2) \), heading toward but not including \( (0, 1) \). Mark the filled dot at \( (0, 1) \). Draw the ray for \( f(x) = x + 1 \) through \( (1, 2) \) and \( (2, 3) \), starting just to the right of but not including \( (0, 1) \). Together, the left branch has a negative slope (falling left to right) and the right branch has a positive slope (rising left to right), forming a V-shape with vertex at \( (0, 1) \). — Reason: Combining all three pieces into one picture gives the complete graph of the piecewise function.

Final Answer

The graph is a V-shape with vertex at \( (0, 1) \). The left arm is the line \( f(x) = 1 - x \) for \( x < 0 \) passing through \( (-1, 2) \) and \( (-2, 3) \); the right arm is the line \( f(x) = x + 1 \) for \( x > 0 \) passing through \( (1, 2) \) and \( (2, 3) \); and the point \( (0, 1) \) is the vertex where the two arms meet.

Common Mistake

One common mistake: students apply the wrong rule outside its domain — for example, using \( f(x) = x + 1 \) for negative values of \( x \) — which produces a single straight line instead of the correct V-shaped graph.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Left piece: \( f(x) = 1 - x \) for \( x < 0 \). At \( x = -1 \): \( f(-1) = 1 - (-1) = 2 \). At \( x = -2 \): \( f(-2) = 1 - (-2) = 3 \). Points: \( (-1, 2) \) and \( (-2, 3) \).
  2. Step 2: Vertex: \( f(0) = 1 \), giving point \( (0, 1) \).
  3. Step 3: Right piece: \( f(x) = x + 1 \) for \( x > 0 \). At \( x = 1 \): \( f(1) = 1 + 1 = 2 \). At \( x = 2 \): \( f(2) = 2 + 1 = 3 \). Points: \( (1, 2) \) and \( (2, 3) \).
  4. Step 4: Both arms meet at \( (0, 1) \), forming a V-shape. Left arm slope: \( -1 \); right arm slope: \( +1 \).

Answer: The graph is a V-shape with vertex at \( (0, 1) \). The left arm is the line \( f(x) = 1 - x \) for \( x < 0 \) passing through \( (-1, 2) \) and \( (-2, 3) \); the right arm is the line \( f(x) = x + 1 \) for \( x > 0 \) passing through \( (1, 2) \) and \( (2, 3) \); and the point \( (0, 1) \) is the vertex where the two arms meet.

➕ More Examples

More Examples

Example 1

Question: A function \( g \) is defined by \[ g(x) = \begin{cases} x - 2, & x < 0 \\ 0, & x = 0 \\ x^2, & x > 0 \end{cases} \] Describe the key features of each piece and sketch the graph of \( g(x) \).

Solution: We analyse each piece of the function separately. Piece 1: For \( x < 0 \), the rule is \( g(x) = x - 2 \). This is a straight line with slope 1 and y-intercept \( -2 \), drawn only for negative values of \( x \). As \( x \to 0^{-} \), \( g(x) \to -2 \). Since \( x = 0 \) is not included in this piece, we place an open circle at the point \( (0, -2) \). Sample points for Piece 1: \( x = -3 \): \( g(-3) = -3 - 2 = -5 \), giving the point \( (-3, -5) \). \( x = -1 \): \( g(-1) = -1 - 2 = -3 \), giving the point \( (-1, -3) \). Piece 2: At \( x = 0 \) exactly, \( g(0) = 0 \). We place a solid dot at \( (0, 0) \). Note that neither piece 1 nor piece 3 covers this point, so the solid dot stands alone. Piece 3: For \( x > 0 \), the rule is \( g(x) = x^2 \). This is the right half of a parabola opening upward, starting just to the right of the origin. As \( x \to 0^{+} \), \( g(x) \to 0 \). Since \( x = 0 \) is not in this piece, we place an open circle at \( (0, 0) \). Sample points for Piece 3: \( x = 1 \): \( g(1) = 1^2 = 1 \), giving the point \( (1, 1) \). \( x = 2 \): \( g(2) = 2^2 = 4 \), giving the point \( (2, 4) \). \( x = 3 \): \( g(3) = 3^2 = 9 \), giving the point \( (3, 9) \). Graphing instructions: 1. Draw the ray of the line \( y = x - 2 \) for \( x < 0 \), ending with an open circle at \( (0, -2) \). 2. Plot the isolated solid dot at \( (0, 0) \). 3. Draw the parabola \( y = x^2 \) for \( x > 0 \), starting with an open circle at \( (0, 0) \) and curving upward to the right. Key observations: The domain of \( g \) is all real numbers, i.e., \( \mathbb{R} \). There is a jump discontinuity at \( x = 0 \) because the left-hand limit is \( -2 \), the right-hand limit is \( 0 \), and the actual value is \( g(0) = 0 \).

Answer: The graph consists of three parts: a ray along \( y = x - 2 \) (open circle at \( (0,-2) \)) for \( x < 0 \); an isolated solid dot at \( (0, 0) \); and the parabola \( y = x^2 \) (open circle at \( (0,0) \)) for \( x > 0 \). The domain is \( \mathbb{R} \) and there is a jump discontinuity at \( x = 0 \).

Example 2

Question: A function \( h \) is defined by \[ h(x) = \begin{cases} 2x + 3, & x < -1 \\ 1, & -1 \le x \le 1 \\ 3 - x, & x > 1 \end{cases} \] Find the value of \( h(-3) \), \( h(0) \), and \( h(4) \). Also describe how to draw the graph of \( h(x) \).

Solution: Step 1: Identify the correct piece for each input. For \( h(-3) \): Since \( -3 < -1 \), use piece 1: \( h(x) = 2x + 3 \). \[ h(-3) = 2(-3) + 3 = -6 + 3 = -3 \] For \( h(0) \): Since \( -1 \le 0 \le 1 \), use piece 2: \( h(x) = 1 \). \[ h(0) = 1 \] For \( h(4) \): Since \( 4 > 1 \), use piece 3: \( h(x) = 3 - x \). \[ h(4) = 3 - 4 = -1 \] Step 2: Analyse each piece for graphing. Piece 1 — \( h(x) = 2x + 3 \) for \( x < -1 \): This is a line with slope 2. At the boundary \( x = -1 \), the value would be \( 2(-1)+3 = 1 \), but since \( x = -1 \) is not in this piece, place an open circle at \( (-1, 1) \). The ray extends to the left. Sample points: \( x = -3 \) gives \( h(-3) = -3 \), so plot \( (-3, -3) \). \( x = -2 \) gives \( h(-2) = 2(-2)+3 = -1 \), so plot \( (-2, -1) \). Piece 2 — \( h(x) = 1 \) for \( -1 \le x \le 1 \): This is a horizontal line segment at height 1. Both endpoints are included. At \( x = -1 \): \( h(-1) = 1 \), solid dot at \( (-1, 1) \). At \( x = 1 \): \( h(1) = 1 \), solid dot at \( (1, 1) \). Draw the horizontal segment connecting them. Notice that the open circle from Piece 1 at \( (-1, 1) \) is filled by the solid dot from Piece 2, so the function is continuous at \( x = -1 \). Piece 3 — \( h(x) = 3 - x \) for \( x > 1 \): This is a line with slope \( -1 \). At the boundary \( x = 1 \), the value would be \( 3 - 1 = 2 \), but since \( x = 1 \) is not in this piece, place an open circle at \( (1, 2) \). The solid dot at \( (1, 1) \) (from Piece 2) and the open circle at \( (1, 2) \) coexist, indicating a jump discontinuity at \( x = 1 \). Sample points: \( x = 2 \) gives \( h(2) = 1 \), plot \( (2, 1) \). \( x = 4 \) gives \( h(4) = -1 \), plot \( (4, -1) \). Step 3: Summary of graph features. The domain is all of \( \mathbb{R} \). The function is continuous at \( x = -1 \) (the pieces meet at \( (-1, 1) \)), but has a jump discontinuity at \( x = 1 \) (left value is 1, right limit is 2).

Answer: \( h(-3) = -3 \), \( h(0) = 1 \), \( h(4) = -1 \). The graph has a ray along \( y = 2x+3 \) (open circle at \( (-1,1) \)) for \( x < -1 \); a horizontal segment at \( y = 1 \) (solid dots at both ends) for \( -1 \le x \le 1 \); and a ray along \( y = 3-x \) (open circle at \( (1,2) \)) for \( x > 1 \). The function is continuous at \( x = -1 \) and has a jump discontinuity at \( x = 1 \).

🎯 Try a Similar Question

Try a Similar Question

Question: The function g is defined by \[ g(x) = \begin{cases} 2 - x, & x < 0 \\ 2, & x = 0 \\ x + 2, & x > 0 \end{cases} \] Draw the graph of \( g(x) \).

Solution

  1. Step 1: Identify the three pieces of the function: The function \( g \) is defined in three parts: - For \( x < 0 \): \( g(x) = 2 - x \) - At \( x = 0 \): \( g(0) = 2 \) - For \( x > 0 \): \( g(x) = x + 2 \) We handle each piece separately.
  2. Step 2: Analyse the left branch (x < 0): For \( x < 0 \), we use \( g(x) = 2 - x \). Compute a few values: At \( x = -1 \): \( g(-1) = 2 - (-1) = 3 \) At \( x = -2 \): \( g(-2) = 2 - (-2) = 4 \) At \( x = -3 \): \( g(-3) = 2 - (-3) = 5 \) As \( x \) approaches 0 from the left, \( g(x) \to 2 \). Since \( x = 0 \) is not included in this branch, we place an open circle at \( (0, 2) \) for this piece (though the actual point is defined separately).
  3. Step 3: Analyse the point x = 0: At exactly \( x = 0 \), the function is defined as \( g(0) = 2 \). This is a single isolated point, marked with a filled (closed) dot at \( (0, 2) \).
  4. Step 4: Analyse the right branch (x > 0): For \( x > 0 \), we use \( g(x) = x + 2 \). Compute a few values: At \( x = 1 \): \( g(1) = 1 + 2 = 3 \) At \( x = 2 \): \( g(2) = 2 + 2 = 4 \) At \( x = 3 \): \( g(3) = 3 + 2 = 5 \) As \( x \) approaches 0 from the right, \( g(x) \to 2 \). Since \( x = 0 \) is not included in this branch, we place an open circle at \( (0, 2) \) for this piece as well.
  5. Step 5: Describe the shape of the graph: Both branches meet near \( (0, 2) \) and move upward and away from it — left branch goes to the upper-left and right branch to the upper-right. The graph forms a V-shape with its vertex at \( (0, 2) \). Since both \( \lim_{x \to 0^-} g(x) = 2 \) and \( \lim_{x \to 0^+} g(x) = 2 \), and \( g(0) = 2 \), the function is continuous at \( x = 0 \) and there are no gaps or jumps.
  6. Step 6: Determine slope of each branch: Left branch \( g(x) = 2 - x \) has slope \( -1 \) (decreasing as \( x \) increases toward 0 from the left, so it rises as we move left). Right branch \( g(x) = x + 2 \) has slope \( +1 \) (increasing as \( x \) increases away from 0). Both branches have equal magnitudes of slope, confirming a symmetric V-shape about the y-axis, but shifted upward by 1 unit compared to the original question.

Answer: The graph is a V-shape with vertex at \( (0, 2) \). The left arm is the line \( g(x) = 2 - x \) for \( x < 0 \), passing through \( (-1, 3) \), \( (-2, 4) \); the right arm is the line \( g(x) = x + 2 \) for \( x > 0 \), passing through \( (1, 3) \), \( (2, 4) \); and the single point \( (0, 2) \) is the vertex where both arms meet. The function is continuous at every point, including \( x = 0 \).

Everything you get with Solver7

More questions in Relations and Functions