Question: User: do an example of integral
1. **Problem Statement:** Calculate the integral $$\int (3x^2 + 2x + 1) \, dx$$.
2. **Formula Used:** The integral of a polynomial term $$ax^n$$ is given by $$\int ax^n \, dx = \frac{a}{n+1}x^{n+1} + C$$, where $$C$$ is the constant of integration.
3. **Step-by-step Solution:**
- Integrate each term separately:
$$\int 3x^2 \, dx = 3 \times \frac{x^{2+1}}{2+1} = 3 \times \frac{x^3}{3} = x^3$$
$$\int 2x \, dx = 2 \times \frac{x^{1+1}}{1+1} = 2 \times \frac{x^2}{2} = x^2$$
$$\int 1 \, dx = x$$
4. **Combine the results:**
$$x^3 + x^2 + x + C$$
5. **Final Answer:**
$$\int (3x^2 + 2x + 1) \, dx = x^3 + x^2 + x + C$$
This shows how to integrate a polynomial by applying the power rule to each term and adding the constant of integration.