Integral of $$$a l t \left(x - \pi\right) \cos{\left(x \right)}$$$ with respect to $$$x$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int a l t \left(x - \pi\right) \cos{\left(x \right)}\, dx$$$.
Solution
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=a l t$$$ and $$$f{\left(x \right)} = \left(x - \pi\right) \cos{\left(x \right)}$$$:
$${\color{red}{\int{a l t \left(x - \pi\right) \cos{\left(x \right)} d x}}} = {\color{red}{a l t \int{\left(x - \pi\right) \cos{\left(x \right)} d x}}}$$
For the integral $$$\int{\left(x - \pi\right) \cos{\left(x \right)} d x}$$$, use integration by parts $$$\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}$$$.
Let $$$\operatorname{u}=x - \pi$$$ and $$$\operatorname{dv}=\cos{\left(x \right)} dx$$$.
Then $$$\operatorname{du}=\left(x - \pi\right)^{\prime }dx=1 dx$$$ (steps can be seen ») and $$$\operatorname{v}=\int{\cos{\left(x \right)} d x}=\sin{\left(x \right)}$$$ (steps can be seen »).
The integral becomes
$$a l t {\color{red}{\int{\left(x - \pi\right) \cos{\left(x \right)} d x}}}=a l t {\color{red}{\left(\left(x - \pi\right) \cdot \sin{\left(x \right)}-\int{\sin{\left(x \right)} \cdot 1 d x}\right)}}=a l t {\color{red}{\left(\left(x - \pi\right) \sin{\left(x \right)} - \int{\sin{\left(x \right)} d x}\right)}}$$
The integral of the sine is $$$\int{\sin{\left(x \right)} d x} = - \cos{\left(x \right)}$$$:
$$a l t \left(\left(x - \pi\right) \sin{\left(x \right)} - {\color{red}{\int{\sin{\left(x \right)} d x}}}\right) = a l t \left(\left(x - \pi\right) \sin{\left(x \right)} - {\color{red}{\left(- \cos{\left(x \right)}\right)}}\right)$$
Therefore,
$$\int{a l t \left(x - \pi\right) \cos{\left(x \right)} d x} = a l t \left(\left(x - \pi\right) \sin{\left(x \right)} + \cos{\left(x \right)}\right)$$
Simplify:
$$\int{a l t \left(x - \pi\right) \cos{\left(x \right)} d x} = - a l t \left(\left(\pi - x\right) \sin{\left(x \right)} - \cos{\left(x \right)}\right)$$
Add the constant of integration:
$$\int{a l t \left(x - \pi\right) \cos{\left(x \right)} d x} = - a l t \left(\left(\pi - x\right) \sin{\left(x \right)} - \cos{\left(x \right)}\right)+C$$
Answer
$$$\int a l t \left(x - \pi\right) \cos{\left(x \right)}\, dx = - a l t \left(\left(\pi - x\right) \sin{\left(x \right)} - \cos{\left(x \right)}\right) + C$$$A