Understanding the Concept of "y=mx+b

  • Thread starter Thread starter Imparcticle
  • Start date Start date
  • Tags Tags
    Algebra
AI Thread Summary
The discussion centers on understanding the equation y = mx + b, which represents a linear relationship where m is the slope (or steepness) of the line and b is the y-intercept, indicating where the line crosses the y-axis. Participants explain that the equation defines a straight line, with variations leading to different shapes like parabolas when additional terms are included. The reasoning behind the equation is that it captures the relationship between x and y in a linear form, where any straight line can be expressed as such. Additionally, the conversation touches on solving systems of equations and the implications of different outcomes, such as "no solution" or "infinite solutions," which relate to the slopes and y-intercepts of the lines involved. Overall, the thread emphasizes the foundational concepts of linear equations and their graphical interpretations.
Imparcticle
Messages
572
Reaction score
4
why does y equal mx+b? I know what this equations is for, how its used. But I don't understand the conceptual meaning of it...
 
Mathematics news on Phys.org
y = mx + b

is the equation for a line. It is different for different shapes (curves, etc. which you'll see eventually).

We'll start with a simple y = x

if you grab some graph paper and for each value of x plot its corresponding value of y (x=1, y=1; x=2, y=2; ...), you'll see that you have a slanted line going from the bottom left corner to the top right corner.

If you then put the 'm' in there... set it equal to two and replot. You'll see that the slope of the line (the "slantiness") has changed. In this case it has changed by a factor of two (x=1, y=2; x=2, y=4; ...)

If you then put the b in, and replot, you'll see that you have shifted the line up or down.

That's all there is to it!
 
so that's why y equals mx+b?
 
For a line, yes.
 
I'm not sure i get it.

[b(] :frown:
 
if y = mx + b
then m is the "steepness" of the line and "b" is where the line
cuts the y axis

Stating this more formally the y-intercept is b and the slope is m

so y =2x + 3
cuts the y= axis at the point (0,3) and has gradient (or slope) of m=2.
 
Originally posted by Damned charming :)
if y = mx + b
then m is the "steepness" of the line and "b" is where the line
cuts the y axis

Stating this more formally the y-intercept is b and the slope is m

so y =2x + 3
cuts the y= axis at the point (0,3) and has gradient (or slope) of m=2.

My inquiry concerns the reason WHY Y equals mx+b. As I stated on my first post, I understand what y=mx+b is used for.
 
The "why" is almost the same as the "how." It is that way because that's what works.

On the y-axis, the x coordinate is zero. So plugging into y = mx + b we get

y = 0x + b = b

so it's easy to see why the b is where it intersects the y-axis.

For the m part, you need to understand slope. There isn't much "why" other than "this is the slope required to connect points."

cookiemonster
 
One basic answer would be to say that lots of times y does NOT equal mx + b. You get the graph of a parabola instead of the graph of a staight line if you set y equal to ax^2 + bx + c, where a is a nonzero constant and b and c are constants. Does this make sense to you?
 
  • #10
Ok the easy part to explain that y-intercept = b
to find the y-intercept you notice that at the y intercept x=0
so if you sub in x= 0 into y = mx + b
you get y=m*0 + b
so y=b

As for the why slope =m you should notice if you increase x by one the formula y=mx+b means that y must increase by m so the slope is m
 
  • #11
I did once this on a classroom, and it may help you "get it".

Imagine people sitting in lines and rows on a big classroom. Assign the ceter of the room the row number 0 and line number 0, and have them memorize their coordinates.

Then, ask all people for which row = line to stand up. What do you get? (i.e., what is the shape formed by the people standing up?)

Have them sit down, and now ask people with
row = twice the line number
to stand up. Again, you get a *line*.

It turns out that all combinations of the type:

(row) = [ (something) times (line) ] plus (a number)

produce a straight line.

When you say that "y=mx+b", you are basically restricting your points to only those that have that kind of relationship (as opposed to having squares, square roots, trig functions, etc. on the relation between x and y).

IOW, any strainght line you choose in a plane will have coordinates such that, for some m and some b, the relation "y=mx+b" holds for each and all points on your selected line.

or, to say it in a different way,

The reason y[/color] is equal to mx+b[/color] in a straight line is that any further complication on the right hand side (the "mx+b" part) would NOT "produce" a straight line.
 
  • #12
Think of 'y = mx + b' as a processor. You stick values in and they become changed. That's what a function is. This one happens to be f(x) = mx+b. That means you stick x in, and it comes out as mx+b.

The graph is the set of all inputs and their corresponding outputs. For that function, this looks like a line. The reason 'y' is equal to 'mx+b' is because you are plotting the value of that function on the y-axis.
 
  • #13
The y-intercept has already been shown by some other people, so ill just forget that.

For simplicity reasons, let's pretend that a line pass through the origin (b=0). Then you have the equation y=mx. With out the B in there it is easy to see that “m” is the ratio of x to y. So if there is more “y” than “x” in a linear function, then m would be a small number over a big number (i.e. less x per y). Draw this graph down, y=3x, Then draw a three by three square starting at the origin, and ending at (3,3). Notice there is three times as much Y as there is X in that box. You can draw a square box in the same manner, in any direction (as long as that direction includes the line), for any distance, and as long as one of the corners of the box is touching the line the box will have the same ratio of X to Y. That’s why M tells us the slope. Does this help at all?

P.S. my graph attached is pretty bad, all I have on this computer is mspaint.
 
  • #14
Also this may help. The “y =” part of y=m+b is only there because we have isolated (solved for) y. A lot of times it’s easier to write a line like this: (Y - Y_1) = M(X - X_1)
 
Last edited:
  • #15
SquareItSalamander, realize that we could plot this function f(x) = mx+b on different axes, let's say the p-axis and the q-axis. Then the equation would become p = mq+b.

I think this, along with my previous post, answers your original question.
 
  • #16
Thank you guys!
Arhkron: your explanation is very good! thank you!


Also this may help. The “y =” part of y=m+b is only there because we have isolated (solved for) y. A lot of times it’s easier to write a line like this: (Y - Y_1) = M(X - X_1)

JonF: GROOVY! I believe that's a wonderful example.

yes vertigo, that answers my question just fine.

I have another though:

When finding the intersection of two(or more) lines on a graph, you could do it multiple ways: graphing the equations of the lines and finding their intersection that way, substitution method, and addition method. These seem to be completely distinct ways of calculation. Yet, you arrive at the same answer. WHY? What is the logic behind that?
 
  • #17
They all get the same answers because they are actually all doing the same things.


When you solve multivariable equations, what you are really doing is asking: When are these two equations both true. The answer graphically is where they cross. Algebraically it is where they both can have the same Y and X values. (which are really just different ways of saying the same thing)

Let’s say you have two equations y= x and y= -x.

You could graph these, and see where both equations are true, that’s where they cross. The both have a possible X and Y values there.

You could do “addition” as you put it, but what you are really doing is adding equal constants to an equation. Think of it like this. Our first equation is y=x. That means y and x are the same. Also we know that you can add things that are the same to both sides of an equation, and that equation will still be true. For example, when you have x - 4=10, you add 4 to each side giving you x – 4 + 4= 10 + 4. This is really the same thing you do when you do the addition you are talking about, since y = x you can add y to one side of the equation and x to other side of the equation y = -x.

Substitution works on the same principles! When you substitute, what you are doing is figuring what x equals in relation to y (or you could figure out what y equals in relation to x). Then you plug that into the other equation to see where that ratio of x to y holds true for it also.

You say, “These seem to be completely distinct ways of calculation”. You are right, they are distinct but they are really all the same thing just dressed up in different ways.
 
  • #18
This is pretty much a repeat of JonF post, but the different wording may help.

The difference between algebraic methods (substitution, addition) is basically a matter of order. If you "follow" carefully what you do to each variable, you can see that, in the end, the same operations were performed (actually, once you finish solving for each, what remains is precisely the "trace" of the operations that were needed).

On the other hand, the agreement between the algebraic and the geometrical methods has a more interesting root: the map we do between (x,y) pairs[/color] and points in the cartesian plane[/color] is a one-to-one correspondence, and this implies another correspondance between equations[/color] and curves or lines[/color].

Does the pair of numbers (x,y) satisfy this equation?[/color]
is the same as asking
does the point in position (x,y) belong to such curve?[/color]

Basically
pairs of numbers[/color] --> points[/color]
equations[/color] --> curves and lines[/color]
does pair (x,y) satisfy such eqn?[/color] --> is this point in that curve?[/color]
does pair (x,y) satisfy both eqns simultaneously?[/color] --> is this point in those two curves simultaneously?[/color]
 
  • #19
I see. I'll work out a few problems myself and consider your explanations. Thanks again.

Another question:
When you are calculating a linear equation say in the substitution method, sometimes you can get a "no solution" or "infinite solution" answer when your answer reads as follows:
3=0 3=3
(no solution) (infinite solutions)

Exactly what do these numerical values represent? the slope? b? y? x?

My guess is that it represents the equivalence of y and the slope or x.
 
  • #20
When you solve linear equations for two lines with substitution and get something like

3=3, that simply means: Graphically that are both the same line, or algebraically that for any X both equations will have the same Y value.

3=0 would mean: Graphically that they are parallel lines, or algebraically that there is no x that will give the same y for both equations.
 
  • #21
ah, does that not have anything to do with slope?
 
  • #22
For straight lines (i.e. of the form y = mx+b), the two lines must have the same slope in order to have no solution or infinitely many solutions. If the y-intercept (b) is the same, then there will be infinitely many solutions because the lines are exactly on top of each other. If the y-intercept is different, then there will be no solutions because they are parallel and will never intersect.

Two lines with the same slope will be parallel.

Plot some lines with the same slope and various y-intercepts to see.

cookiemonster
 
Last edited:
  • #23
True to my words,

I see. I'll work out a few problems myself and consider your explanations.

I have worked out (well almost) a "linear" equation of sorts. I have a math poster project that I'm working on. I'm supposed to choose a problem and work it out all three different ways (substitution, graphing, addition). I chose a problem that's supposed to be challenging. I got the hang of it for a bit, but got totally lost.
Here it is:

The perimeter of a rectangle is 48 meters. The width of the rectangle is 2 more than half the length. Find the length and the width.

my work:
2L + 2w = 48
1/2L + 2 = w

SUBSTITUTION:

2L + 2w = 48, w = 1/2L + 2
2L + 2(1/2L + 2)=48
2L + L + 4 = 48
3L + 4 = 48
3L=44
L= 14 2/3

2L + 2w = 48
2(14 2/3) + 2w = 48
28 2/3 + 2w = 48
2w=20 2/3 ---> do I convert 48 - 28 2/3 into mixed fractions before subtracting?

Anyway, I have to do the substitution method even when I do the addition method, right?
 
  • #24
At the steps

3L = 44
L = 14 2/3

most of us would just leave L as

L = 44/3

which answers your later question about mixed fractions.

As for doing the substitution method even when doing the addition method, you have to do it in the sense that it's the same thing, but the process is different. I think that point has been covered already, though.

Call

2l + 2w = 48

equation (1) and

l/2 + 2 = w

equation (2).

Multiply (2) by 4 to get

2l + 8 = 4w

and then subtract equation (1) from equation (2) in order to get rid of the l variable. Notice how the 2l cancels out the 2l and all you have left are w's. Once you solve for w, multiply equation (1) by 2 and subtract it from equation (1) in order to eliminate the w's. Then solve for l.

cookiemonster
 
  • #25
funky graphing problem here...

I'm graphing a problem for that algebra poster. (now I'm doing another problem)

