Question: can you please give me all the theory I need to resolve a calculation such as the integral of Sin x dx
1. **Problem Statement:** Find the integral of $\sin x$ with respect to $x$, i.e., compute $\int \sin x \, dx$.
2. **Formula and Theory:** The integral of $\sin x$ is based on the fact that the derivative of $-\cos x$ is $\sin x$. Therefore, the integral formula is:
$$\int \sin x \, dx = -\cos x + C$$
where $C$ is the constant of integration.
3. **Important Rules:**
- The integral of a function $f(x)$ is the antiderivative, a function whose derivative is $f(x)$.
- The constant of integration $C$ is added because indefinite integrals represent a family of functions.
4. **Step-by-step Solution:**
- Recognize that $\frac{d}{dx}(-\cos x) = \sin x$.
- Therefore, $\int \sin x \, dx = -\cos x + C$.
5. **Explanation:**
The sine function $\sin x$ oscillates between $-1$ and $1$. Its antiderivative is $-\cos x$ because differentiating $-\cos x$ returns $\sin x$. Adding $C$ accounts for any vertical shift in the antiderivative.
**Final answer:**
$$\int \sin x \, dx = -\cos x + C$$