yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Slope and y intercept from equation


3m read
·Nov 11, 2024

What I'd like to do in this video is a few more examples recognizing the slope and y-intercept given an equation.

So let's start with something that we might already recognize: let's say we have something of the form (y = 5x + 3).

What is the slope and the y-intercept in this example here? Well, we've already talked about that we can have something in slope-intercept form where it has the form (y = mx + b), where (m) is the slope (which people use the letter (m) for the slope) times (x) plus the y-intercept (which people use the letter (b) for).

So if we just look at this, (m) is going to be the coefficient on (x) right over there. So (m = 5); that is the slope, and (b) is just going to be this constant term, (+3). So (b = 3); so this is your y-intercept.

So that's pretty straightforward. But let's see a few slightly more involved examples.

Let's say if we had the form (y = 5 + 3x). What is the slope and the y-intercept in this situation? Well, it might have taken you a second or two to realize how this earlier equation is different than the one I just wrote here.

It's not (5x); it's just (5), and this isn't (3); it's (3x). So if you want to write it in the same form as we have up there, you can just swap the (5) and the (3x). It doesn't matter what or which one comes first; you're just adding the two.

So you could rewrite it as (y = 3x + 5), and then it becomes a little bit clearer that our slope is (3) (the coefficient on the (x) term), and our y-intercept is (5).

Y-intercept: let's do another example.

Let's say that we have the equation (y = 12 - x). Pause this video and see if you can determine the slope and the y-intercept.

All right, so something similar is going on here that we had over here. The standard form slope-intercept form we're used to seeing the (x) term before the constant term, so we might want to do that over here.

So we could rewrite this as (y = -x + 12) (or negative (x + 12)). From this, you might immediately recognize, okay, my constant term when it's in this form—that's my (b); that is my y-intercept. So that's my y-intercept right over there.

But what's my slope? Well, the slope is the coefficient on the (x) term, but all you see is a negative here. What's the coefficient? Well, you could view (-x) as the same thing as (-1x). So your slope here is going to be (-1).

Let's do another example. Let's say that we had the equation (y = 5x). What's the slope and y-intercept there?

At first, you might say, "Hey, this looks nothing like what we have up here." This is only—I only have one term on the right-hand side of the equality sign here; I have two.

But you could just view this as (5x + 0), and then it might jump out at you that our y-intercept is (0), and our slope is the coefficient on the (x) term; it is equal to (5).

Let's do one more example. Let's say we had (y = -7). What's the slope and y-intercept there?

Well, once again, you might say, "Hey, this doesn't look like what we had up here. How do we figure out the slope or the y-intercept?"

Well, we could do a similar idea. We could say, "Hey, this is the same thing as (y = 0 \cdot x - 7)," and so now it looks just like what we have over here.

You might recognize that our y-intercept is (-7) (y-intercept is equal to (-7)), and our slope is the coefficient on the (x) term; it is equal to (0).

And that makes sense: for a given change in (x), you would expect zero change in (y) because (y) is always (-7) in this situation.

More Articles

View All
Ray Dalio: The Investing Opportunity of a Generation
Yes, crash was negative, right? One and a half, two percent real rates—terrible! Now cash is relatively attractive. Ray Dalio is a billionaire and one of the most highly respected investors in the world. He has been investing for 50 years, meaning he kno…
Physics Nobel Prize 2011 - Brian Schmidt
[Applause] There are few things in the world that seem more constant than the stars in the night sky. If you look up at the Milky Way, you will see the same thing that people have looked at for thousands and thousands of years. But as Professor Schmidt fo…
15 Tools Smart People Use (in 2024)
The only sign of intelligence is your ability to adapt to changing times and environments. Historically, those who adopt technology first end up ruling over those who don’t. Be it guns, agriculture, industrialization, digital networks, and now probably AI…
The Hard Conversations Founders Don't Want to Have
I think so much about being a YC partner is like, is exactly that. Like I’ve made all these mistakes before I go. And the only thing that I could say is I know the way out. This is Michael Seibel with Dalton Caldwell at YC. We often have to have challeng…
You Don’t Have To Be A Billionaire To Launch Satellites
Last year, the team at Astranis launched their first commercial satellite into space. Stage separation confirmed. [Music] [Applause] Their smaller, low-cost telecom satellites represent a major breakthrough for the aerospace industry, and they’re also the…
How to Get Started, Doing Things that Don't Scale, and Press (How to Start a Startup 2014: 8)
Thanks for having me, Sam! I’m Stanley, I’m the founder of DoorDash, and it’s really amazing to be here because it wasn’t naturally that long ago where I sat in your seats. I was class of 2014, graduated in CS, as well as my co-founder, Andy. For