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

x=3\displaystyle x = 3
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⇒x+2=5\begin{gathered} \text{LCD} = 2x \\ \Rightarrow \\ x + 2 = 5 \end{gathered}
  3. Solve the polynomial equation

    Move everything to one side and solve it.

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

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

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

    The solution is x=3x = 3.

Worked examples