Subjects calculus

Indefinite Integral

Step-by-step solutions with LaTeX - clean, fast, and student-friendly.

Use the AI math solver

1. **State the problem:** Find the indefinite integral $$\int \frac{x^2 - 4}{x + 2} \, dx.$$\n\n2. **Simplify the integrand:** Notice that the numerator can be factored as $$x^2 - 4 = (x - 2)(x + 2).$$\n\n3. **Rewrite the integrand:** Substitute the factorization into the integral:\n$$\int \frac{(x - 2)(x + 2)}{x + 2} \, dx.$$\n\n4. **Cancel common factors:** Since $$x + 2 \neq 0,$$ we can cancel $$x + 2$$ in numerator and denominator:\n$$\int (x - 2) \, dx.$$\n\n5. **Integrate term-by-term:**\n$$\int x \, dx - \int 2 \, dx = \frac{x^2}{2} - 2x + C,$$ where $$C$$ is the constant of integration.\n\n6. **Final answer:**\n$$\boxed{\frac{x^2}{2} - 2x + C}.$$\n\nThis corresponds to option (c).