Q:

# How do you find the equation of a line if you're given two points?

A:

The way to calculate the equation of a line that includes the points (x,y) and (x1, y1) is to plug them into the equation y - y1 = m(x - x1) and solve for m, the slope of the line. The way to convert this to y = mx + b form is to plug one point and the slope into the same equation and solve for y.

## Keep Learning

Credit: Comstock Stockbyte Getty Images

Linear equations describe straight lines as they appear on a graph. Linear equations are most commonly described in slope-intercept form, written as y = mx + b. The letters x and y refer to the horizontal and vertical coordinates of any point on the line as it is graphed. The m refers to the slope of the line, and b refers to the x-coordinate of the point on the line when it crosses the y-axis.

The second most common form of linear equations is written in point-slope form as y - y1 = m (x - x1). This form is commonly used when only one point (x1, y1) and the slope m are known or when only two points on the line are known.

For straight vertical lines, the equation is x = x1, with no slope or y values given. This is because the slope for vertical lines is undefined, and for every value of y, x will always be the same number.

Sources:

## Related Questions

• A: The slope and the y-intercept of a line can be found graphically and mathematically. Use the slope equation and the slope intercept equation to find both v... Full Answer >
Filed Under:
• A: A line that is perpendicular to the x-axis has an undefined slope. All of the points on such a line have the same x-coordinate. If the value of x never cha... Full Answer >
Filed Under:
• A: No one is sure why the letter "m" is used to represent slope in the equation of a line. While there are many theories, the variable may simply have been ar... Full Answer >
Filed Under:
• A: The formula for calculating the slope of a line when given two points, (x1, y1) and (x2, y2), is the difference in y coordinates divided by the difference ... Full Answer >
Filed Under:
PEOPLE SEARCH FOR