Linear Equation
solver.
Solve for x when it sits on one or both sides, with each move and a check.
- Kind of equation
- One solution
- Left and right slopes
- 5 and 2
The two sides are equal only at x = 4. Below that the left side is smaller, and above it the right side is.
Working
- 1Start from the equation5x − 3 = 2x + 9
- 2Subtract 2x from both sides3x − 3 = 9
- 3Add 3 to both sides3x = 12
- 4Divide both sides by 3x=123=4
- 5Check: put the answer back into both sides5(4) − 3 = 172(4) + 9 = 17
Each side as a line
Drag the point to change dThe lines y = 5x − 3 and y = 2x + 9 cross at x = 4, where both sides equal 17.
What if d changes
| d | Equation | x |
|---|---|---|
| 65x − 3 = 2x + 6 | 5x − 3 = 2x + 6 | 3 |
| 75x − 3 = 2x + 7 | 5x − 3 = 2x + 7 | 3.333333 |
| 85x − 3 = 2x + 8 | 5x − 3 = 2x + 8 | 3.666667 |
| 9 (yours)5x − 3 = 2x + 9 | 5x − 3 = 2x + 9 | 4 |
| 105x − 3 = 2x + 10 | 5x − 3 = 2x + 10 | 4.333333 |
| 115x − 3 = 2x + 11 | 5x − 3 = 2x + 11 | 4.666667 |
| 125x − 3 = 2x + 12 | 5x − 3 = 2x + 12 | 5 |
Solve a list of equations
Type or paste rows of a, b, c and d from ax + b = cx + d. Each row gets its own answer.
| # | a | b | c | d |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 |
Answer for each row
| Equation | x |
|---|---|
| 3x + 7 = 22 | 5 |
| 4x + 1 = x + 3 | 23 |
| 2x + 3 = 2x + 4 | None |
| 2x + 3 = 2x + 3 | Every x |
How it's worked out
Whatever you do to one side, you do to the other. The aim is to get x alone. There is no set order, but one route always works: gather the x terms on the left and the plain numbers on the right, then divide.
Here a and c are the numbers in front of x on each side, and b and d are the plain numbers. In , subtracting and adding 3 leaves , so x is 4.
One answer, none or every number. If a and c differ, there is exactly one answer. If they match, x cancels, and what is left decides it. A true statement like 3 = 3 means an identity, so every x works. A false one like 3 = 4 means an inconsistent equation, so no x works.
Two equations. For a pair in x and y, the tool uses Cramer's rule, which divides one determinant by another. A determinant is a number worked out from a square of numbers.
If D is 0, the rule cannot give a value. The lines are then either parallel or the same line.
Worked examples
Omar compares two phone plans
Plan A costs $20 a month plus $0.10 a minute. Plan B costs $35 a month plus $0.05 a minute. Omar wants the usage where they cost the same, so he sets the two costs equal.
They match at 300 minutes, where each costs $50. At 100 minutes plan A costs $30 and plan B costs $40, so plan A is cheaper below that point and plan B above it.
Bea finds where two temperature scales agree
Fahrenheit is 1.8 times Celsius plus 32. Bea asks which reading is the same in both, so she puts x on both sides.
The answer is x = −40, so −40 degrees reads the same on both scales. The x on the right has an unwritten 1 in front of it, which goes in the c box.
Kai solves for two unknowns
Two numbers add up to 10, and their difference is 4. Kai writes one equation for each fact and enters the pair.
D is −2, and dividing gives x = 7 and y = 3. Both facts hold: their sum is 10 and their difference is 4. For more methods on pairs, use the systems of equations solver.
Reading your result
Exact or decimal. gives exactly , which is 0.666667 as a rounded decimal. Keep the fraction if the answer goes into a later step, so rounding does not creep in. This also works for decimals: gives , not a long decimal.
Reading the graph. Each side of the equation is a straight line, with a and c as the slopes. The answer is the x where they cross. Different slopes always cross once, equal slopes with different plain numbers never meet (no solution), and equal slopes with equal plain numbers are one line drawn twice (every x).
What counts as linear. x must be to the first power, and not under a root, in a denominator or inside bars. Expand brackets and clear fractions first. becomes , which gives x = 4. For , use the quadratic solver, and for a range of answers use the inequality solver.
A pair with no answer. With 3x − 2y = 5 and 6x − 4y = 7, D is 0. The second equation has both left numbers doubled but not the right one, so the lines are parallel.
Common mistakes
- Moving a term without changing its sign. Taking +7 across the equals sign means subtracting 7 from both sides, so it arrives as −7.
- Dividing only part of a side. In , divide the whole right side by 3, which gives 6, and not 4 + 6.
- Dropping a negative. From the answer is x = −4. Dividing by 2 instead of −2 gets the sign wrong.
- Distributing to the first term only. is , and not .
- Calling 0 = 0 a mistake. It means every x works. And 0 = 4 is also an answer: it means no x works.