Skip to content
LoveToCalc

Rational expressions

A rational expression is a fraction with a polynomial on top and below. It works like a fraction, with one addition — the values where the denominator is zero.

In Swedish: Rationella uttryck

Practice questions

Answer each part and check it, or show the solution step by step.

Simplify a rational expression

Simplify the expression, and state the values of x for which it is not defined.

(x² − 7x + 10)/(5x − 25)

The simplified expression

Separate several numbers with a semicolon or a comma: 2; −3.

Add two rational expressions

Write as one fraction, and state the values of x for which the expression is not defined.

5/(x + 5) + 2/(x − 4)

As one fraction

Separate several numbers with a semicolon or a comma: 2; −3.

Subtract two rational expressions

Write as one fraction, and state the values of x for which the expression is not defined.

1/(x + 3) − 5/(x + 4)

As one fraction

Separate several numbers with a semicolon or a comma: 2; −3.

Solve a rational equation

Solve the equation.

4/(x − 1) = 2/(x + 4)

Separate several numbers with a semicolon or a comma: 2; −3.

What a rational expression is

A rational expression is a quotient p(x)/q(x) of two polynomials, such as (x² − x − 6)/(x² − 9). It is defined for every x where the denominator q(x) is not zero. Here x² − 9 = 0 at x = 3 and x = −3, so the expression is not defined there.

Simplify: factorise and cancel

Factorise the numerator and the denominator separately and cancel the factors they share:

(x² − x − 6)/(x² − 9) = (x − 3)(x + 2)/((x − 3)(x + 3)) = (x + 2)/(x + 3), where x ≠ 3 and x ≠ −3.

The condition x ≠ 3 stays after cancelling. The simplified expression (x + 2)/(x + 3) has a value at x = 3, but the original does not, and the two are equal only where both are defined.

Add and subtract

Write both fractions over a common denominator, multiply each up, and add the numerators:

2/(x − 1) + 3/(x + 2) = (2(x + 2) + 3(x − 1))/((x − 1)(x + 2)) = (5x + 1)/((x − 1)(x + 2)).

When subtracting, the minus sign applies to the whole second numerator: 3/(x − 2) − 1/(x + 1) has the numerator 3(x + 1) − (x − 2) = 2x + 5.

Equations

First state the values x may not take, then multiply both sides by the denominators and solve. In 3/(x − 1) = 2/(x + 2), x may not be 1 or −2. Multiplying by (x − 1)(x + 2) gives 3(x + 2) = 2(x − 1), so x = −8. That is none of the excluded values, so x = −8 is the solution. Had the answer been an excluded value, the equation would have had no solution.

Common mistakes

See also

Polynomial division, for a numerator of higher degree than the denominator, and the difference of two squares, which factorises x² − 9.

Last reviewed October 19, 2026 ·How pages are reviewed

PolynomialsAll formulas