# How to write an equation of the line that passes through the given points?

The general equation of a straight line can be written as y = mx + c where m is the slope and c is the y-intercept.

## Answer: The equation of a line passing through the points (x_{1}, y_{1}) and (x_{2}, y_{2}) is y - y_{1} = [(y_{2} - y_{1}) / (x_{2} - x_{1})] [ (x - x_{1}) ]

Let us proceed step by step to write an equation of a line.

**Explanation:**

Let us consider the given points (x_{1}, y_{1}) and (x_{2}, y_{2}).

As we know that the equation of a line passing through the points (x_{1, }y_{1}) and (x_{2} , y_{2}) is given by y - y_{1} = m (x - x_{1}).

Here, m is the slope given by the formula m = (y_{2} - y_{1}) / (x_{2} - x_{1})

You can find the slope using Cuemath's Slope Calculator.

Hence on substituting the given points in the equation of a line, we get

y - y_{1} = m (x - x_{1})-------(1)

m = (y_{2} - y_{1}) / (x_{2} - x_{1})

Substituting value of m in equation (1), we get

y - y_{1} = [(y_{2} - y_{1}) / (x_{2} - x_{1})] [ (x - x_{1}) ]