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 entered1x+x=52\frac{1}{x} + x = \frac{5}{2}

x=12, x=2\displaystyle x = \frac{1}{2},\ x = 2
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≠0x \neq 0
  2. Multiply by the least common denominator

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

    LCD=2x⇒2x2+2=5x\begin{gathered} \text{LCD} = 2x \\ \Rightarrow \\ 2x^{2} + 2 = 5x \end{gathered}
  3. Solve the polynomial equation

    Move everything to one side and solve it.

    2x2−5x+2=0⇒x=12 or x=2\begin{gathered} 2x^{2} - 5x + 2 = 0 \\ \Rightarrow \\ x = \frac{1}{2}\text{ or }x = 2 \end{gathered}
  4. Check against the restrictions

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

    x=12: allowedx=2: allowed\begin{gathered} x = \frac{1}{2}:\ \text{allowed} \\ x = 2:\ \text{allowed} \end{gathered}
  5. Result

    The solutions are x=12, x=2x = \frac{1}{2},\ x = 2.

Worked examples