AP Calculus AB and BC

Derivative of sqrt(tan x): Chain Rule

The derivative of the square root of tan x is secant squared x divided by twice the square root of tan x. The power rule handles the outer root and the chain rule multiplies by secant squared x, the derivative of the inside.

ddx[tanx]=sec2x2tanx\frac{d}{dx}\left[\sqrt{\tan x}\right] = \frac{\sec^{2}x}{2\sqrt{\tan x}}

Power rule over chain rule

ddx(tanx)1/2=12(tanx)1/2sec2x=sec2x2tanx\frac{d}{dx}(\tan x)^{1/2} = \frac{1}{2}(\tan x)^{-1/2}\cdot\sec^{2}x = \frac{\sec^{2}x}{2\sqrt{\tan x}}

The domain is the interesting part

The square root needs tanx0\tan x \ge 0, which holds on [0,π2)\left[0, \frac{\pi}{2}\right) and repeats with period π\pi. Where tangent is negative the function does not exist at all.

At x=0x = 0 the function is 00 but the derivative is undefined, because the denominator vanishes: a vertical tangent, just as with x\sqrt{x} at the origin.

Common mistakes

  • Answering sec2x2\frac{\sec^{2}x}{2}, forgetting that the power rule leaves the inside under the root.
  • Ignoring the domain and evaluating where tanx<0\tan x < 0.
  • Using secxtanx\sec x\tan x as the inner derivative. That belongs to secant.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of sqrt(tan x)?

It is sec2x2tanx\frac{\sec^{2}x}{2\sqrt{\tan x}}.

What is the domain?

Where tanx0\tan x \ge 0, such as [0,π2)\left[0, \frac{\pi}{2}\right), repeating with period π\pi. The derivative additionally excludes the points where tanx=0\tan x = 0.