We can prove this derivative by using the derivatives of sin and cos, as well as quotient rule.
Write tangent in terms of sine and cosine
Take the derivative of both sides
Use Quotient Rule
Use the Pythagorean identity for sine and cosine
The derivative of these trig functions can be obtained easily from the Qoutient Rule using the reciprocals of sin(x), cos(x), and tan(x).