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 \).