Solveeit Logo

Question

Question: How do you graph the line \(y = - x\) ?...

How do you graph the line y=xy = - x ?

Explanation

Solution

We know the general equation of a straight line is y=mx+cy = mx + c where mm is the gradient and y=cy = c is the value where the line cuts the yy - axis. We know about the cartesian coordinates of points which is (x,y)(x,y) where xx is the abscissa and yy is the ordinate.

Complete step by step Solution:
Given that – line equation is y=xy = - x
Now we will put values of x=0,1,2,3......x = 0,1,2,3...... in above equation one by one and get the value of yy
Now we will put value x=0x = 0in y=xy = - x , we get y=0y = 0
Now we will put value x=1x = 1 in y=xy = - x , we get y=1y = - 1
Now we will put value x=2x = 2 in y=xy = - x , we get y=2y = - 2
Now we will put value x=3x = 3 in y=xy = - x , we get y=3y = - 3
Now we will put value x=4x = 4 in y=xy = - x , we get y=4y = - 4
We got enough points for representing a line of given linear equation y=xy = - x on the graph
Now we will put all point on the graph which we got by putting values of xx in equation y=xy = - x which are (0,0),(1,1),(2,2),(3,3),(4,4)(0,0),(1, - 1),(2, - 2),(3, - 3),(4, - 4)

The above graph is the required graph for the given line y=xy = - x

Note:
We know that general equation of line is y=mx+cy = mx + c we can solve above given equation y=xy = - x also by comparing it with y=mx+cy = mx + c then we will get m=1m = - 1 then this means that the slope of given line is the below of xaxisx - axis axis and right side of yaxisy - axis.