the slope is 1/-1. The run can't go into the left quadrant, can it? I'm sure it could, but I think my algebra teacher says otherwise...she may have meant something else. She's too smart to make an error like that. So could you please explain it to me? can it go into the left quadrant or not?
 
  • #26
Hold on here. Let's get some terminology straight.

Quadrant means splitting the graph into four different regions based on the coordinate axes (the x- and y-axes). The positive x and y quadrant (I), the negative x and positive y quadrant (II), the negative x and negative y quadrant (III), and the positive x and negative y quadrant (IV).

Which do you mean by "left?" Are you asking if the x value can be negative? And is the slope 1 divided by -1 (i.e. -1), or is that the slope of two different lines, one with slope 1 and the other with slope -1?

cookiemonster
 
  • #27
OH! This is confusing! When I graph x+y=26.4 and 5y=x, the intersection point doesn't match my substitution answer. the substitution answer I got is 22,4.4
did i do something wrong?
 
  • #28
cookiemonster said:
Hold on here. Let's get some terminology straight.

Quadrant means splitting the graph into four different regions based on the coordinate axes (the x- and y-axes). The positive x and y quadrant (I), the negative x and positive y quadrant (II), the negative x and negative y quadrant (III), and the positive x and negative y quadrant (IV).

Which do you mean by "left?" Are you asking if the x value can be negative? And is the slope 1 divided by -1 (i.e. -1), or is that the slope of two different lines, one with slope 1 and the other with slope -1?

