How to use the calculator
Pick an operation, then type each expression the way you would write it on paper. Use / for fraction bars and ^ for powers, and put brackets around any numerator or denominator with more than one term: (x^2 - 4x - 21)/(x^2 + x - 6), not x^2 - 9/x^2 + x - 6. You can leave out the multiplication sign, so 3x and (x - 1)^2 (x + 2) both work. Negative powers such as (x + 1)^-1 are fine. You can also use any single letter as the variable, so t or n work as well as x.
The operations fall into three groups. With one expression, you can simplify it, split it into partial fractions or evaluate it at a number. With two expressions, you can add, subtract, multiply or divide them. To solve an equation, put the left side in the first box and the right side in the second.
Each result shows the answer in factored form and expanded form, then lists the excluded values, holes, vertical asymptotes, end behaviour and intercepts. The working explains every step, and a final check substitutes x = 7/3 into both your input and the answer to confirm they agree. Arithmetic is exact: decimals are turned into fractions, so 0.5x/(x² + 1.5x) simplifies to 1/(2x + 3) with no rounding.
What a rational expression is
A rational expression is one polynomial divided by another, such as 3/(x + 2) or (x² − 4x − 21)/(x² + x − 6). It behaves like a numerical fraction, with the same rules for cancelling, common denominators and reciprocals. The one new issue is that the denominator changes with x, so some values of x make it zero. At those values the expression has no meaning, and they have to be excluded.
Expressions with roots, logarithms or the variable in an exponent are not rational. For example, √x/(x + 1) is not a rational expression, and neither is 2^x/x. The calculator will tell you if your input falls outside this family.
Simplifying and excluded values
To simplify, factor the top and bottom completely, then cancel any factor they share. Take (x² − 4x − 21)/(x² + x − 6). The numerator is (x − 7)(x + 3) and the denominator is (x + 3)(x − 2). Cancelling x + 3 leaves (x − 7)/(x − 2).
The simplified form is not quite the same expression as the original. The original is undefined at x = −3 and x = 2. The simplified form only has a problem at x = 2. So the full answer is (x − 7)/(x − 2) with x ≠ −3 and x ≠ 2. Always find the excluded values from the original denominators, before you cancel anything. When an expression has a fraction inside a fraction, the inner denominators count too.
Only factors cancel, not terms. In (x + 6)/6 the 6s cannot cancel, because the 6 on top is part of a sum. If you are unsure, factor first: if something is multiplied by everything else on the top and the bottom, it can go.
Holes, asymptotes and end behaviour
The excluded values show up on a graph in two ways. If a factor cancels, its zero becomes a hole: a single missing point, with the curve passing straight through the gap. For (x² − 4x − 21)/(x² + x − 6), the hole is at x = −3. Substituting −3 into the simplified form gives (−10)/(−5) = 2, so the gap is at (−3, 2). A factor that stays in the denominator gives a vertical asymptote instead. Here that is x = 2, where the curve shoots up or down without limit.
End behaviour depends on the degrees of the simplified numerator and denominator.
- Top degree lower: the horizontal asymptote is y = 0.
- Equal degrees: the horizontal asymptote is the ratio of the leading coefficients. For (x − 7)/(x − 2) it is y = 1.
- Top degree higher by one: there is a slant asymptote, found by polynomial division.
- Top degree higher by two or more: the curve follows a polynomial for large x.
The calculator reports all of these, along with the x-intercepts (zeros of the simplified numerator) and the y-intercept. That is usually everything you need to sketch the graph by hand.
Adding, subtracting, multiplying and dividing
Adding and subtracting need a common denominator. The least common denominator (LCD) contains every factor of each denominator, each at its highest power. For 5/(x + 4) + x/(x − 3), the LCD is (x + 4)(x − 3). Multiply the first fraction’s top and bottom by x − 3 and the second’s by x + 4, then add the numerators: 5(x − 3) + x(x + 4) = x² + 9x − 15. The result is (x² + 9x − 15)/((x + 4)(x − 3)). Factor the denominators first. In 7/(x² − 9) − 2/(x + 3), the first denominator already contains x + 3, so the LCD is simply (x + 3)(x − 3), not (x² − 9)(x + 3).
When subtracting, the minus sign applies to the whole second numerator. Here that numerator becomes 2(x − 3), so the top is 7 − (2x − 6) = 13 − 2x, not 7 − 2x − 6.
Multiplying needs no common denominator. Factor everything, cancel any factor that appears anywhere on top against the same factor anywhere below, and then multiply what is left. In (x² − 36)/(3x + 15) × (x + 5)/(x − 6), the x − 6 and x + 5 both cancel, leaving (x + 6)/3.
Dividing means multiplying by the reciprocal of the second fraction. This brings an extra restriction: the second fraction cannot be zero, so its numerator’s zeros are also excluded. In (x² + 5x)/(x − 3) ÷ (x + 5)/(x² − 9), the answer simplifies to x(x + 3), but x = −5, −3 and 3 are all still excluded.
Solving rational equations
An equation is different from an expression, because the denominators can be cleared completely. Find the excluded values first, multiply every term on both sides by the LCD, and solve the polynomial equation that is left. Then check each answer against the excluded values.
Take 2/(x − 1) + 1 = 4/(x² − 1). The excluded values are x = 1 and x = −1. Multiplying through by (x + 1)(x − 1) gives 2(x + 1) + (x² − 1) = 4, which tidies up to x² + 2x − 3 = 0, or (x + 3)(x − 1) = 0. The candidates are x = −3 and x = 1. But x = 1 makes the original denominators zero, so it is an extraneous solution and must be rejected. The only answer is x = −3. Check: 2/(−4) + 1 = 0.5 and 4/8 = 0.5.
Extraneous roots appear because multiplying by the LCD multiplies by zero at the excluded values. That step can add solutions the original equation never had. If every candidate is rejected, the equation has no solution. An example is x/(x − 3) = 3/(x − 3), where the only candidate is x = 3.
Complex fractions and partial fractions
A complex fraction has fractions inside its numerator or denominator, such as (2 − 2/x)/(1 − 1/x²). One clean method is to multiply the top and bottom by the LCD of all the small fractions, here x². That gives (2x² − 2x)/(x² − 1) = 2x(x − 1)/((x − 1)(x + 1)) = 2x/(x + 1). The excluded values are 0 (from the inner fractions) as well as 1 and −1. The calculator handles nested fractions to any depth.
Partial fractions do the opposite of adding: they split one fraction into a sum of simpler ones. To split (4x − 1)/(x² + x − 2), factor the denominator as (x + 2)(x − 1) and write A/(x + 2) + B/(x − 1). Multiplying out gives 4x − 1 = A(x − 1) + B(x + 2). Putting x = 1 gives 3 = 3B, so B = 1. Putting x = −2 gives −9 = −3A, so A = 3. The result is 3/(x + 2) + 1/(x − 1).
A repeated factor needs one term for each power. For (3x² − 3x + 3)/((x − 2)²(x + 1)), the form is A/(x + 1) + B/(x − 2) + C/(x − 2)², which works out to 1/(x + 1) + 2/(x − 2) + 3/(x − 2)². An irreducible quadratic factor such as x² + 1 gets a linear numerator, (Bx + C)/(x² + 1). If the numerator’s degree is not lower than the denominator’s, the calculator divides first and lists the polynomial part separately.
Where rational expressions come up
- Average speed and round trips. A cyclist rides 60 km out and 60 km back, 10 km/h faster on the return, and takes 5 hours in total. Time is distance over speed, so 60/x + 60/(x + 10) = 5. The solver gives x = 20 or x = −6, and only 20 km/h makes sense as a speed.
- Resistors in parallel. Two resistors of x and x + 9 ohms in parallel give 6 ohms when 1/x + 1/(x + 9) = 1/6. The roots are 9 and −6, so the resistors are 9 Ω and 18 Ω. The thin-lens formula 1/f = 1/u + 1/v has the same shape.
- Shared work. If one pump fills a tank in t hours and another takes t + 2 hours, together they fill 1/t + 1/(t + 2) of the tank per hour. Adding those two fractions gives the combined rate.
- Average cost. A product with a fixed cost of 500 and a cost of 3 per unit has an average cost of (500 + 3n)/n per unit. Its horizontal asymptote, y = 3, shows that the average cost approaches the cost per unit as n grows, but never reaches it.
- Calculus. Partial fractions turn hard integrals into easy ones. The integral of (4x − 1)/(x² + x − 2) becomes 3 ln|x + 2| + ln|x − 1| + C. Limits that look like 0/0 are often holes, so you can find them by cancelling a factor.
In applied problems, an algebraic solution can still be impossible in practice, like the negative speed and resistance above. That is not the same as an extraneous root. The equation is satisfied, but the situation rules the answer out.
Common mistakes
- Cancelling terms instead of factors. (x² + 4)/(x + 2) does not simplify to x + 2. Its numerator does not factor over the real numbers, so nothing cancels.
- Losing excluded values after cancelling. x/x equals 1 everywhere except x = 0, where it is undefined. Graphs and answers should show that gap.
- Distributing the minus sign to the first term only. When you subtract a fraction, put its numerator in brackets first.
- Adding the denominators. 1/x + 1/y is (x + y)/(xy), not 2/(x + y).
- Forgetting the divisor’s numerator. When dividing by P/Q, the zeros of P are excluded as well as the zeros of Q.
- Skipping the check when solving. Any candidate that makes an original denominator zero must be rejected, even if the algebra after clearing fractions looked correct.