Home / Blog / Math & Scientific

Math & Scientific

Find a Linear Equation from Points or a Slope

Construct a line equation from two points, recover its intercept, and distinguish a two-variable line from solving one equation in x.

Find a Linear Equation from Points or a Slope

Find the slope from two points

For points (2,5) and (6,13), the slope is m = (13 − 5)/(6 − 2) = 8/4 = 2. Use the same point order in both differences. The slope measures how y changes for a one-unit increase in x along the line. Two distinct points with the same x-coordinate form a vertical line instead, whose slope cannot be calculated by division because the denominator is zero.

Recover the intercept

Write y = mx + b and substitute m = 2 and point (2,5). This gives 5 = 2×2 + b, so b = 1. The resulting equation is y = 2x + 1. Verify the second point: when x = 6, y = 13. The intercept is the y-coordinate when x = 0; it is not generally the y-coordinate of the first point supplied. Selecting that first y value as b without substitution would give the wrong line unless the point lies on the y-axis.

Use point-slope form when convenient

The same line can be written y − 5 = 2(x − 2). Expanding gives y − 5 = 2x − 4 and hence y = 2x + 1. Equivalent equation forms can describe the same complete set of points. If the task later asks where y = 17, solve 17 = 2x + 1 to obtain x = 8. That is now a one-variable equation and can be entered in a suitable equation solver after the line itself has been constructed.

Handle vertical or coincident points

Points (4,1) and (4,9) define x = 4, a valid linear relation even though it cannot be written as y = mx + b with finite slope. Two identical points such as (4,1) and (4,1) do not determine a unique line at all. For data containing more than two points, verify that they share one slope before claiming an exact linear equation. A fitted trend through noisy observations is a separate statistical model, not automatically the line through an arbitrarily selected pair.

Keep expressions, equations and solutions distinct

An expression such as 3x + 2 describes a value that depends on x. An equation such as 3x + 2 = 14 asserts equality and can be solved for values that make it true. Simplifying an expression does not automatically find a solution because there may be no equality to satisfy. Likewise, a formula containing several variables expresses a relationship rather than supplying all their values. Identify whether the question asks you to simplify, evaluate, rearrange, solve or construct a model before selecting the calculator input.

Preserve equivalence and check the original statement

When solving an equation, apply the same permitted operation to both sides. Distribute a multiplier to every term inside its parentheses, preserve negative signs, and do not divide by an expression that might be zero without treating that case separately. Substitute each candidate into the original equation, not only the last transformed version. Squaring, cancelling or multiplying by a variable denominator can alter the set of allowed values. An answer that satisfies a rearranged equation can still violate the original domain or the physical meaning of a length or count.

Match the local calculator to its supported task

The local equation forms solve linear and quadratic polynomial equations in one variable named x. They are not general symbolic algebra systems, multi-variable formula rearrangers or inequality solvers. Use explicit parentheses for grouped numerators and denominators and use an equals sign when entering an equation so the intended sides are clear. For a geometric or applied problem, derive the equation first and keep the relevant units and constraints in the written working. A numerical solution does not by itself explain which original measurement or variable that number represents.

Keep a slope’s units in an applied model

If x measures hours and y measures kilometres, a slope of two has units kilometres per hour and the intercept has units kilometres. Changing x to minutes changes the numerical slope while preserving the same physical relationship after conversion. A graph’s visual tilt therefore cannot replace the stated axis units. Label both axes before interpreting a line equation as a rate or an initial amount.

Calculator for the supported step

The Coordinate Geometry Calculator accepts two points and displays their line when it is defined. The separate Linear Equation Calculator solves an equation in x; it is not a two-point graph-entry form.

Open Coordinate Geometry Calculator

Sources and method

OpenStax: linear functions