AP Calculus AB and BC

Derivative of sin x/(1+cos x): Answer and Proof

The derivative of sin x/(1+cos x) is 1/(1+cos x). The quotient rule numerator is cos x + cos^2 x + sin^2 x, and the Pythagorean identity turns that into 1 + cos x, so one factor cancels and the derivative comes out simpler than the function itself.

ddx[sin⁡x1+cos⁡x]=11+cos⁡x\frac{d}{dx}\left[\frac{\sin x}{1+\cos x}\right] = \frac{1}{1+\cos x}

Quotient rule, then the Pythagorean identity

Everything turns on one minus sign. The numerator sin⁡x\sin x differentiates to cos⁡x\cos x, but the denominator 1+cos⁡x1+\cos x differentiates to −sin⁡x-\sin x, and that negative meets the subtraction built into the quotient rule. Two minus signs make a plus.

f′(x)=cos⁡x(1+cos⁡x)−sin⁡x(−sin⁡x)(1+cos⁡x)2=cos⁡x+cos⁡2x+sin⁡2x(1+cos⁡x)2f'(x) = \frac{\cos x\left(1+\cos x\right)-\sin x\left(-\sin x\right)}{\left(1+\cos x\right)^{2}} = \frac{\cos x+\cos^{2}x+\sin^{2}x}{\left(1+\cos x\right)^{2}}

Apply sin⁡2x+cos⁡2x=1\sin^{2}x+\cos^{2}x = 1 to the last two terms. The numerator becomes 1+cos⁡x1+\cos x, an exact copy of one factor in the denominator, so it cancels.

f′(x)=1+cos⁡x(1+cos⁡x)2=11+cos⁡xf'(x) = \frac{1+\cos x}{\left(1+\cos x\right)^{2}} = \frac{1}{1+\cos x}

The same function written as tan(x/2)

There is a reason the derivative is tidier than the function: the function is tan⁡x2\tan\frac{x}{2} in disguise. Two standard identities, sin⁡x=2sin⁡x2cos⁡x2\sin x = 2\sin\frac{x}{2}\cos\frac{x}{2} and 1+cos⁡x=2cos⁡2x21+\cos x = 2\cos^{2}\frac{x}{2}, reduce the quotient in one step.

sin⁡x1+cos⁡x=2sin⁡x2cos⁡x22cos⁡2x2=tan⁡x2\frac{\sin x}{1+\cos x} = \frac{2\sin\frac{x}{2}\cos\frac{x}{2}}{2\cos^{2}\frac{x}{2}} = \tan\frac{x}{2}

Differentiating tan⁡x2\tan\frac{x}{2} by the chain rule gives 12sec⁡2x2\frac{1}{2}\sec^{2}\frac{x}{2}. Since 1+cos⁡x=2cos⁡2x21+\cos x = 2\cos^{2}\frac{x}{2}, that expression is 12cos⁡2x2=11+cos⁡x\frac{1}{2\cos^{2}\frac{x}{2}} = \frac{1}{1+\cos x}. Two independent routes, one answer.

Wherever it is defined, 1+cos⁡x>01+\cos x > 0, so f′>0f' > 0 and the function increases on each interval between the points x=π+2kπx = \pi+2k\pi where the denominator vanishes. The sample inputs x=−1,0.5,2x = -1, 0.5, 2 all lie in (−π,π)\left(-\pi,\pi\right).

The mistakes students make

The first error stops the identity from firing, the second throws away a factor after the numerator is already correct, and the third abandons the quotient rule altogether.

  • Writing the numerator as cos⁡x+cos⁡2x−sin⁡2x\cos x+\cos^{2}x-\sin^{2}x. The quotient rule subtracts sin⁡x⋅(−sin⁡x)\sin x\cdot\left(-\sin x\right), which is +sin⁡2x+\sin^{2}x. With a minus there the terms never combine to 11, and the answer comes out as cos⁡x+cos⁡2x(1+cos⁡x)2\frac{\cos x+\cos 2x}{\left(1+\cos x\right)^{2}}.
  • Cancelling the whole denominator and answering 11. Only one of the two factors of 1+cos⁡x1+\cos x is matched by the numerator, so one factor remains and the answer is 11+cos⁡x\frac{1}{1+\cos x}.
  • Dividing derivative by derivative and answering cos⁡x−sin⁡x=−cot⁡x\frac{\cos x}{-\sin x} = -\cot x. That is not the quotient rule, and on (0,π2)\left(0,\frac{\pi}{2}\right) it even comes out negative, while the true slope 11+cos⁡x\frac{1}{1+\cos x} is positive wherever the function is defined.

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 sin x/(1+cos x)?

It is 11+cos⁡x\frac{1}{1+\cos x}, defined for all xx except x=π+2kπx = \pi+2k\pi.

Why does the derivative simplify so much?

The quotient rule numerator is cos⁡x+cos⁡2x+sin⁡2x\cos x+\cos^{2}x+\sin^{2}x, which the Pythagorean identity turns into 1+cos⁡x1+\cos x. That matches one factor of the squared denominator, so it cancels and leaves 11+cos⁡x\frac{1}{1+\cos x}.

Where is sin x/(1+cos x) undefined?

At the odd multiples of π\pi, that is x=π+2kπx = \pi+2k\pi, where cos⁡x=−1\cos x = -1 makes the denominator zero. The derivative 11+cos⁡x\frac{1}{1+\cos x} is undefined at exactly the same inputs.