Factor the denominator $x^2 + 10x + 21$ by finding two numbers that multiply to $21$ and add to $10$, which are $3$ and $7$: $$(x+7) \cdot \frac{x^2+x+9}{(x+7)(x+3)}$$ 2. Cancel the common factor of $(x+7)$ from the numerator and denominator: $$\frac{x^2+x+9}{x+3}$$