If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

### Course: Class 9 (Old)>Unit 4

Lesson 2: Graph of a linear equation in two variables

# Graphing a linear equation: y=2x+7

Learn how to create a graph of the linear equation y = 2x + 7. Created by Sal Khan and CK-12 Foundation.

## Want to join the conversation?

• how does one graph a line if y=x or x=y?
• As y=x then coordinates will also be same. So all the points where y and x lie for this equation will have the abscissa same as the ordinate. For example:- (0.0);(1,1);(-1,-1) etc.
Then connect the dots and you get the line.
(1 vote)
• Does the equation always stay the same?
• No, it will be different for every situation. Like if you got two oranges for five dollars.
y= 2(x/5) where y is oranges and x is the amount of money you had.. Say you had 20 dollars, the equation would become y=2(20/5) which equals y=2(4) which equals y=8 , so you could get 8 oranges with 20 dollars. That was just a simple example.
• how do you graph an equation like y=x+4
• You basically find the y intercept, which is 4 because of the +4 in the equation. y=x means that for every x you move across, you move y (one up).
I hope that helps!
• I am a little confused about how to understand this subject?.
• how do you know how to start off when you graph.
• Either you can choose where to start depending on your graph, or you do it based on the question given.
• can explain working out the gardient of a straight line
• you need to have a question for to teach you that. but simply you need two points (coordinates of two points) from the line ,

the Gradient is the difference of x coordinates divided by the y coordinates.
let say you got coordinates of two points as ( x1 , y1 ) and ( x2 , y2)

Gradient of it is = ( x1 - x2 ) / ( y1 - y2 )
• What if there is an absolute nubmer in the problem (i.e. "y = |x| +7"
(1 vote)
• If there is an absolute value around the x term, the graph is no longer linear. This graph will be a v-shaped. It would have a y-intercept at 7. If you get stuck, you can always "t-table" it.
• what is the orderd pair (-4,6)a solution orf the equation 3y-2x=20
• -4 is x and 6 it y plug those in to your equation :)
and see if it is a solution or not a solution