The integral of the tangent function is given by the following formula, $\displaystyle\int\tan(x)dx=-\ln(\cos(x))$
$-\ln\left(\cos\left(y\right)\right)$
2
As the integral that we are solving is an indefinite integral, when we finish integrating we must add the constant of integration $C$
$-\ln\left(\cos\left(y\right)\right)+C_0$
Final answer to the problem
$-\ln\left(\cos\left(y\right)\right)+C_0$
Explore different ways to solve this problem
Solving a math problem using different methods is important because it enhances understanding, encourages critical thinking, allows for multiple solutions, and develops problem-solving strategies. Read more