cookiemonster


here is the equation:

y=1/-1x + 26.4

the slope--run---is negative. sorry about not being specific.
 
  • #29
(22,4.4) is the correct intersection point. You probably made a mistake in graphing them.

cookiemonster
 
  • #30
y = 1/(-1)*x + 26.4

simplifies to

y = (-1)x + 26.4

which is in the form y = mx+b, so treat it like you treated any others.

I'm not really sure what you're asking by "the slope can't go into the left quadrant."

cookiemonster
 
  • #31
Okay...

What I meant was, the line the slope was describing cannot go into the 2nd quadrant.
true?
 
  • #32
Sure it can.

x = -5, y = 21.4

(-5,21.4) is in the second quadrant.

Here's a question, though. Can this line ever go into the third quadrant?

cookiemonster
 
  • #33
okay, I got the graph right. I sort of cheated though.
Thank you cookiemonster.
 
  • #34
cookiemonster said:
Sure it can.

x = -5, y = 21.4

(-5,21.4) is in the second quadrant.

Here's a question, though. Can this line ever go into the third quadrant?

cookiemonster

according to my graph, it can only go into the 4th quad. Did you graph it? I could be wrong u know.
 
  • #35
Now I'm doing the addition method. (The last part of the poster)

x+y=26.4
5y=x

