Solve for a and b in (x^2 + ax - 4)/(x + 2) + (x + b)/(x + 2) = x + 1

Check the final answer first, then review the worked steps.

Answer

\(a = 2, b = 6\)

Work

$$\frac{x^2 + ax - 4 + x + b}{x + 2} = x + 1$$
$$x^2 + (a+1)x + (b-4) = (x+1)(x+2)$$
$$x^2 + (a+1)x + (b-4) = x^2 + 3x + 2$$
$$a+1=3 \implies a=2$$
$$b-4=2 \implies b=6$$

Step-by-step solution

  1. Combine the fractions since they have a common denominator: $\frac{x^2 + ax - 4 + x + b}{x + 2} = x + 1$.
  2. Multiply both sides by $(x + 2)$ to clear the denominator: $x^2 + (a + 1)x + (b - 4) = (x + 1)(x + 2)$.
  3. Expand the right side: $(x + 1)(x + 2) = x^2 + 3x + 2$.
  4. Compare the coefficients of the two polynomials: $a + 1 = 3$ and $b - 4 = 2$.
  5. Solve for $a$ and $b$: $a = 2$ and $b = 6$.