More Lessons for Geometry, Math Worksheets

In this lesson, we will learn

- the slope-intercept form for the equation of a line.
- how to write equations in slope-intercept form.
- how to write equations of horizontal and vertical lines.
- how to get the equation of a line given two points on the line.
- how to graph an equation using the slope-intercept form.

The equation, *y* = *mx* + *b*, is in *slope-intercept form* for the equation of a line. When an equation is in this form, the slope of the line is given by *m* and the *y*-intercept is located at *b*.

For example, a line with the equation *y* = 2*x* + 4 has a slope of 2 and a *y*-intercept of 4.

The following video shows how to change a linear equation into slope-intercept form.

A horizontal line has a slope of zero which means that *m* = 0. The equation of a horizontal line is then in the form

y= 0x+bwhich is the same asy=b, wherebis they-intercept.

A vertical line has a slope that is undefined. Therefore, it cannot be written in slope-intercept form. Instead, the equation of a vertical line is in the form

The following video shows how to write the equation of vertical and horizontal lines.

x=a, whereais thex-intercept.

To find the equation of a line when given two points on the line, we first find the slope and then find the *y*-intercept.

The slope is the ratio of the change in the y-value over the change in the x-value. Given any two points on a line, you can calculate the slope of the line by using this formula:

*Example:*

Given two points, P = (0, –1) and Q = (4,1), on the line, find the equation of the line.

*Solution: *

*slope = *
=

**Step 2:** Substitute *m* = , into the equation, *y = mx + b,* to get the equation

**Step 3: **Select one of the given points, for example (4, 1), and substitute the *x* and *y* values into the equation.

We, then, get that *b* = −1, which is the *y*-intercept.

**Step 4: **Substitute *b* = −1 to get the equation.

*y* = *x* − 1

Example: Determine the equation of the line passing through (-2, -3) and (4, -2). Write the linear equation in slope-intercept form.

Rotate to landscape screen format on a mobile phone or small tablet to use the **Mathway** widget, a free math problem solver that **answers your questions with step-by-step explanations**.

You can use the free Mathway calculator and problem solver below to practice Algebra or other math topics. Try the given examples, or type in your own problem and check your answer with the step-by-step explanations.