You can put this solution on YOUR website! There's probably more than one way to solve this. Perhaps the easiest is based on recognizing that cos and tan are both connected to sec:
and
From these two equations we have a "path" to go from cos to tan^2
You've been given that . We can convert this to sec by finding its reciprocal (1/cos):
Now we can use the other identity by squaring sec:
And then inserting that into the identity:
For just tan^2, we subtract 1 from each side:
This should be an acceptable answer. If not, then get common denominators and subtract: