Tg^2 f + sin^2 f - 1/cos^2 f = sin^2 f/cos^2 f + sin^2 f - 1/cos^2 f = sin^2 f/cos^2 f - 1/cos^2 f + sin^2 f = (sin^2 f - 1)/cos^2 f + sin^2 f = (sin^2 f - sin^2 f - cos^2 f)/cos^2 f + sin^2 f = - cos^2 f/cos^2 f + sin^2 f = -1 + sin^2 f = -cos^2 f - sin^2 f + sin^2 f = -cos^2 f