Stuck on this? Solve it with AI
Algebra · real student question

Simplify (2x − 4 + (x + 1)(x − 2)) / ((x + 1)(x − 2)).

Question

Simplify

2x−4+(x+1)(x−2)(x+1)(x−2)\frac{2x-4+(x+1)(x-2)}{(x+1)(x-2)}

Step-by-step solution

  1. Do not cancel before the numerator is a single product. The numerator is a sum, and only common factors may be cancelled. So the first job is to expand and re-factor the top; leaving (x+1)(x−2)(x+1)(x-2) visible on top and cancelling it against the bottom would be wrong, because the 2x−42x-4 term is still attached by addition.

  2. Expand the product in the numerator.

    (x+1)(x−2)=x2−x−2(x+1)(x-2)=x^2-x-2

    so the numerator becomes

    2x−4+x2−x−2=x2+x−62x-4+x^2-x-2=x^2+x-6

  3. Factor the collected numerator. Two numbers multiplying to −6-6 and adding to +1+1 are 33 and −2-2:

    x2+x−6=(x+3)(x−2)x^2+x-6=(x+3)(x-2)

  4. Cancel the common factor.

    (x+3)(x−2)(x+1)(x−2)=x+3x+1\frac{(x+3)(x-2)}{(x+1)(x-2)}=\frac{x+3}{x+1}

    x+3x+1\boxed{\dfrac{x+3}{x+1}}

  5. State the restrictions and spot-check. The cancellation is valid only where x≠2x\neq 2, and the original expression also requires x≠−1x\neq -1; both exclusions survive into the answer's domain. Testing x=5x=5: the original numerator is 10−4+(6)(3)=2410-4+(6)(3)=24 and the denominator is (6)(3)=18(6)(3)=18, giving 2418=43\tfrac{24}{18}=\tfrac{4}{3}, while 5+35+1=86=43\tfrac{5+3}{5+1}=\tfrac{8}{6}=\tfrac{4}{3} — they agree.

Answer

x+3x+1(x≠2, x≠−1)\dfrac{x+3}{x+1}\quad (x\neq 2,\ x\neq -1)

Need to solve a different problem like this? Open the solver →