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[sinx1+cosx]=11+cosx\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 sinx\sin x differentiates to cosx\cos x, but the denominator 1+cosx1+\cos x differentiates to sinx-\sin x, and that negative meets the subtraction built into the quotient rule. Two minus signs make a plus.

f(x)=cosx(1+cosx)sinx(sinx)(1+cosx)2=cosx+cos2x+sin2x(1+cosx)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 sin2x+cos2x=1\sin^{2}x+\cos^{2}x = 1 to the last two terms. The numerator becomes 1+cosx1+\cos x, an exact copy of one factor in the denominator, so it cancels.

f(x)=1+cosx(1+cosx)2=11+cosxf'(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 tanx2\tan\frac{x}{2} in disguise. Two standard identities, sinx=2sinx2cosx2\sin x = 2\sin\frac{x}{2}\cos\frac{x}{2} and 1+cosx=2cos2x21+\cos x = 2\cos^{2}\frac{x}{2}, reduce the quotient in one step.

sinx1+cosx=2sinx2cosx22cos2x2=tanx2\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 tanx2\tan\frac{x}{2} by the chain rule gives 12sec2x2\frac{1}{2}\sec^{2}\frac{x}{2}. Since 1+cosx=2cos2x21+\cos x = 2\cos^{2}\frac{x}{2}, that expression is 12cos2x2=11+cosx\frac{1}{2\cos^{2}\frac{x}{2}} = \frac{1}{1+\cos x}. Two independent routes, one answer.

Wherever it is defined, 1+cosx>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 cosx+cos2xsin2x\cos x+\cos^{2}x-\sin^{2}x. The quotient rule subtracts sinx(sinx)\sin x\cdot\left(-\sin x\right), which is +sin2x+\sin^{2}x. With a minus there the terms never combine to 11, and the answer comes out as cosx+cos2x(1+cosx)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+cosx1+\cos x is matched by the numerator, so one factor remains and the answer is 11+cosx\frac{1}{1+\cos x}.
  • Dividing derivative by derivative and answering cosxsinx=cotx\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+cosx\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+cosx\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 cosx+cos2x+sin2x\cos x+\cos^{2}x+\sin^{2}x, which the Pythagorean identity turns into 1+cosx1+\cos x. That matches one factor of the squared denominator, so it cancels and leaves 11+cosx\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 cosx=1\cos x = -1 makes the denominator zero. The derivative 11+cosx\frac{1}{1+\cos x} is undefined at exactly the same inputs.