Questions: Sketch the graph of g(x) = - x + 2 if x < 2 - -4 if x ≥ 2

Sketch the graph of g(x) = 
- x + 2 if x < 2 
- -4 if x ≥ 2
Transcript text: (6) Sketch the graph of g(x) = \begin{cases} x + 2 & \text{if } x < 2 \\ -4 & \text{if } x \geq 2 \end{cases}
failed

Solution

failed
failed

Solution Steps

Step 1: Understand the Piecewise Function

The given function is a piecewise function defined as: \[ g(x) = \begin{cases} -x + 2 & \text{if } x \leq 2 \\ -4 & \text{if } x > 2 \end{cases} \]

Step 2: Graph the First Piece of the Function

For \( x \leq 2 \), the function is \( g(x) = -x + 2 \). This is a linear function with a slope of -1 and a y-intercept of 2.

  • When \( x = 2 \), \( g(2) = -2 + 2 = 0 \).
  • When \( x = 0 \), \( g(0) = -0 + 2 = 2 \).
  • When \( x = -2 \), \( g(-2) = -(-2) + 2 = 4 \).

Plot these points and draw a line through them, extending to the left.

Step 3: Graph the Second Piece of the Function

For \( x > 2 \), the function is \( g(x) = -4 \). This is a constant function.

  • For any \( x > 2 \), \( g(x) = -4 \).

Draw a horizontal line at \( y = -4 \) starting from \( x = 2 \) and extending to the right.

Final Answer

The graph of the piecewise function \( g(x) \) is as follows:

  1. A line with a slope of -1 starting from \( x = 2 \) and extending to the left.
  2. A horizontal line at \( y = -4 \) starting from \( x = 2 \) and extending to the right.

Here is the graph:

Graph of g(x)

Was this solution helpful?
failed
Unhelpful
failed
Helpful