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