How To Solve Y=mx+b

How do you solve and graph a simple y=mx+b equation?

For example: y=5x+-6

I don't get how to graph any of it, and I don't get how to add/subtract/multiply/divide any of it.

Expert Answers

An illustration of the letter 'A' in a speech bubbles

We know the given eqaution y=mx+b represents a straight line with slope m and the y intercept b.

So now let us see how to graph the equation y=5x+(-6):

Putting x=0, we get y=-6 which implies one coordinate is (0,-6)

Now putting x=1, we get y=-1 which implies the coordinate is (1,-1)

Putting x=2, we get y=4. So the coordinate is (2,4)

Similarly we get coordinates by substituting different values for x.

Finally joining all these coordinate points we get a straight line as shown below:

Images:
This image has been Flagged as inappropriate Click to unflag
Image (1 of 1)
Approved by eNotes Editorial Team

Videos

An illustration of the letter 'A' in a speech bubbles

In your equation y=5x+(-6).  5 represents the slop (or steepness) of the line. (-6) represents where your line crosses the y-axis (vertical axis) often referred as the y-intercept.  Therefore, plot your y-intercept.  From your y-intercept count your slope. Since 5 means 5/1, from your y-intercept go up (positive 5) 5 and then right (positive) 1.  Connect the points and you'll have your graph of your line.

Approved by eNotes Editorial Team
An illustration of the letter 'A' in a speech bubbles

Graphing a linear equation written in slope-intercept form, y= mx+b is easy! Remember the structure of y=mx+b and that graphing it will always give you a straight line. 

 

**There are MANY ways to graph a linear equation. Using the slope and y-intercept (that I am about to show you) is the easiest.**

"b" represents the "y-intercept" of the line. This is where the line cross es the y-axis (the part of the coordinate grid that goes up and down).

"m" represents the "slope" of the line. This is rise/run. 

Let's say you're given the equation y = 2/3x + 4

The Steps:

1) Always start on the y-intercept (the number that is by itself and doesn't have "x" attached to it. If you are not given a y-intercept, start at 0. In this case, start by putting a dot on 4 on the y-axis.

2) Look at the slope, or the "m" (many times, it's the fraction. If you are not given a fraction, write the number attached to "x" over 1). 

3) Remember that slope represents rise/run. Since my slope is 2/3, I am going to start at the y-intercept of 4 and count UP 2 dashes, and OVER 3. 

4) Put another dot. Connect the two dots you just plotted with a line that extends throughout the entire coordinate grid.

5) Smile! You've just graphed a linear equation!

Approved by eNotes Editorial Team
An illustration of the letter 'A' in a speech bubbles

y = mx + b is the slope-intercept form of a line.

"m" is the slope

"b" is the y-intercept (the point where your line crosses the y-axis)

 

In your sample: y = 5x + 6

m = 5  (or 5/1)

b = 6

 

To graph the line, simply put at point at "6" on the y-axis.

The use the slope of 5 to find the next point (up 5 spaces, over one to the right).

Then sketch the line that passes through these two points.

 

Approved by eNotes Editorial Team
An illustration of the letter 'A' in a speech bubbles

You can solve the equation and graph it by the following steps.

 y = mx + b                                     y = 5x +6

Determine if the graph is going to be upward or downward by looking at the sign on the m. With the above equation, the 5 is positive. So, the graph is going to point upward.

Identify the slope and intercepts. 

With this equation, 5 represents m, which is the slope, and the y-intercept is (0,6), which is given by b, OR by plugging 0 in for x. Then, multiply 5 and 0 and add the 6.  The y-intercept is (0,6).  You would go to 0 on the coordinate plane, and up 6, and plot a point.  This is where the graph is going to cross/intersect the y-axis.

