Kid-friendly explanation

A linear equation is a math rule that makes a straight line when you draw it on a graph. It often looks like y = 2x + 3. If you pick a number for x, the equation tells you exactly what y has to be. Every pair of numbers that makes the equation true is a point on that straight line!

Simple and advanced examples

Example 1 (simple, one variable):

Solve the linear equation 3x + 5 = 20.

Step 1: Subtract 5 from both sides to undo the +5: 3x + 5 − 5 = 20 − 5, so 3x = 15.

Step 2: Divide both sides by 3 to undo the multiplication by 3: 3x ÷ 3 = 15 ÷ 3, so x = 5.

Check: Put x = 5 back into the equation. 3(5) + 5 = 15 + 5 = 20, which matches the right side, so x = 5 is the solution.

Example 2 (advanced, two variables and a system):

Consider the system of two linear equations:

y = 2x + 1 and y = −x + 7.

To find the solution, look for the ordered pair (x, y) that makes both equations true at the same time. Since both equal y, set them equal: 2x + 1 = −x + 7.

Add x to both sides: 2x + x + 1 = 7, so 3x + 1 = 7.

Subtract 1 from both sides: 3x = 6.

Divide both sides by 3: x = 2.

Now find y using one equation, for example y = 2x + 1: y = 2(2) + 1 = 4 + 1 = 5.

The solution to the system is (2, 5). On a graph, this is the point where the two straight lines intersect.

How linear equations are usually written

In one variable, a linear equation often looks like ax + b = c, where a, b, and c are numbers and x is the variable. For example, 4x − 7 = 9 is a linear equation in one variable.

In two variables, a common form is y = mx + b, where m is the slope (how steep the line is) and b is the y-intercept (where the line crosses the y-axis). For example, y = −3x + 4 is a linear equation in two variables.

There are also related forms, such as absolute value linear equations like y = |x − 2| + 1. These use a linear expression inside the absolute value, but the absolute value changes the graph: instead of a single straight line, it forms a V shape made of two straight pieces.

Going deeper for older students

When solving a linear equation in one variable, each step should keep the two sides equal. Adding, subtracting, multiplying, or dividing both sides by the same nonzero number creates a new equation with the same solution. Justifying each step in this way helps explain why the solution is correct.

A linear equation can have one solution, no solution, or infinitely many solutions. For example, 2x + 3 = 11 has one solution. The equation 3x + 2 = 3x − 5 has no solution, because simplifying gives 2 = −5, which is never true. The equation 4x − 1 = 4x − 1 has infinitely many solutions, because any value of x makes both sides equal.

Systems of linear equations extend this idea. A system of two linear equations in two variables can have exactly one solution (lines intersect once), no solution (lines are parallel and never meet), or infinitely many solutions (the same line written in different ways). Systems can also be represented and solved using matrices, especially with three linear equations in three variables.

Linear equations also connect to other topics. For example, the x-coordinate of a point where the graphs of y = f(x) and y = g(x) intersect is a solution of the equation f(x) = g(x). Arithmetic sequences, where you add the same number each time, can be represented with linear equations because their terms grow in a straight-line pattern.

Common mistakes with linear equations

  • Forgetting to do the same operation to both sides. A student solving 3x + 5 = 20 might drop the +5 from the left side without subtracting it from the right, writing 3x = 20, so x = 20 ÷ 3 ≈ 6.67. Check: 3(6.67) + 5 ≈ 25, not 20, so this is wrong. The correction is to subtract 5 from both sides: 3x + 5 − 5 = 20 − 5, so 3x = 15 and x = 5.
  • Moving a term without changing its sign. In the equation 4x + 3 = 2x + 11, a student might move the 2x to the left side by adding it instead of subtracting, writing 6x + 3 = 11, so 6x = 8 and x = 8/6 ≈ 1.33. Check: the left side gives 4(1.33) + 3 ≈ 8.3 while the right side gives 2(1.33) + 11 ≈ 13.7, so the sides do not match. The correct step is to subtract 2x from both sides: 2x + 3 = 11, then 2x = 8 and x = 4.
  • Misreading the number of solutions. For 2x + 1 = 2x + 5, a student might cancel 2x and think there is one solution left. Simplifying gives 1 = 5, which is never true, so this equation has no solution. When simplifying leads to a false statement, the equation has no solution; when it leads to a true statement like 3 = 3, it has infinitely many solutions.

Where linear equations show up in daily life

Linear equations model many everyday situations where something changes at a steady rate. Examples include total cost when there is a fixed fee plus a price per item, distance traveled at a constant speed, or the way a game score increases by the same amount each round. When a situation grows in a straight-line pattern, a linear equation can often describe it.

Related math terms to explore