Integral of $$$x \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)}$$$ with respect to $$$x$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int x \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)}\, dx$$$.
Solution
Let $$$v=- u^{2} + x^{2}$$$.
Then $$$dv=\left(- u^{2} + x^{2}\right)^{\prime }dx = 2 x dx$$$ (steps can be seen »), and we have that $$$x dx = \frac{dv}{2}$$$.
The integral becomes
$${\color{red}{\int{x \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)} d x}}} = {\color{red}{\int{\frac{\sin{\left(p \sqrt{v} \right)}}{2} d v}}}$$
Apply the constant multiple rule $$$\int c f{\left(v \right)}\, dv = c \int f{\left(v \right)}\, dv$$$ with $$$c=\frac{1}{2}$$$ and $$$f{\left(v \right)} = \sin{\left(p \sqrt{v} \right)}$$$:
$${\color{red}{\int{\frac{\sin{\left(p \sqrt{v} \right)}}{2} d v}}} = {\color{red}{\left(\frac{\int{\sin{\left(p \sqrt{v} \right)} d v}}{2}\right)}}$$
Let $$$w=p \sqrt{v}$$$.
Then $$$dw=\left(p \sqrt{v}\right)^{\prime }dv = \frac{p}{2 \sqrt{v}} dv$$$ (steps can be seen »), and we have that $$$\frac{dv}{\sqrt{v}} = \frac{2 dw}{p}$$$.
Therefore,
$$\frac{{\color{red}{\int{\sin{\left(p \sqrt{v} \right)} d v}}}}{2} = \frac{{\color{red}{\int{\frac{2 w \sin{\left(w \right)}}{p^{2}} d w}}}}{2}$$
Apply the constant multiple rule $$$\int c f{\left(w \right)}\, dw = c \int f{\left(w \right)}\, dw$$$ with $$$c=\frac{2}{p^{2}}$$$ and $$$f{\left(w \right)} = w \sin{\left(w \right)}$$$:
$$\frac{{\color{red}{\int{\frac{2 w \sin{\left(w \right)}}{p^{2}} d w}}}}{2} = \frac{{\color{red}{\left(\frac{2 \int{w \sin{\left(w \right)} d w}}{p^{2}}\right)}}}{2}$$
For the integral $$$\int{w \sin{\left(w \right)} d w}$$$, use integration by parts $$$\int \operatorname{h} \operatorname{dm} = \operatorname{h}\operatorname{m} - \int \operatorname{m} \operatorname{dh}$$$.
Let $$$\operatorname{h}=w$$$ and $$$\operatorname{dm}=\sin{\left(w \right)} dw$$$.
Then $$$\operatorname{dh}=\left(w\right)^{\prime }dw=1 dw$$$ (steps can be seen ») and $$$\operatorname{m}=\int{\sin{\left(w \right)} d w}=- \cos{\left(w \right)}$$$ (steps can be seen »).
Therefore,
$$\frac{{\color{red}{\int{w \sin{\left(w \right)} d w}}}}{p^{2}}=\frac{{\color{red}{\left(w \cdot \left(- \cos{\left(w \right)}\right)-\int{\left(- \cos{\left(w \right)}\right) \cdot 1 d w}\right)}}}{p^{2}}=\frac{{\color{red}{\left(- w \cos{\left(w \right)} - \int{\left(- \cos{\left(w \right)}\right)d w}\right)}}}{p^{2}}$$
Apply the constant multiple rule $$$\int c f{\left(w \right)}\, dw = c \int f{\left(w \right)}\, dw$$$ with $$$c=-1$$$ and $$$f{\left(w \right)} = \cos{\left(w \right)}$$$:
$$\frac{- w \cos{\left(w \right)} - {\color{red}{\int{\left(- \cos{\left(w \right)}\right)d w}}}}{p^{2}} = \frac{- w \cos{\left(w \right)} - {\color{red}{\left(- \int{\cos{\left(w \right)} d w}\right)}}}{p^{2}}$$
The integral of the cosine is $$$\int{\cos{\left(w \right)} d w} = \sin{\left(w \right)}$$$:
$$\frac{- w \cos{\left(w \right)} + {\color{red}{\int{\cos{\left(w \right)} d w}}}}{p^{2}} = \frac{- w \cos{\left(w \right)} + {\color{red}{\sin{\left(w \right)}}}}{p^{2}}$$
Recall that $$$w=p \sqrt{v}$$$:
$$\frac{\sin{\left({\color{red}{w}} \right)} - {\color{red}{w}} \cos{\left({\color{red}{w}} \right)}}{p^{2}} = \frac{\sin{\left({\color{red}{p \sqrt{v}}} \right)} - {\color{red}{p \sqrt{v}}} \cos{\left({\color{red}{p \sqrt{v}}} \right)}}{p^{2}}$$
Recall that $$$v=- u^{2} + x^{2}$$$:
$$\frac{- p \sqrt{{\color{red}{v}}} \cos{\left(p \sqrt{{\color{red}{v}}} \right)} + \sin{\left(p \sqrt{{\color{red}{v}}} \right)}}{p^{2}} = \frac{- p \sqrt{{\color{red}{\left(- u^{2} + x^{2}\right)}}} \cos{\left(p \sqrt{{\color{red}{\left(- u^{2} + x^{2}\right)}}} \right)} + \sin{\left(p \sqrt{{\color{red}{\left(- u^{2} + x^{2}\right)}}} \right)}}{p^{2}}$$
Therefore,
$$\int{x \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)} d x} = \frac{- p \sqrt{- u^{2} + x^{2}} \cos{\left(p \sqrt{- u^{2} + x^{2}} \right)} + \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)}}{p^{2}}$$
Add the constant of integration:
$$\int{x \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)} d x} = \frac{- p \sqrt{- u^{2} + x^{2}} \cos{\left(p \sqrt{- u^{2} + x^{2}} \right)} + \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)}}{p^{2}}+C$$
Answer
$$$\int x \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)}\, dx = \frac{- p \sqrt{- u^{2} + x^{2}} \cos{\left(p \sqrt{- u^{2} + x^{2}} \right)} + \sin{\left(p \sqrt{- u^{2} + x^{2}} \right)}}{p^{2}} + C$$$A