Linear Equations
A linear equation is the mathematical description of a steady rate of change — the price you pay grows by the same amount for each extra kilogram, the water level drops by the same amount each hour, the taxi fare climbs by the same amount each mile. Because so much of everyday life advances at a constant pace, linear equations are the single most useful tool in all of algebra. Master them and you gain a reliable way to answer "how much?", "when?", and "where do these two things meet?"
The beauty of a linear equation is that it hides a very human idea inside its symbols: balance. An equation is a claim that two things weigh the same, and everything you do to solve it is just keeping a scale level while you tidy up. Once that idea clicks, solving stops feeling like memorized tricks and starts feeling like common sense.
Learning Objectives
By the end of this page, you should be able to:
- Solve a linear equation in one variable by keeping both sides balanced.
- Explain what the slope and the intercept mean in , and read them off a graph.
- Graph a line quickly from its equation, and write the equation of a line from a graph or two points.
- Solve and graph linear inequalities, remembering the sign-flip rule.
- Solve a system of two linear equations by substitution and by elimination, and interpret the result geometrically.
Quick Answer
A linear equation is one in which every variable appears only to the first power — no squares, no roots, no products of variables — so its graph is a straight line. To solve one in a single variable, you use inverse operations to isolate that variable while doing the same thing to both sides so the equation stays balanced. A linear equation in two variables, written in slope-intercept form , describes a line whose steepness is the slope (rise over run) and whose crossing point on the -axis is the intercept . Replacing "=" with "", "", "", or "" gives a linear inequality, solved the same way — except that multiplying or dividing by a negative number reverses the inequality sign. When two lines are considered together as a system, their solution is the point where they cross, found by substitution or elimination.
Where It Came From
Linear problems are older than algebra itself — older, in fact, than the equals sign. The Rhind Mathematical Papyrus of ancient Egypt (copied around 1650 BCE from an even older source) is full of problems of the form "a quantity and its seventh added together make 19; what is the quantity?" The scribes solved these by a clever guess-and-adjust method called false position: assume a convenient value, see how far off you are, and scale your guess proportionally. The need was intensely practical — dividing loaves of bread and jugs of beer fairly among workers, and calculating how much grain a given area of field would yield.
The Babylonians, writing in cuneiform on clay tablets around 1800 BCE, handled linear (and even quadratic) problems arising from land measurement, inheritance division, and interest on loans. Their motivation was administration and trade: a civilization that lends grain at interest and taxes farmland must be able to solve for an unknown quantity reliably.
The most striking early achievement is Chinese. The Nine Chapters on the Mathematical Art (Jiuzhang Suanshu), compiled by around 100 CE, devotes an entire chapter — "Fangcheng," or "rectangular arrays" — to systems of linear equations. To find, say, the yield of three different grades of grain from mixed harvests, the authors arranged the coefficients in a grid and systematically eliminated unknowns — essentially the method we now call Gaussian elimination, roughly seventeen centuries before Gauss. The driving need was again economic: fair exchange rates between goods and equitable taxation.
What tied all this together conceptually was the idea of balance. When the Persian scholar al-Khwarizmi wrote his foundational algebra text around 820 CE, the very word al-jabr (from which "algebra" comes) meant "restoration" — the act of moving a subtracted term to the other side to keep the two sides equal, exactly like re-balancing a scale. The modern equals sign "=" arrived much later, invented by the Welsh mathematician Robert Recorde in 1557, who chose two parallel lines "bicause noe 2 thynges can be moare equalle." Every time you solve a linear equation today, you are using an idea four thousand years in the making.
Solving Linear Equations: The Balance Principle
Think of an equation as an old two-pan balance scale. The "=" sign is the pivot; whatever sits on the left pan weighs exactly the same as whatever sits on the right. The golden rule is simple: whatever you do to one side, you must do to the other, or the scale tips and the equation becomes false.
The four moves you are allowed are the inverse operations:
- Add the same amount to both sides.
- Subtract the same amount from both sides.
- Multiply both sides by the same nonzero number.
- Divide both sides by the same nonzero number.
Your goal is to peel away everything surrounding the variable until it stands alone.
Worked Example 1. Solve .
The is wrapped in two operations: multiply by 3, then add 7. To undo them, work in reverse order — remove the first, then the .
Subtract 7 from both sides:
Divide both sides by 3:
Always check by substituting back: . Correct.
Worked Example 2 (variable on both sides). Solve .
Collect the variable terms on one side and the numbers on the other. Subtract from both sides:
Add 4 to both sides:
Check: left side ; right side . Balanced.
Worked Example 3 (fractions). Solve .
Fractions are easiest to clear all at once. Multiply every term by the least common denominator, which is 12:
Subtract 8, then divide by 3:
Slope-Intercept Form:
Move from one variable to two and a linear equation stops describing a single number and starts describing a whole line of points. The most revealing way to write it is slope-intercept form:
Two letters carry all the meaning:
- is the -intercept — the value of when , i.e. where the line crosses the vertical axis. It is the starting value.
- is the slope — how much changes for every 1-unit increase in . It is the rate of change, computed as "rise over run":
A positive slope tilts upward left-to-right; a negative slope tilts downward; a slope of 0 is a flat horizontal line; and a vertical line has an undefined slope (its run is zero, and you cannot divide by zero).
Worked Example 4 (equation from two points). A phone plan costs $40 for 2 GB of data and $70 for 5 GB. Find the linear equation relating cost to data .
First the slope — the cost per extra GB:
So each GB costs $10. Now find using one known point, say :
The equation is . The $20 intercept is a fixed monthly base fee — the cost even at 0 GB — and the slope is the $10-per-GB rate.
Graphing Lines
Because two points determine a line, graphing is fast. The slickest method uses the form directly:
- Plot the intercept on the -axis. For , mark .
- Use the slope as rise-over-run to step to a second point. Slope means: from go right 1, up 10 to reach .
- Draw the straight line through both points.
Alternatively, find the two axis intercepts. For : set to get (point ); set to get (point ). Plot both and connect. This "cover-up" method is often quickest for equations in standard form .
Linear Inequalities
Replace the equals sign with an inequality and you describe not a single line but a region or a range of solutions. You solve a linear inequality with the same balance moves — with one crucial extra rule:
When you multiply or divide both sides by a negative number, you must reverse the inequality sign.
Why? Consider a true statement, . Multiply both sides by : the numbers become and , and is actually greater than . Negation flips the order of the number line, so the symbol must flip too.
Worked Example 5. Solve .
Subtract 1 from both sides:
Divide both sides by — and flip the sign:
The solution is every number greater than or equal to . On a number line you draw a filled circle at (because includes equality) and shade to the right. Had the inequality been strict (), you would use an open circle.
Systems of Two Linear Equations
Often two conditions must hold at once, giving two equations in two unknowns. Their solution is the single pair that satisfies both — geometrically, the point where the two lines cross.
Method 1: Substitution. Solve one equation for one variable, then substitute into the other.
Worked Example 6. Solve
The first equation already gives , so substitute it into the second:
Back-substitute: . The solution is . Check in the second equation: . Correct.
Method 2: Elimination. Add or subtract the equations to cancel one variable.
Worked Example 7. Solve
Both have a term. Subtract the second equation from the first so the terms cancel:
Substitute back into : . The solution is .
Three possible outcomes. Two lines can (a) cross once — one solution; (b) be parallel and never meet — no solution (you'll reach a false statement like ); or (c) be the very same line - infinitely many solutions (you'll reach a true statement like ).
Real-World Applications
- Personal finance: Any "fixed fee plus a per-unit rate" situation is linear — phone plans, taxi fares, salary-plus-commission, gym membership, or a loan being paid down at a steady amount per month. Slope-intercept form lets you predict the total for any usage.
- Physics: An object moving at constant velocity obeys — a linear equation where the initial position is the intercept and the velocity is the slope.
- Chemistry and biology: Calibration curves (concentration vs. instrument reading) and simple dose-response ranges are treated as linear over their working region, so a measured signal can be converted to a concentration.
- Economics: Supply and demand curves are often modeled as lines; the market equilibrium price and quantity are exactly the solution of a system — the point where supply meets demand. See Economics.
- Engineering and business: Break-even analysis sets a linear cost equation equal to a linear revenue equation and solves the system to find the production level at which you stop losing money.
- Everyday planning: Converting temperatures (), scaling a recipe, or figuring out how long a road trip takes at a steady speed are all linear.
Common Mistakes
Mistake 1: Forgetting to flip the inequality sign. Students solve and write . This is wrong because dividing by the negative reverses the order of the number line. The correct answer is . Rule: flip the sign only when you multiply or divide by a negative, never when you add or subtract.
Mistake 2: Doing something to only one side. Writing (subtracting 7 from the left but not the right) breaks the balance. Every operation must hit both sides. Picture the scale tipping and you'll never forget.
Mistake 3: Confusing slope with intercept. Given , students sometimes call 3 the slope because it's written first. But slope is always the number multiplying — here the slope is 2 and the intercept is 3. Rearranging to the standard order makes it obvious. A useful habit is to always identify which number is attached to .
Mistake 4 (bonus): Mishandling the minus when distributing. In , the minus sign applies to every term in the parentheses, giving , not . Distribute the negative to all terms inside.
Comparison and Connections
| Concept | Highest power of variable | Graph shape | Number of solutions (one variable) |
|---|---|---|---|
| Linear equation | 1 | Straight line | Exactly one (usually) |
| Quadratic equation | 2 | Parabola | Up to two |
| Linear inequality | 1 | Half-line / shaded region | A range of values |
| System of two linear equations | 1 | Two lines | One, none, or infinitely many |
The three standard ways of writing the same line are worth knowing side by side: slope-intercept (best for graphing and reading rate), point-slope (best when you know a point and the slope), and standard form (best for the intercept "cover-up" method and for systems). They are algebraically interchangeable — pick whichever exposes what you need.
Two lines are parallel exactly when they share the same slope but have different intercepts, and perpendicular exactly when their slopes are negative reciprocals ().
Practice Questions
Recall
Identify the slope and -intercept of .
Answer: Slope ; -intercept (the point ).
Understanding
Solve the inequality and describe the solution.
Answer: Add 2: . Multiply by 3 (positive, no flip): . All numbers at least 9; filled circle at 9, shaded right.
Application
A taxi charges a $3 fixed fee plus $2 per mile. Write the cost equation, then find the cost of a 12-mile ride and how far $25 buys.
Answer: . For 12 miles: . For $25: miles.
Analysis
Solve the system and , then state what the answer means geometrically.
Answer: From the first, . Substitute: . Then . Solution — the single point where the two lines intersect. Check: . Correct.
FAQ
Q: How do I know if an equation is linear just by looking at it? A: Every variable must be to the first power only — no , no , no , and no two variables multiplied together (like ). If you can write it in the form , it is linear and its graph is a straight line.
Q: Why do we bother checking the answer by substituting back? A: Because a single slip in arithmetic can go unnoticed. Substituting your answer into the original equation is a fast, independent confirmation that both sides really do balance. It catches most careless errors before they cost you marks.
Q: What does it mean when solving a system gives ""? A: You've hit a contradiction — no values of and can make it true. Geometrically the two lines are parallel and never cross, so the system has no solution. If instead you get "", the two equations are the same line and there are infinitely many solutions.
Q: When exactly do I flip the inequality sign? A: Only when you multiply or divide both sides by a negative number. Adding, subtracting, or multiplying/dividing by a positive number never flips it. When in doubt, test a number from your answer in the original inequality to confirm.
Q: Is slope-intercept form always the best form to use? A: No — it's ideal for graphing and for reading off a rate of change, but if you're given a point and a slope, point-slope form is faster, and for solving systems by elimination, standard form is often cleaner. They all describe the same line, so convert freely.
Q: Can a linear equation have no solution or infinitely many, even in one variable? A: Yes. Solving gives (true for all - infinitely many solutions), while gives (never true — no solution). Most equations you meet have exactly one solution, but watch for these special cases.
Quick Revision
- Balance rule: do the same operation to both sides; undo operations in reverse order to isolate the variable.
- Slope-intercept form: , where = slope (rise/run) and = -intercept.
- Slope from two points: .
- Graphing: plot , then step by the slope (rise over run) to a second point.
- Inequalities: solve like equations, but flip the sign when multiplying or dividing by a negative.
- Systems: solve by substitution or elimination; solution = intersection point. Outcomes: one solution, none (parallel), or infinitely many (same line).
- Parallel lines share slope; perpendicular lines have slopes multiplying to .
- Always check your answer by substituting back into the original.