Linear Equation Solver — Solve ax + b = c
x =
--
Steps
--
How Linear Equations Work
A linear equation is an algebraic equation in which the highest power of the variable is 1, producing a straight-line graph when plotted on a coordinate plane. The general form for a linear equation in one variable is ax + b = c, where a, b, and c are constants and x is the unknown. According to the National Council of Teachers of Mathematics (NCTM), solving linear equations is one of the core algebra skills and a prerequisite for virtually all higher mathematics.
Linear equations appear everywhere in daily life: calculating how long a trip will take at a constant speed (distance = rate × time), converting between temperature scales (F = 1.8C + 32), determining break-even points in business (revenue = cost), and computing dosage based on body weight. The Common Core State Standards introduce solving one-step equations in grade 6 (standard 6.EE.7) and multi-step equations in grade 7, reflecting how fundamental this skill is to mathematical literacy.
This calculator solves linear equations of the form ax + b = c, showing step-by-step work. It handles the standard case (unique solution), as well as special cases: no solution (contradiction) and infinitely many solutions (identity). For equations with two unknowns, use our Simultaneous Equation Calculator.
The Linear Equation Formula
Solving a linear equation follows a systematic two-step process based on the properties of equality (addition/subtraction property and multiplication/division property).
Given: ax + b = c
Step 1: Subtract b from both sides: ax = c − b
Step 2: Divide both sides by a: x = (c − b) / a
Condition: a ≠ 0 (if a = 0, the equation is either an identity or a contradiction)
Worked example: Solve 3x + 7 = 22. Step 1: 3x = 22 − 7 = 15. Step 2: x = 15/3 = 5. Verification: 3(5) + 7 = 15 + 7 = 22. The solution is correct. This simple process extends to more complex equations by first simplifying both sides (distributing, combining like terms) until you reach the ax + b = c form.
Key Terms You Should Know
- Variable -- a symbol (typically x) representing an unknown value to be determined. In ax + b = c, x is the variable.
- Coefficient -- the number multiplied by the variable. In 3x + 7 = 22, the coefficient is 3.
- Constant -- a fixed number without a variable. In 3x + 7 = 22, both 7 and 22 are constants.
- Identity -- an equation that is true for all values of the variable, such as 2x + 4 = 2(x + 2). After simplifying, both sides are identical.
- Contradiction -- an equation with no solution, such as x + 5 = x + 3. After simplifying, you get a false statement like 5 = 3.
- Slope-intercept form -- the form y = mx + b used to graph lines, where m is the slope and b is the y-intercept. This is a rearrangement of the general linear equation.
Types of Linear Equations and Their Solutions
Understanding the three possible outcomes of a linear equation is essential for correctly interpreting results.
| Type | Condition | Solutions | Example |
|---|---|---|---|
| Conditional | a ≠ 0 | Exactly one | 2x + 3 = 11 → x = 4 |
| Identity | a = 0, b = c | Infinitely many (all real numbers) | 0x + 5 = 5 → true for all x |
| Contradiction | a = 0, b ≠ c | None | 0x + 3 = 7 → 3 = 7 (false) |
Practical Examples
Temperature conversion. The formula F = 1.8C + 32 converts Celsius to Fahrenheit. To find what Celsius temperature equals 98.6°F (normal body temperature): 1.8C + 32 = 98.6 → 1.8C = 66.6 → C = 37°. Here a = 1.8, b = 32, c = 98.6.
Break-even analysis. A business has fixed costs of $5,000/month and produces widgets at $8 each, selling them for $15 each. The break-even equation is 15x = 8x + 5000, which simplifies to 7x = 5000 → x = 714.3. The business must sell at least 715 widgets per month to break even. For detailed financial analysis, try our Percentage Calculator for margin and markup computations.
Speed-distance-time. A car travels at 65 mph. How long to travel 325 miles? Using distance = rate × time: 65t = 325 → t = 5 hours. If the car must arrive in 4 hours: required speed = 325/4 = 81.25 mph. These constant-rate problems are the most intuitive application of linear equations.
Tips for Solving Equations
- Always verify your answer. Substitute the solution back into the original equation to confirm both sides are equal. This catches arithmetic errors immediately.
- Simplify both sides first. If the equation has parentheses or like terms, distribute and combine before isolating the variable. For example, 2(x + 3) − 4 = 10 becomes 2x + 6 − 4 = 10, then 2x + 2 = 10.
- Move variable terms to one side. If the variable appears on both sides (5x + 3 = 3x + 9), subtract 3x from both sides first to get 2x + 3 = 9, then solve normally.
- Clear fractions by multiplying. If the equation contains fractions (x/3 + 1/4 = 5/6), multiply every term by the LCD (12) to eliminate denominators: 4x + 3 = 10.
- Recognize special cases early. If all variable terms cancel out, check whether the remaining statement is true (identity, infinite solutions) or false (contradiction, no solution).
Beyond Linear: Higher-Degree Equations
While linear equations have at most one solution, quadratic equations (degree 2) can have 0, 1, or 2 solutions, and polynomial equations of degree n can have up to n solutions. The quadratic formula x = (−b ± √(b² − 4ac)) / 2a solves any equation of the form ax² + bx + c = 0. Use our Quadratic Formula Calculator for degree-2 equations, or our Polynomial Calculator for higher degrees.
Systems of linear equations (multiple equations with multiple unknowns) require different solution methods: substitution, elimination, or matrix methods. A system of two equations in two unknowns can have one solution (intersecting lines), no solution (parallel lines), or infinitely many solutions (identical lines). According to linear algebra textbooks, Gaussian elimination is the standard algorithm for solving systems, with computational complexity of O(n3) for n equations. Our Simultaneous Equation Calculator handles 2×2 and 3×3 systems.
Frequently Asked Questions
What is a linear equation?
A linear equation is an algebraic equation where the highest power of the variable is 1. In standard form, it is written as ax + b = c, where a is the coefficient (a ≠ 0), b is a constant, and c is the result. When graphed on a coordinate plane, a linear equation produces a straight line, which is the origin of the name "linear." Linear equations model constant-rate relationships, such as distance = speed × time, total cost = price × quantity + fixed costs, and Fahrenheit = 1.8 × Celsius + 32.
Can a linear equation have no solution?
Yes, a linear equation can have no solution when it reduces to a contradiction -- a false statement like 0 = 5. This occurs when the coefficient of x is zero but the constants are unequal (0x + b = c where b ≠ c). In a system of equations, no solution means the lines are parallel and never intersect. For example, x + 2 = x + 5 simplifies to 2 = 5, which is always false regardless of x. The equation has no solution because no value of x can make a false statement true.
What does it mean if a linear equation has infinite solutions?
An equation has infinitely many solutions when it reduces to an identity -- a statement that is always true, like 0 = 0 or 5 = 5. This means the original equation is true for every possible value of x. For example, 2(x + 3) = 2x + 6 simplifies to 6 = 6, which holds for all x. In a system context, this means the two equations represent the same line, so every point on that line is a solution. Identities often arise when one equation is a multiple of another.
How do you solve a linear equation with fractions?
To solve an equation with fractions, multiply every term by the least common denominator (LCD) to eliminate all fractions. For x/3 + 1/4 = 5/6: the LCD of 3, 4, and 6 is 12. Multiplying each term by 12 gives 4x + 3 = 10, so 4x = 7 and x = 7/4 = 1.75. Verification: 1.75/3 + 0.25 = 0.5833 + 0.25 = 0.8333 = 5/6. This method transforms a messy fractional equation into a clean integer equation, making it much easier to solve. Use our Fraction Calculator to verify fraction arithmetic.
What is the difference between an equation and an expression?
An equation contains an equals sign and states that two things are equal (3x + 2 = 14). An expression is a mathematical phrase without an equals sign (3x + 2). You can solve an equation to find the value of the variable, but you can only simplify or evaluate an expression. This distinction is fundamental: equations have solutions, expressions have values. For example, "3x + 2" is an expression that equals 14 when x = 4, but "3x + 2 = 14" is an equation whose solution is x = 4.
How do linear equations relate to graphs?
Every linear equation in two variables (like y = 2x + 3) graphs as a straight line on the coordinate plane. The slope (m = 2 in this example) describes how steeply the line rises or falls: a slope of 2 means y increases by 2 for every 1-unit increase in x. The y-intercept (b = 3) is where the line crosses the y-axis. Two distinct lines either intersect at exactly one point (one solution to the system), are parallel (no solution), or are identical (infinitely many solutions). Use our Simultaneous Equation Calculator to find intersection points of two lines.