Should you isolate the y intercept in 5y=x into the form y-mx=b?
 
  • #36
how do you edit posts? When I press "edit" it asks me why I want to delete the post.

About my recently aforementioned inquiry (on my last post), if you did infact convert 5y=x into the form y-mx=b, you'd get 5y-x=0. When you add it with x + y=26.4,

x+y=26.4
+ -x+5y=0 the x's cancel out. so I guess it okay to convert it.
-------------
0 + 6y=26.4
y= 4.4

YES! It correct right? (the way I did it?)
 
  • #37
Correct.

And the line y = -x + 26.4 only passes through the first, second, and fourth quadrants. This brings up an interesting question. What is the maximum and minimum number of quadrants a line can pass through?

And if you want to edit, just hit the edit button and type the changes into the box below the Delete this Message box.

cookiemonster
 
  • #38
oh, you come up with marvelous questions.

The maximum number (I would guess) is 3. This can only be true for a straight line.
The minimum number, (I would guess) is 1. This can only be true for all forms of lines, not neccesarily linear.

Oh boy, was that conjecture even close to being right?
 
  • #39
Well, once you bring non-straight lines into it, everything changes and you can get functions that are in no quadrants and functions that are in all quadrants!

But what about for a straight line of the form y = mx + b? Don't consider the lines y = 0 and x = 0 (the coordinate axes), they just complicate things.

cookiemonster
 
  • #40
I still say 3.

Um, I'm doing some algebra homework and I need help:

"Sunshine Trucks Rentals rents a truck at a daily rate of 57.99 plus $.48 per mile. City Rentals rent the same size truck at $58.95 plus $.46 per mile. For what mileage is the cost the same?"

I know I have to set them to be equal, so here's what I've got:

57.99 + .48m = 58.95 + 46m


Is that the write equation?
 
Last edited:
  • #41
It's almost the "write" (oops!) equation. You're missing the decimal on the .46m.

And yes, a straight line can be in at most three quadrants. How about the minimum number?

cookiemonster
 
  • #42
a minimum number of what?
 
  • #43
What is the minimum number of quadrants of the plane a line can be in?
 
  • #44
3? :confused:
 
  • #45
Try a simpler line. =] It can be in fewer than three.

cookiemonster
 
  • #46
1?

:rolleyes:
 
  • #47
Now you're just picking numbers out of a hat. =\

What's the equation of a line that is in only one quadrant?

cookiemonster
 
  • #48
Lol!

dude!

All I know for a line is y=mx+b.
 
  • #49
C'mon, c'mon, let's think about what that means a bit!

Let's start with x. We know that x can (for a non-vertical line) take on any value between negative infinity and infinity, right? So that gives us three possible answers right there:

2 quadrants, the positive and negative x versions of either a positive y or a negative y. That means it can be in quadrants I and II or III and IV. Can you think of a line that's like this?

3 quadrants, like quadrants I, II, and III or quadrants I, II, and IV, etc. You already have an example of a line like this, right?

4 quadrants. We already know this can't happen.

So it's either 2 quadrants or 3. So can you find a line that's only in two quadrants?

Here's a hint, find a line that's in only quadrants I and II. What would the slope of such a line have to be?

cookiemonster
 
  • #50
OMG!

Doesn't the slope vary?

THE ANSWER IS 2!

hey cookiemonster, I'd like to hear (read) your comments on my stem cell research essay. I posted it in the thread "Morals" in General Philosophy.
 
Back
Top