# Video: Finding an Equation of a Linear Function with Two Points

If π(π₯) is a linear function, find an equation for it given π(4) = β1 and π(9) = 2.

05:08

### Video Transcript

If π of π₯ is a linear function, find an equation for it given π of four equals negative one and π of nine equals two.

To help us solve this problem, what weβve got is the general form for a linear function. And that general form is that π¦ or π of π₯ is equal to ππ₯ plus π, where π is the slope and π is the π¦-intercept. So, therefore, we know that our linear function is gonna take this form. Itβs worth, at this point, reminding ourselves that π of π₯ is π¦ or itβs another way that we could write what the function is. So what weβre going to do is use our values that we know, trying to form a couple of simultaneous equations.

First of all, we have π of four equals negative one. What this means is that the value of the function is negative one when π₯ is equal to four. So we can say that four π, and thatβs because our π₯-value is four, plus π is gonna be equal to negative one cause all Iβve done is flipped the equation round the other way. And Iβm gonna call this equation equation one. And the reason Iβm labelling the equation is cause I find it useful when we go through the next steps.

Next, we know that π of nine is equal to two. So again, this tells us that the value of the function is two when the value of π₯ equals nine. So we now have our second simultaneous equation. And that is that nine π plus π is equal to two. And Iβve labelled this equation two. So now, what weβre gonna do is use a method called elimination to solve our simultaneous equations. So to use elimination, all we need to do is find terms, so our variables, that have the same coefficient. So if you look at these, the πs, well, they donβt have the same coefficient cause they got four and nine. However, the πs do because the coefficient of our πs is just one. But what do we do with them once we found this out?

Well then, weβre either gonna add or subtract our equations from each other. And here we can see that weβve got the same signs because both πs are positive. And as the signs are the same, what weβre gonna do is subtract. We can say that same sign subtract. And thatβs because we want to eliminate the different values, so eliminate π from the equation. So we can solve to find π. And if you have positive π minus positive π, then weβre just gonna get zero.

So now, what weβre going to do is equation two minus equation one. So weβre going to get five π. And thatβs because nine π minus four π is five π. And then the πs have cancelled out cause, as we said, positive π minus positive π is zero. And then on the right-hand side of the equation, weβre gonna have two minus negative one. Well, if you subtract a negative number, itβs the same as adding that number on. So we have two add one which is three.

So now, weβre gonna solve to find π. And to do that, what we need to do is divide each side of the equation by five. And when we do that, we get π is equal to three over five or three-fifths. So weβve now found the slope of our linear function. So now, what we want to do is find π, our π¦ intercept. But how weβre going to do that?

Well, now to enable us to find π, what weβre going to do is substitute π equals three-fifths into one of our equations. Iβve chosen equation one. But it could be either of them. So when we substitute π equals three-fifths into equation one, we get four multiplied by three-fifths plus π is equal to negative one which is gonna give us twelve-fifths because we multiplied four by the numerator. So weβve got twelve-fifths plus π is equal to negative one. So now, if we subtract twelve-fifths from both sides of the equation, weβre gonna get π is equal to negative seventeen-fifths. And we got that as a value for π because we had negative one minus twelve-fifths. Well, we can think of one as five-fifths. So, therefore, weβd have negative five-fifths minus twelve-fifths which gives us negative seventeen-fifths.

So therefore if we substitute our values of π and π, which are π is equal to three-fifths and π is equal to negative seventeen-fifths, into the linear function general form, then weβll get π of π₯, because we are using the function notation, is equal to negative seventeen-fifths plus three-fifths π₯. Or it can be written as π of π₯ is equal to three-fifths π₯ minus seventeen-fifths.