integrates to tan x
By the quotient rule, differentiates to , which is .
Read backwards, . The integral of from 0 to is .
A multiple of x inside divides out as usual: . Check: differentiates to .
The gold curve is , shaded from x = 0 to , where its height is 2. The plain curve is y = tan x, which starts at 0 and reaches 1 at . That height, 1, is the shaded area.
sec x tan x integrates to sec x
, so by the chain rule it differentiates to . That is times , which is sec x tan x.
So . The integral of sec x tan x from 0 to is .
The cosecant versions come the same way, each with a minus: cot x differentiates to and cosec x to −cosec x cot x. So and .
tan x is a logarithm
tan x is not on the list of derivatives, but it is a fraction: . The denominator cos x differentiates to −sin x, so the numerator is minus the derivative of the denominator.
A derivative over its function integrates to a log, and the minus comes outside: . Check: −ln|cos x| differentiates to .
The integral of tan x from 0 to is .
has the derivative of its denominator on top exactly, so there is no minus: .
The gold curve is y = tan x, shaded from x = 0 to . The plain curve is y = −ln(cos x), which starts at 0; its height at is , the shaded area.
Two answers that are one
Some books give instead. It is the same function. A minus in front of a log turns the inside upside down, since . So , and .
and sec x
is not a derivative either, but the identity turns it into one: , so . From 0 to that is .
sec x itself needs a trick. Multiply it by , which is 1: the integrand becomes . The numerator is exactly the derivative of the denominator, so . From 0 to that is .
The usual mistakes
Giving the derivative instead of the integral. sec x tan x is what sec x differentiates to, so it cannot be the integral of .
Mixing up the family. integrates to tan x and sec x tan x to sec x; differentiating each answer checks which is which.
Losing the minus on tan x. ln|cos x| differentiates to −tan x, so .
Adding a minus to cot x. cos x is the derivative of sin x, sign and all, so .
Treating ln|sec x| and −ln|cos x| as different answers. They differ only in how they are written.