The graph of linear function `g` passes through the points `\left(2,\ -1\right)`and `\left(-2,\ 7\right),`as shown. What are the slope and y-intercept of the graph `g`?

1 answer

Given that the linear function g passes through the points (2,1) and (2,7), we can find the slope m and the y-intercept b of the equation g(x)=mx+b.

### Step 1: Calculate the Slope
The slope m of a line passing through two points (x1,y1) and (x2,y2) is given by:
m=y2y1x2x1

Given points:
(x1,y1)=(2,1)
(x2,y2)=(2,7)

Substitute the values:
m=7(1)22=7+122=84=2

The slope m is 2.

### Step 2: Find the Y-Intercept
The equation of the line in slope-intercept form is:
g(x)=mx+b

We substitute one of the given points, (x1,y1)=(2,1), and the slope m=2 to solve for b:
1=2(2)+b
1=4+b
b=1+4
b=3

The y-intercept b is 3.

### Summary
The slope of the graph is 2 and the y-intercept is 3.

Thus, the equation of the linear function g is:
g(x)=2x+3