Free preview
95 lessons
Mathematical Foundations for ML
Free preview
Mathematical Foundations for ML · 95 lessons
No surprise gaps
Actually remember it
Skip what you know
One subscription. All learning paths included.
Our content is best on a larger screen
The slope-intercept form
There are infinitely many straight lines which all share the same slope, so how do we identify a specific one? We fix one point on the line: only one line with that slope passes through it.
The most convenient point to fix is where the line crosses the -axis. Every point on the -axis has -coordinate , so we write this point as , where is the height of the crossing.
In the diagram below, the slider sets the slope shared by all the faint lines, and the point on the -axis picks out one of them.
Definition
A straight line written as
is in slope-intercept form. The number is the slope of the line, and is its -intercept: putting gives , so the line crosses the -axis at .
Reading and off an equation tells us which line it describes. In we have and , so the line rises and crosses the -axis at .
When there is no constant term, as in , we have , so the line passes through the origin.
Four straight lines are drawn on the axes below. Which of them is ?
Solution
In we have , so the line we want crosses the -axis at . Lines , and all pass through that point, while crosses at , so is ruled out.
Next we use the slope. Here , which is negative, so the line falls from left to right. Line rises, so is ruled out too.
That leaves and , and we separate them by the size of their slope. Starting from , line drops unit for every units across, so its slope is . Line drops units for every unit across, giving a much steeper .
The line is .
Practice questions
4 questions
Four straight lines are drawn on the axes below. Which one is ?
Select the correct answer:
+ 3 more questions
Finding the equation of a drawn line
Writing the equation of a drawn line means finding the two numbers in from the picture. The diagram below marks where each one comes from: the point where the line crosses the -axis gives , and the rise and run from to a second point on the line give the slope .
Procedure
Write the equation of the straight line drawn below.
Solution
The line crosses the -axis at , so .
We take the -axis crossing as and the point , where the line passes exactly through a grid point, as . The green legs show the run and rise between them:
Writing and into gives the equation
Practice questions
4 questions
What is the equation of the straight line drawn below?
Select the correct answer:
+ 3 more questions
The horizontal or vertical line through a point
A horizontal line stays at one height, so every point on it has the same -coordinate. The horizontal line through contains , , and every other point with -coordinate , whatever its -coordinate. Its equation is .
A vertical line stays at one position across, so every point on it has the same -coordinate. The vertical line through is .
Definition
A horizontal line has an equation , and a vertical line has an equation , for numbers and . Through the point :
A horizontal line fits the slope-intercept form with , since is . A vertical line does not: the equation contains no , so it cannot be rearranged into .
Write the equations of the horizontal line and the vertical line through . Both lines are drawn below.
Solution
Here the point is .
We check against the point: has -coordinate , so it satisfies , and it has -coordinate , so it satisfies .
Practice questions
4 questions
Four straight lines are drawn on the axes below. Which one is ?
Select the correct answer:
+ 3 more questions