Step 1: Understanding the Concept:
We have to find the indefinite integral of a simple polynomial. Integration is the reverse of differentiation, so the answer is a function whose derivative is \( x+2 \), plus an arbitrary constant \( k \).
Step 2: Key Formula or Approach:
1. Sum rule: \( \int [f(x)+g(x)]\,dx = \int f(x)\,dx + \int g(x)\,dx \).
2. Power rule: \( \int x^n\,dx = \frac{x^{n+1}}{n+1} + k \) for \( n \neq -1 \).
3. Constant rule: \( \int c\,dx = cx + k \).
Step 3: Detailed Explanation:
Split the integral into two parts.
\[ \int (x+2)\,dx = \int x\,dx + \int 2\,dx \]
Apply the power rule to the first part with \( n=1 \).
\[ \int x\,dx = \frac{x^{2}}{2} \]
Apply the constant rule to the second part.
\[ \int 2\,dx = 2x \]
Add both results and write one constant \( k \) at the end.
\[ \int (x+2)\,dx = \frac{x^{2}}{2} + 2x + k \]
Check by differentiating: \( \frac{d}{dx}\left(\frac{x^{2}}{2}+2x+k\right) = x+2 \), which is the original integrand.
Step 4: Why the other options are wrong.
Option (1), \( (x+2)^3+k \): its derivative is \( 3(x+2)^2 \), not \( x+2 \).
Option (2), \( \frac{x^2}{2}+k \): its derivative is only \( x \), so the term \( 2 \) is missing.
Option (4), \( \log(x+2)+k \): its derivative is \( \frac{1}{x+2} \). This is the integral of \( \frac{1}{x+2} \), not of \( x+2 \).
Final Answer:
The integral is \( \frac{x^2}{2}+2x+k \), which is option (3).
\[ \boxed{\frac{x^{2}}{2}+2x+k} \]