Integral of $$$\sin{\left(\frac{x}{2} \right)}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \sin{\left(\frac{x}{2} \right)}\, dx$$$.
Solution
Let $$$u=\frac{x}{2}$$$.
Then $$$du=\left(\frac{x}{2}\right)^{\prime }dx = \frac{dx}{2}$$$ (steps can be seen »), and we have that $$$dx = 2 du$$$.
So,
$${\color{red}{\int{\sin{\left(\frac{x}{2} \right)} d x}}} = {\color{red}{\int{2 \sin{\left(u \right)} d u}}}$$
Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=2$$$ and $$$f{\left(u \right)} = \sin{\left(u \right)}$$$:
$${\color{red}{\int{2 \sin{\left(u \right)} d u}}} = {\color{red}{\left(2 \int{\sin{\left(u \right)} d u}\right)}}$$
The integral of the sine is $$$\int{\sin{\left(u \right)} d u} = - \cos{\left(u \right)}$$$:
$$2 {\color{red}{\int{\sin{\left(u \right)} d u}}} = 2 {\color{red}{\left(- \cos{\left(u \right)}\right)}}$$
Recall that $$$u=\frac{x}{2}$$$:
$$- 2 \cos{\left({\color{red}{u}} \right)} = - 2 \cos{\left({\color{red}{\left(\frac{x}{2}\right)}} \right)}$$
Therefore,
$$\int{\sin{\left(\frac{x}{2} \right)} d x} = - 2 \cos{\left(\frac{x}{2} \right)}$$
Add the constant of integration:
$$\int{\sin{\left(\frac{x}{2} \right)} d x} = - 2 \cos{\left(\frac{x}{2} \right)}+C$$
Answer
$$$\int \sin{\left(\frac{x}{2} \right)}\, dx = - 2 \cos{\left(\frac{x}{2} \right)} + C$$$A