Linear Fraction Equation: Solve It Simply
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator solves a linear fraction equation of the form (ax + b) / (cx + d) = e for x. You enter the coefficients a, b, c, d, and e, and it returns the value of x that makes the equation true. The solution is computed using the standard algebraic method of cross-multiplication, and the result is displayed as a decimal.
Formula
The equation is:
(a·x + b) / (c·x + d) = e
where:
- a – coefficient of x in the numerator (unitless)
- b – constant term in the numerator (unitless)
- c – coefficient of x in the denominator (unitless)
- d – constant term in the denominator (unitless)
- e – the value the fraction equals (unitless)
- x – the unknown you solve for (unitless)
To solve, cross-multiply: (a·x + b) = e·(c·x + d). Expand and rearrange to isolate x:
a·x + b = e·c·x + e·d
a·x – e·c·x = e·d – b
x·(a – e·c) = e·d – b
x = (e·d – b) / (a – e·c)
This formula works as long as the denominator (a – e·c) is not zero. If it is zero, the equation has no solution or infinite solutions, as explained later.
Worked Example
Using the default values: a = 2, b = 3, c = 4, d = 1, e = 5. The equation is:
(2x + 3) / (4x + 1) = 5
Step 1: Cross-multiply:
2x + 3 = 5·(4x + 1)
Step 2: Expand the right side:
2x + 3 = 20x + 5
Step 3: Move x terms to one side and constants to the other:
2x – 20x = 5 – 3
–18x = 2
Step 4: Divide by –18:
x = 2 / (–18) = –1/9 ≈ –0.1111
The calculator gives –0.1111 (rounded to 4 decimal places), which matches.
When to Use This Equation
Linear fraction equations appear in many real-world contexts where a ratio of two linear expressions equals a constant. For example:
- Calculating concentrations: (amount of solute) / (total volume) = desired concentration
- Physics problems involving rates: (distance) / (time) = speed
- Economics: (profit) / (cost) = target margin
- Everyday math: finding a number when a fraction of a linear expression is known
In each case, you set up the equation, identify the coefficients, and solve for the unknown using the same cross-multiplication method.
How to Read the Result
The output x is the value that makes the original equation true. For instance, with the default example, plugging x = –0.1111 back into (2x + 3)/(4x + 1) gives:
(2·(–0.1111) + 3) / (4·(–0.1111) + 1) = (2.7778) / (0.5556) = 5.0
So the solution checks out. If the result is negative, that’s perfectly valid—x can be any real number, including negative fractions.
Common Mistakes and Pitfalls
- Forgetting to cross-multiply correctly: Make sure you multiply the entire numerator by e, not just the first term.
- Sign errors when moving terms: When you subtract e·c·x from both sides, keep track of signs carefully.
- Dividing by zero: If a – e·c = 0, the equation either has no solution (if e·d – b ≠0) or infinitely many (if e·d – b = 0). For example, (2x+1)/(x+0.5) = 2 simplifies to 2 = 2, so any x works (except x = –0.5).
- Rounding too early: If you round intermediate steps, the final answer can be off. Use full precision until the end.
- Unit mix-ups: In real problems, ensure all coefficients have consistent units. The calculator treats them as unitless, so you must convert to the same units beforehand.
Limitations of the Formula
This method only works for linear fractions—that is, both numerator and denominator are linear expressions (degree 1). If you have quadratic terms (x²) or higher, cross-multiplication leads to a polynomial equation that requires different techniques. Also, the solution assumes e is a constant; if e depends on x, the equation becomes more complex. Finally, the formula fails when the denominator (a – e·c) is zero, as noted above. In such cases, check if the numerator (e·d – b) is also zero: if yes, every x (except the one that makes the original denominator zero) is a solution; if no, no solution exists.
Frequently Asked Questions
What if the denominator (a – e·c) is zero?
If a – e·c = 0, the equation becomes 0·x = e·d – b. If e·d – b is also 0, then the equation is true for all x (except where c·x + d = 0, which would make the original fraction undefined). If e·d – b is not 0, then there is no solution. For example, (2x+1)/(x+0.5) = 2 has a – e·c = 2 – 2·1 = 0 and e·d – b = 2·0.5 – 1 = 0, so every x except –0.5 works.
How do I solve if the right side is a fraction?
If e is a fraction, treat it as a decimal or keep it as a fraction in the formula. For instance, if e = 3/4, then x = ( (3/4)·d – b ) / ( a – (3/4)·c ). You can enter 0.75 in the calculator or do the fraction arithmetic manually.
Can I use this for equations with variables in the denominator?
Yes, that’s exactly what this calculator handles. The denominator is c·x + d, so x appears in the denominator. The cross-multiplication method works as long as you remember that x cannot equal –d/c, because that would make the denominator zero.
What if the equation has x on both sides?
That is still a linear fraction equation. For example, (2x+3)/(x–1) = x+2 is not linear because the right side contains x. But if the right side is a constant (like 5), then you have a linear fraction equation. If the right side has x, you may end up with a quadratic after cross-multiplying, which is not covered by this calculator.
Why does the calculator show a decimal instead of a fraction?
The calculator outputs a decimal for simplicity. You can convert the decimal back to a fraction if needed. For instance, –0.1111 is approximately –1/9. Use the fraction button on a scientific calculator or do the conversion manually.
Can I solve this by plugging in numbers instead of algebra?
You could try guess-and-check, but algebra is faster and guarantees the exact answer. The cross-multiplication method is the standard approach taught in algebra courses and works for any linear fraction equation.
Related
Formula used
in a | Coefficient a | - | 2 | 0 in b | Coefficient b | - | 3 | 0 in c | Coefficient c | - | 4 | 0 in d | Coefficient d | - | 1 | 0 in e | Right-hand side | - | 5 | 0 out x | Solution x | - | (e*d - b) / (a - e*c) | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.