Daniel B. answered 02/21/23
A retired computer professional to teach math, physics
Here is my solution, which differs from what you are supposed to prove in that I got multiplication, where the given result has addition.
I believe that it is a typo on their part, but you should be the judge.
In = ∫1/cosn(x)dx = ∫cos-2(x)cos2-n(x)dx
Use integration by parts following the pattern
∫u'v = uv - ∫uv'
where
u' = cos-2(x)
v = cos2-n(x)
Thus
u = tan(x)
v' = (2-n)cos1-n(x)(-sin(x))
In = ∫cos-2(x)cos2-n(x)dx =
tan(x)cos2-n(x) + ∫tan(x)(2-n)cos1-n(x)sin(x)dx =
sin(x)cos1-n(x) + (2-n)∫sin²(x)cos-n(x)dx =
sin(x)cos1-n(x) + (2-n)∫(1-cos²(x))cos-n(x)dx =
sin(x)cos1-n(x) + (2-n)∫cos-n(x)dx - (2-n)∫cos2-n(x)dx =
sin(x)cos1-n(x) + (2-n)In - (2-n)In-2
Collect In on the left of the equation
(n-1)In = (n-2)In-2 + sin(x)cos1-n(x)
In = ((n-2)/(n-1))In-2 + (1/(n-1))sin(x)cos1-n(x)