AP Calculus AB and BC

Derivative of x/sin x: Quotient Rule Proof, Mistakes

Differentiating x/sin x gives (sin x - x cos x) divided by sin^2 x. A variable on top and a trig function on the bottom means the quotient rule: bottom times derivative of top, minus top times derivative of bottom, all over the bottom squared. Order matters, since reversing it flips the sign.

ddx[xsinx]=sinxxcosxsin2x\frac{d}{dx}\left[\frac{x}{\sin x}\right] = \frac{\sin x - x\cos x}{\sin^{2}x}

Applying the quotient rule

Write u=xu = x on top and v=sinxv = \sin x on the bottom, so u=1u' = 1 and v=cosxv' = \cos x. The quotient rule is uvuvv2\frac{u'v-uv'}{v^{2}}, and the subtraction runs in that order and no other.

ddx(xsinx)=1sinxxcosx(sinx)2=sinxxcosxsin2x\frac{d}{dx}\left(\frac{x}{\sin x}\right) = \frac{1\cdot\sin x - x\cdot\cos x}{\left(\sin x\right)^{2}} = \frac{\sin x - x\cos x}{\sin^{2}x}

Nothing cancels. The numerator sinxxcosx\sin x - x\cos x has no common factor with sin2x\sin^{2}x, so this is already the finished form. An equivalent version, obtained by splitting the fraction, is cscxxcotxcscx\csc x - x\cot x\csc x.

What happens at x = 0

xsinx\frac{x}{\sin x} is the reciprocal of the famous limit sinxx\frac{\sin x}{x}, so the function is undefined at x=0x = 0 but approaches 11 as xx approaches 00. There is a removable discontinuity there, not a vertical asymptote.

limx0xsinx=1limx0sinxx=11=1\lim_{x\to 0}\frac{x}{\sin x} = \frac{1}{\lim_{x\to 0}\frac{\sin x}{x}} = \frac{1}{1} = 1

The derivative behaves the same way. Both sinxxcosx\sin x - x\cos x and sin2x\sin^{2}x go to 00 at the origin, and the ratio approaches 00, which fits a graph that flattens out as it fills in the hole at height 11. Real vertical asymptotes appear instead at x=π,2πx = \pi, 2\pi and so on, where sinx=0\sin x = 0 but xx does not.

The mistakes students make

The quotient rule punishes carelessness about order more than any other differentiation rule, and this function is a clean example of it.

  • Writing xcosxsinxsin2x\frac{x\cos x-\sin x}{\sin^{2}x}, the exact negative of the correct derivative. The rule starts with the bottom times the derivative of the top, so sinx\sin x comes first.
  • Offering 1cosx\frac{1}{\cos x} by differentiating the top and bottom separately. That is not a differentiation rule. Differentiating top and bottom is L'Hopital's rule, and it returns the value of a limit at a single point, not a derivative function. It is doubly confusing here because at x=0x = 0 the form really is 00\frac{0}{0}, so L'Hopital does apply there and gives 1cos0=1\frac{1}{\cos 0} = 1, the limit found above, which is not the slope anywhere.
  • Turning the denominator into sinx2\sin x^{2} or sin(x2)\sin\left(x^{2}\right). The squaring applies to the whole function sinx\sin x, so it is (sinx)2\left(\sin x\right)^{2}, written sin2x\sin^{2}x.

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 x over sin x?

It is sinxxcosxsin2x\frac{\sin x - x\cos x}{\sin^{2}x}. The quotient rule with u=xu = x and v=sinxv = \sin x gives it directly, and nothing simplifies further.

Is x/sin x defined at 0?

No, because sin0=0\sin 0 = 0. The limit as xx approaches 00 is 11, so the graph has a hole at height 11 rather than a vertical asymptote.

Can I use the product rule instead of the quotient rule?

Yes. Rewrite the function as xcscxx\csc x, then the product rule gives cscxxcscxcotx\csc x - x\csc x\cot x, which is the same derivative in a different form.