calculus · worked example

Solve tan(x)

Method: quotient rule on sin/cos. Verified step-by-step solution with our free AI math solver.
Problem

ddxtan(x)\frac{d}{dx}\tan(x)

Step-by-step solution

  1. Rewrite tanx=sinxcosx\tan x = \frac{\sin x}{\cos x}.

  2. Apply the quotient rule: (fg)=fgfgg2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}.

  3. With f=sinxf = \sin x (f=cosxf' = \cos x) and g=cosxg = \cos x (g=sinxg' = -\sin x): cosxcosxsinx(sinx)cos2x=cos2x+sin2xcos2x\frac{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x}.

  4. Use the Pythagorean identity sin2+cos2=1\sin^2 + \cos^2 = 1: =1cos2x=sec2x= \frac{1}{\cos^2 x} = \sec^2 x.

Answer

sec2(x)\sec^2(x)

Want to solve a different problem? Open the derivative solver →

Related worked examples

  • /solve/calculus/derivative-of-sin-2x
  • /solve/calculus/derivative-of-cos-x