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