Solveeit Logo

Question

Question: How do you graph \(y = x - 7\) by plotting points?...

How do you graph y=x7y = x - 7 by plotting points?

Explanation

Solution

We have to plot a linear equation in two variables on the graph. The value of yy is depending on xx. The graph of such an equation is a straight line and we need a minimum of two points to draw a straight line. We can get these two points by assuming any values of xx and getting corresponding values of yy.

Complete step by step solution:
We have to plot y=x7y = x - 7 on the graph. The given equation is an equation of a straight line. For plotting a straight line we need at least two points. This we can get by assuming any values of xx and getting corresponding values of yy.
We can assume x=0x = 0.
So when x=0x = 0,
y=x7=07=7y = x - 7 = 0 - 7 = - 7
Thus we get one point as (0,7)(0,{\kern 1pt} {\kern 1pt} {\kern 1pt} - 7) which satisfies the equation.
Similarly we can assume another value of xx, let us say x=5x = 5.
So when x=5x = 5,
y=x7=57=2y = x - 7 = 5 - 7 = - 2
Thus we get another point as (5,2)(5,{\kern 1pt} {\kern 1pt} {\kern 1pt} - 2) which satisfies the equation.
We got two points using which we will plot our graph. On a graph plane we plot the two points and draw a straight line passing through these two points, extending both sides, as shown in the graph below.

The resulting line shown in blue in the graph is the plotted graph of the equation y=x7y = x - 7.

Note:
Although we need only two points for plotting the equation, we can find any number of points to plot the graph. Also the choice of value of xx to find the points will not affect the graph. To show this we can find one more point and see whether this point lies on the plotted graph.
Let us assume x=1x = - 1. Then y=x7=17=8y = x - 7 = - 1 - 7 = - 8
We get the third point as (1,8)( - 1,{\kern 1pt} {\kern 1pt} {\kern 1pt} - 8)
In the plotted graph we can see that the line is passing through (1,8)( - 1,{\kern 1pt} {\kern 1pt} {\kern 1pt} - 8) also.