For = integral (x) dx: Write (x) = tan^(n-2)(x) * (x) = tan^(n-2)(x)((x)-1). = integral tan^(n-2)(x)(x)dx - K_(n-2) = tan^(n-1) - K_(n-2)
For = integral (x) dx: Use parts: u = sec^(n-2)(x), dv = (x)dx. Result: = sec^(n-2)(x)tan + (n-2)L_
Base cases:
- = x, = -ln|cos x| = ln|sec x|
- = tan(x) - x
- = x, = ln|sec x + tan x|
- = tan(x)
- = (sec(x)tan(x) + ln|sec x + tan x|)/2
Key observation: tan and sec reduction formulas reduce by 2, like sin and cos.