Rational Equation Calculator

Enter an equation with x in a denominator to solve it.

An equation in x with fractions of polynomials, such as 1/x + 1/2 = 5/(2x).

Try

Result

You enteredxx−2=3x−2+2\frac{x}{x - 2} = \frac{3}{x - 2} + 2

x=1\displaystyle x = 1
Show the work
  1. Restrictions on x

    A fraction is undefined when its denominator is 0, so first list the values of x that are not allowed. Any answer equal to one of them must be thrown out.

    x≠2x \neq 2
  2. Multiply by the least common denominator

    Multiply both sides by the least common denominator, x−2x - 2. Every denominator divides it, so all the fractions disappear and a polynomial equation remains.

    LCD=x−2⇒x=2x−1\begin{gathered} \text{LCD} = x - 2 \\ \Rightarrow \\ x = 2x - 1 \end{gathered}
  3. Solve the polynomial equation

    Move everything to one side and solve it.

    x−1=0⇒x=1\begin{gathered} x - 1 = 0 \\ \Rightarrow \\ x = 1 \end{gathered}
  4. Check against the restrictions

    None of the answers is an excluded value, so all of them stay.

    x=1: allowedx = 1:\ \text{allowed}
  5. Result

    The solution is x=1x = 1.

Worked examples