All of the above integrals are standard results, which you should be memorizing to solve questions easily. We will find these integrals using substitution.
Let’s find the integral of tanx. For that we will write it as −sinxcosx. We write it this way because we now have a function and it’s derivative. So we can make suitable substitution. After substituting t = cosx, we get the integral equal to - ln |cosx|
⇒∫tanxdx=−∫−sinxcosxdx=−ln|cosx|+c=ln|secx|+c
So the first statement is correct.
Similarly we get the remaining integrals as
∫cotxdx=∫cosxsinxdx=ln|sinx|+c∫secxdx=∫secx(secx+tanx)secx+tanxdx=ln|secx+tanx|+c
While finding integral secx , we multiplied and divided by secx+tanx. This is to make the numerator, derivative of denominator.
We do the same for cosecx also, multiply by cosecx - cotx
∫cosecxdx=∫cosecx(cotx−cosecx)cotx−cosecxdx=ln(cotx−cosecx)+c
So, only first two statements are correct
We can verify all these results by taking derivative of the RHS and checking if we get the function we are trying to integrate.