Mark the intercept and connect them with a straight line

##y=1/2x+2## is the equation of a straight line. The easiest way to graph a function like this is to find the intercepts and draw a line through them.

An intercept is a point in the line where one of the two coordinates is 0. So the y-intercept would be a point on the line where ##x=0## and the x-intercept is a point in the line where ##y=0##. Using the equation, we can figure out the intercepts as follows :

##y=1/2x+2## To find the x-intercept, set ##x## to 0. Thus, ##y=1/2xx(0)+2## Or, ##y=2##. In other words, our y-intercept is ##(0,2)##. Similarly, set ##y## to 0 to find the x-intercept.

##0=1/2x+2## Or, ##1/2x=-2## ##x=-4##

Now we have two points on the line ##(0,2)## and ##(-4,0)##. All that remains is to mark them on the graph and draw a line connecting the two. The resulting graph should look like the following : graph{y=1/2x+2 [-5.375, 4.625, -1.94, 3.06]}