Linear Equation Through Two Points with Examples

The equation of a line can be found through various methods depending on the information available. The two points form is one of those methods. This form is used to find the equation of a line that passes through two given points.

Here, we will look at how to find the equation of a line when we have two points. Then, we will explore various examples with answers to fully understand the process used.

ALGEBRA
linear equation through two points

Relevant for...

Learning to find the equation of the line that passes through two points.

See examples

ALGEBRA
linear equation through two points

Relevant for...

Learning to find the equation of the line that passes through two points.

See examples

How to find the equation of the line that passes through two points?

To find the equation of the line that passes through two points, we remember that every time we want to obtain the equation of a line, we need two things: the slope and a point.

Therefore, if we only have two points and no slope, we simply use the two points to find the slope using this equation:

$latex m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$

After obtaining the slope, we use the point-slope form $latex y = mx + b$, where m is the slope and b is the y-intercept. The y-intercept can be found using one of the given points.

Alternatively, we can use the form two points of a line. Given two points $latex (x_{1}, ~y_{1})$ and $latex (x_{2},~ y_{2})$, we have the following:

$latex y-y_{1}=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}(x-x_{1})$
o
$latex y-y_{2}=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}(x-x_{2})$

Linear equation through two points – Examples with answers

The following examples are solved using both methods to find the equation of the line using two points indicated above. The solution shows the detailed process to follow to obtain the equation of the line.

EXAMPLE 1

Find the equation of a line that passes through the points (3, 3) and (-1, 1).

Solution

EXAMPLE 2

Find the equation of the line that passes through the points (-2, -1) and (1, 2).

Solution

EXAMPLE 3

Find the equation of the line that passes through the points (-2, 2) and (2, 0).

Solution

EXAMPLE 4

Find the equation of the line that passes through the points (-1, 2) and (1, -2).

Solution

EXAMPLE 5

Find the equation of the line that passes through the points (-3, -2) and (3, 0).

Solution

EXAMPLE 6

Find the equation of the line that passes through the points (-3, 1) and (3, -3).

Solution

Linear equation through two points – Practice problems

Practice and test your knowledge of the equation of the line that passes through two points with the following problems. Select an answer and check it to see if you chose the correct answer. Check out the solved examples above if you have a problem.

Find the equation of the line that passes through the points (-1, 4) and (1, -2).

Choose an answer






Find the equation of the line that passes through the points (-4, 2) and (2, 5).

Choose an answer






Find the equation of the line that passes through the points (-1, -3) and (2, 0).

Choose an answer






Find the equation of the line that passes through the points (-1, 6) and (1, 0).

Choose an answer






See also

Interested in learning more about linear equations? Take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE