Equations & Roots / Linear

Linear Equations

The simplest equation shape — one unknown raised to the first power. Its graph is a straight line, and a straight line crosses the x-axis exactly once, so there's exactly one root.

The idea

A linear equation in one variable has the general form:

ax + b = 0 (a ≠ 0)

Here, a and b are fixed numbers (coefficients), and x is the unknown. Because the highest power of x is 1, its graph is always a straight line — no curve, no bend. A non-horizontal straight line crosses the x-axis at exactly one point, which is why a linear equation has exactly one root.

Solving it is a matter of isolating x on one side:

ax = −b ⟶ x = −b / a

Switch to Interactive Grapher to see how changing a and b slides and tilts the line, and moves the root.