The x-intercept is calculated/computed when 0 is substituted for y and the opposite of 6, which is -6, is added to both sides; then, divide both sides by 5. So, the x-intercept is (-6/5,0) (you would go to -6/5,0 and make a point.  This is where the graph is going to cross/intersect the x-axis.

To graph the equation, you would plot the x- and y- intercepts and plot other points using the slope of 5/1 (rise/run).  Connect the points.

 

Approved by eNotes Editorial Team
An illustration of the letter 'A' in a speech bubbles

The first thing to do when looking at this problem is to take a close look at the equation y = 5x +-6.  This equation is in what is called "slope intercept form."  Slope intercept form is y = mx + b.  (This format is something you should remember.)  The letter "m" is the "slope" of the equation and the "b" is the "y-intercept."

If you were taking a standardized test, such as the ACT, that has multiple choices, I would have you approach the problem in this way as it may possibly save you time.  I would first look at the slope.  The slope of this equation is 5 which is positive.  Slope tells us in which direction the line will go and how steep it is.  Since the slope in this equation is positive, it means that a person would walk up the hill for this equation.  (The line would start lower on the left and look like a hill going up to the right.)  At this point, I would look at the multiple choice answers and it may be possible to pick the graph out with just this information (i.e. Which one(s) are going uphill?).  If not, it is usually possible, to at least eliminate a couple of "bad" answers.  

The next step would be to look at the "y-intercept."  This is the point where the line crosses the y-axis (up and down axis).  So, back to taking a standardized test, look at the answers and find the choices that go "uphill" and go through (the line touches) the point (0. -6).  This will usually be enough information to get your answer.

If you are not taking a multiple choice test and have to actually graph this equation, you should do the following.  Start at the y-intercept point because you are 100% confident that this point is on the line.  So, in this case, go over 0 (the first coordinate always goes right/left) and down 6 (the second coordinate always goes up/down with up being positive and down being negative).  Put a point at (0, -6).  

The slope of this equation is 5.  We always think about the slope as a fraction, however.  If there is not a fraction, make one by putting a fraction bar and a 1 under the number.  So, our slope would be 5/1.  From our point (0, -6) we will go over 1 to the right (bottom of slope is always left/right with positive to the right and negative to the left) and up t (top of slope is always up/down with positive up and negative down).  This should get us to point (1, -1).  Put a point here.  

Now, since you have two points of the line, you have enough to actually create the line.  Connect the two points and continue in both directions to the edges of your graph.  Remember to put an arrow on each end of the line to indicate that a line continues to infinity.  

If you like to have more points to create your line, just continue the process we followed to get to (1, -1).  The next point would be (2, 4).  This is not really necessary, though.

Approved by eNotes Editorial Team
An illustration of the letter 'A' in a speech bubbles

Any equation in y=mx+b form is as easy as counting and connecting the dots! 

For the equation y=5x+-6, you start with the constant.  That's the number without the x.  In this case, the number is -6.  Find that number on the y-axis, and make a dot on it. 

Now, you're ready for the slope.  That's the number before the x.  First, write it as a fraction.  Since 5 has no denominator, put a 1 under it.  For numbers that already are written as fractions, you don't have to do this step.

Starting with the dot you made on -6, count up (if the 5 were negative, you'd count down) 5 units on the graph.  You always count up (+) or down (-) for the numerator.  Then, count over (always go to the right) one.  Make a dot where you land.

Now, connect your dots!  Extend your line in both directions to the edges of the graph.

So...to summarize:  Make a dot on -6 on the y-axis. Starting there, count up 5 units and to the right one unit.  Make a dot there.  Draw a line that goes from one edge of the graph to the other that passes through your dots!  All Done!!

Approved by eNotes Editorial Team
An illustration of the letter 'A' in a speech bubbles

For any equation in the form y=mx+b, b is the y intercept. The point (0,b) is on the graph. From (0,b) use the slope m to find the next point. m is in the form of a/b where a is the change in y and b is the change in x. Plot the second point and draw a straight line.

Approved by eNotes Editorial Team
An illustration of the letter 'A' in a speech bubbles

Hey Shelly,

All of these answers are great, but unless you get a better conceptual understanding of the basic parts of a slope intercept equation you will continue to struggle with these equations in the future.  In y=mx+b the two parts that we focus on are m, which represents the slope or slant of the line, and b, which represents the y-intercept.

Let's start with b, the y-intercept. The y-intercept-b-, and more specifically the number that will be in the place of b in the actual equation you want to graph, represents a point on the y axis itself. Think of it like an interception in football. The quarterback throws the ball to his player, and the path of the ball is a line from the quarterback to his receiver. To intercept the ball, the defender from the opposing team has to cross that line between the quarterback and his intended receiver. This is like the y-intercept, or b, in our equation. It is the exact point where the line you graph will intersect with the y axis, or vertical axis.  When your equation is in slope intercept form, or y-intercept form if you prefer, you can quickly find that point by simply knowing where to look. First you have to be sure the equation is in slope intercept form, here is a quick guide. You can easily tell if an equation is in slope intercept form by looking for a couple of quick details: first, y has to be all by itself on 1 side of the equal sign; second, the x term will be first on the other side, followed by a constant (a number without a variable) that is being added or subtracted.Consider the following example:     actual equation y=2x+3

generic form y=mx+b

Notice how the parts line up. Positive 2 is where the m is located in the generic form, and  positive 3 is where the b is in the generic form. That means positive 3 is our y-intercept. To locate this on your graph, you simply find the positive 3 on the y axis, which will be up 3 places from the origin of the graph, or where the x and y axis intersect one another.  Put a dot there where you found the y- intercept. If the number in place of b were negative, say -3, then you would simply go down on the y axis 3 spaces from the origin.  Try looking at a few different slope intercept equations and just spot the y intercepts to get familiar and comfortable with this step, then proceed to the next part: Slope.

The 2 in our example represents the m, or slope of the line. Slope is rise over run, or change in y over change in x. More simply though, it is the slant of the line. Is the line steep, does it rise quickly, or is the line more flat? It is easier for us to use slope in the form of a fraction, so first let's change the 2 into its equivalent fraction, 2/1.  2/1 represents a rise of two (how far you go straight up from your y-intercept), and a run of 1(how far you move left or right from your y intercept).  If your slope is positive, you will count up and then to the right(or inversely down and to the left). If your slope is negative you will count up and to the left(or inversely down and to the right). Our slope is positive, so starting from your y-intercept of 3 you will count up 2 times, and then to the right 1 time. That should put you at the coordinates (5,1). Plot this point by putting a dot there, and then simply connect that point to your y-intercept point with a straight line. If you run out of room on your graph counting up for your slope, start over at your y-intercept and go down 2 and to the left 1. I hope this helps. Good Luck

Approved by eNotes Editorial Team
An illustration of the letter 'A' in a speech bubbles

There are two different ways to graph that equation.

1. You can use the slope and y-intercept of the line to graph it. The slope is the number that is in front of x (in your example 5 would be the slope). The slope will tell you the rise and run of the line. (In other words, how far up and over you will go from your y-intercept.)Your y-intercept is the number that is by itself (in your example, -6). On your graph, go to -6 on the y-axis. The -6 will be 6 down from the origin. Now from that point, use your slope to mark 2 more points. From -6 go up 5 and right 1, mark that point. From your new point, go up 5 and right 1, mark another point. Now you have 3 points to make a line.

2. You can also do a T-chart. You can pick random numbers to use for x. any numbers that you want to use will work fine. I usually use -1, 0, 1. Take your numbers and plug into the equation. For -1, I will do 5(-1) + -6 = -11. So that will make a point (-1, -11). For 0, I will do 5(0) + -6 = -6. So that will make the point (0, -6). For 1, I will do 5(1) + -6 = -1. That will make the point (1, -1). You have 3 points to make a line now.

Approved by eNotes Editorial Team

We’ll help your grades soar

Start your 48-hour free trial and unlock all the summaries, Q&A, and analyses you need to get better grades now.

  • 30,000+ book summaries
  • 20% study tools discount
  • Ad-free content
  • PDF downloads
  • 300,000+ answers
  • 5-star customer support
Start your 48-Hour Free Trial