Graphs of linear equations | Linear equations and functions | 8th grade | Khan Academy - YouTube

Channel: Khan Academy

[0]
Let's do a couple of problems graphing linear equations.
[5]
They are a bunch of ways to graph linear equations.
[7]
What we'll do in this video is the most basic way.
[9]
Where we will just plot a bunch of values and then
[11]
connect the dots.
[12]
I think you'll see what I'm saying.
[13]
So here I have an equation, a linear equation.
[16]
I'll rewrite it just in case that was too small. y is equal
[18]
to 2x plus 7.
[22]
I want to graph this linear equation.
[24]
Before I even take out the graph paper, what I could do
[26]
is set up a table.
[28]
Where I pick a bunch of x values and then I can figure
[31]
out what y value would correspond to
[34]
each of those x values.
[36]
So for example, if x is equal to-- let me start really low--
[41]
if x is equal to minus 2-- or negative 2, I should
[45]
say-- what is y?
[47]
Well, you substitute negative 2 up here.
[49]
It would be 2 times negative 2 plus 7.
[54]
This is negative 4 plus 7.
[57]
This is equal to 3.
[59]
If x is equal to-- I'm just picking x values at random
[62]
that might be indicative of-- I'll probably do three or four
[65]
points here.
[66]
So what happens when x is equal to 0?
[68]
Then y is going to be equal to 2 times 0 plus 7.
[74]
Is going to be equal to 7.
[79]
I just happen to be going up by 2.
[80]
You could be going up by 1 or you could be
[82]
picking numbers at random.
[83]
When x is equal to 2, what is y?
[87]
It'll be 2 times 2 plus 7.
[91]
So 4 plus 7 is equal to 11.
[95]
I could keep plotting points if I like.
[97]
We should already have enough to graph it.
[99]
Actually to plot any line, you actually only need two points.
[103]
So we already have one more than necessary.
[105]
Actually, let me just do one more just to show you that
[106]
this really is a line.
[108]
So what happens when x is equal to 4?
[110]
Actually, just to not go up by 2, let's do x is equal to 8.
[114]
Just to pick a random number.
[116]
Then y is going to be 2 times 8 plus 7, which is-- well this
[121]
might go off of our graph paper-- but 2 times 8 is 16
[125]
plus 7 is equal to 23.
[129]
Now let's graph it.
[130]
Let me do my y-axis right there.
[135]
That is my y-axis.
[138]
Let me do my x-axis.
[140]
I have a lot of positive values here, so a lot of space
[143]
on the positive y-side.
[145]
That is my x-axis.
[147]
And then I use the points x is equal to negative 2.
[150]
That's negative 1.
[151]
That's 0, 1, 2, 3, 4, 5, 6, 7, 8.
[162]
Those are our x values.
[163]
Then we can go up into the y-axis.
[165]
I'll do it at a slightly different scale because these
[167]
numbers get large very quickly.
[169]
So maybe I'll do it in increments of 2.
[175]
So this could be 2, 4, 6, 8, 10, 12, 14, 16.
[186]
I could just keep going up there, but
[188]
let's plot these points.
[190]
So the first coordinate I have is x is equal to negative 2, y
[193]
is equal to 3.
[195]
So I can write my coordinate.
[196]
It's going to be the point negative 2, 3.
[198]
x is negative 2.
[200]
y is 3.
[202]
3 would land right over there.
[204]
So that's our first one, negative 2, 3.
[208]
Then our next point.
[210]
0, 7.
[212]
We do it in that color.
[213]
0, 7.
[214]
x is 0.
[215]
Y is 7.
[217]
Right there.
[219]
0, 7.
[221]
We have this one in green here.
[224]
Point 2, 11.
[226]
2, 11 would be right about there.
[233]
And then this last point-- this is actually going to fall
[234]
off of my graph.
[236]
8, 23.
[238]
That's going to be way up here someplace.
[242]
If you can even see what I'm doing.
[244]
This is 8, 23.
[246]
If we connect the dots, you'll see a line forms. Let me
[249]
connect these dots.
[251]
I've obviously hand drawn it, so it might not be a perfectly
[254]
straight line.
[255]
If you had a computer do it, it would be a straight line.
[257]
So you could keep picking x values and figuring out the
[260]
corresponding y values.
[261]
In the situation y is a function of our x values.
[265]
If you kept plotting every point, you'll get every line.
[268]
If you picked every possible x and plotted every one, you get
[271]
every point on the line.
[274]
Let's do another problem.
[276]
At the airport, you can change your money from
[279]
dollars into Euros.
[283]
The service costs $5.
[286]
and for every additional dollar, you get EUR 0.7.
[293]
Make a table for this and plot the function on a graph.
[297]
Use your graph to determine how many Euros you would get
[300]
if you give the office $50.
[303]
I will write Euros is equal to-- so let's see, it's going
[309]
to be dollars.
[310]
So you're going to have to give your dollars.
[314]
Right off of the bat, they're going to take $5.
[319]
So dollars minus 5.
[321]
So immediately this service costs $5.
[324]
And then everything that's leftover-- this is your
[326]
leftover-- you get EUR 0.7 for every leftover dollars.
[330]
You get 0.7 for whatever's leftover.
[334]
So this is the relationship.
[336]
Now we can plot points-- we could actually answer their
[338]
question right off the bat.
[339]
If you give them $50, we don't even have to look at a graph.
[342]
But we will look at a graph right after this.
[344]
So if you did Euros is equal to-- if you have given them
[348]
$50-- it would be 0.7 times 50 minus 5.
[354]
You gave them 50.
[355]
They took 5 as a service fee.
[357]
So this is just $45 It would be 0.7 times 45.
[364]
I could do that right here.
[365]
45 times 0.7.
[369]
7 times 5 is 35.
[372]
4 times 7 is 28 plus 3 is 31.
[377]
And then we have only one number behind the decimal,
[379]
only this 7.
[380]
So it's 31.5.
[382]
So if you give them $50, you're going to get EUR 31.5.
[389]
Euros, not dollars.
[391]
So we answered their question, but let's actually do it
[393]
graphically.
[394]
Let's do a table.
[397]
Maybe I'll get a calculator out.
[399]
I'll refer to that in a little bit.
[400]
So let's say dollars you give them.
[405]
And how many Euros do you get?
[409]
I'll just put a bunch of random numbers.
[411]
If you give them $5, they're just going to take
[414]
your $5 for the fee.
[415]
You're going to get $5 minus 5, which is 0 times 0.7.
[418]
So you're going to get nothing back.
[420]
So there's really no good reason for you to do that.
[423]
Then if you give them $10.
[426]
What's going to happen?
[427]
If you give them $10, 10 minus 5 is 5 times 0.7.
[433]
You're going to get $3-- or I should say EUR 3.50.
[437]
3.5 Euros, you'll get.
[440]
Now what happens if you give them $30?
[446]
Actually let me say 25.
[448]
If you give him $25, 25 minus 5 is 20.
[453]
20 times 0.7 is $14.
[458]
I'll do one more value.
[459]
Let's say you gave them $55.
[462]
This makes the math easy because then you
[463]
subtract that 5 out.
[464]
55 minus 5 is 50 times 0.7 is $35.
[473]
Is that right?
[474]
Yep, that's right.
[476]
You'll get EUR 35 I should say.
[477]
These are all Euros.
[478]
I keep wanting to say dollars.
[479]
Let's plot this.
[481]
All of these values are positive, so I only have to
[483]
draw the first quadrant here.
[490]
And so the dollars-- let's go in increments of 5, 10, 15,
[497]
20, 25, 30, 35, 40, 45, 50, 55.
[507]
I made my x-axis a little shorter than I needed to.
[510]
All the way up to 55.
[511]
And then the y-axis.
[512]
I'll go in increments of 5.
[514]
So that's 5, 10, 15, 20, 25, 30, 35.
[525]
Well that's a little bit too much of an increment.
[527]
35.
[529]
Now let's plot these points.
[530]
I give them $5.
[531]
I get EUR 0.
[533]
This right here is Euros.
[537]
This is the dollars.
[538]
The dollars is the independent variable and we figure out the
[540]
Euros from it.
[541]
Or the Euros I get is dependent on
[543]
the dollars I get.
[545]
If I give $10, I get EUR 3.50.
[547]
3.50-- it's hard to read.
[549]
Maybe 3.50 would be right around there.
[551]
If I give $25, I get EUR 14.
[554]
25, 14 is right about there.
[557]
Obviously, I'm hand drawing it, so it's not going to be
[559]
quite exact.
[560]
If I get $55, I get EUR 35.
[562]
So 55, 35 right there.
[566]
If I were to connect to the dots, I should get something
[570]
that looks pretty close to a line.
[572]
If I did it-- if I was a computer, it would
[574]
be exactly a line.
[578]
That looks pretty good.
[579]
Then we could eyeball what they asked us to do.
[582]
Use your graph to determine how many Euros you would get
[584]
if you give the office $50.
[586]
This is 50 right here.
[588]
So you go bam, bam, bam, bam, bam, bam, bam, bam.
[591]
I'm at the graph.
[592]
Then you go all the way-- actually I drew that last
[596]
point on the graph a little bit incorrectly.
[600]
Let me.
[604]
35 is right here.
[605]
Let me redraw that point.
[606]
35 is right there roughly.
[610]
So 55, 35 is right there.
[613]
So let me redraw my line.
[614]
It will look-- I lost 25.
[616]
25, 14 is right there.
[620]
So my graph looks something like that.
[624]
That's my best attempt.
[626]
Now let's answer the question.
[627]
We give them $50 right there.
[629]
You go up, up, up, up, up, up, up. $50.
[632]
The person is going to get.
[634]
You go all the way to the left-hand side.
[637]
That's right about 31.50.
[639]
We figured out exactly using the formula.
[641]
But you can see, you can eyeball it from the graph and
[643]
figure out any amount of dollars.
[645]
If you give them $20, you're going to go all
[648]
the way over here.
[649]
You'll figure out that it should be-- well $20 should be
[653]
about 7.50.
[655]
The imprecision in my graph-- in my drawing the graph makes
[658]
it a little bit less exact.
[660]
When you say 20 minus 5 is 15.
[663]
15 times-- actually it'll be a little over
[665]
$10, which is right.
[666]
It's right over there.
[669]
If you put $20 in there, 20 minus 5 is 15.
[672]
15 times 0.7 is $10.50, which is right there.
[678]
So you can look at any point in the graph and figure out
[679]
how many Euros you'll get.
[682]
Let's do this one where we'll do a little bit
[684]
of reading a graph.
[686]
The graph-- I think it said use the graph below.
[689]
Oh, the graph below shows a conversion chart for
[692]
converting between weight in kilograms
[695]
and weight in pounds.
[696]
Use it to convert the following measurements.
[698]
We have kilograms here and pounds here.
[702]
So they want 4 kilograms into weight into pounds.
[705]
So if we look at this right here, 4
[707]
kilograms is right there.
[712]
We just follow where the graph is.
[715]
So 4 kilograms into pounds, it looks like, I don't know, a
[719]
little bit under 9 pounds.
[722]
So a little bit less than-- so almost, I'll
[725]
write almost 9 pounds.
[727]
You can't exactly see.
[729]
It's a little less than 9 pounds right there.
[731]
4 kilograms. Now 9 kilograms. We go over here.
[735]
9 kilograms. Go all the way up.
[739]
That looks like almost exactly 20 pounds.
[744]
Here they say 12 pounds into weight in kilograms. Actually
[747]
kilograms is mass, but I won't get particular.
[750]
So 12 pounds.
[752]
Go over here.
[752]
Pounds.
[753]
12 pounds in kilograms looks like 5 1/2.
[760]
Approximately 5 1/2.
[763]
And then 17 pounds to kilograms.
[765]
So 17 is right there.
[767]
17 pounds to kilograms looks right about 7 1/2 kilograms.
[778]
Anyway, hopefully that these examples made you a little bit
[780]
more comfortable with graphing equations and reading graphs
[785]
of equations.
[786]
I'll see you in the next video.