Mark M. answered 10/23/18
Retired Math prof with teaching and tutoring experience in trig.
1 + (tanx)^2 = (secx)^2
So, (secx)^4 + (secx)^2(tanx)^2 - 2(tanx)^4
= [(secx)^2]^2 + [1 + (tanx)^2](tanx)^2 - 2(tanx)^4
= [1 + (tanx)^2]^2 + (tanx)^2 + (tanx)^4 - 2(tanx)^4
= 1 + 2(tanx)^2 + (tanx)^4 + (tanx)^2 - (tanx)^4
= 1 + 3(tanx)^2