The quotient rule
When one function is divided by another, call the top u and the bottom v. The derivative of the fraction is
The quotient rule: the derivative of the top times the bottom, minus the top times the derivative of the bottom, all over the bottom squared.
Because of the minus, the order on top matters: it starts with u prime. Swapping the two gives the right answer with the wrong sign.
Where it comes from
Dividing by v is the same as multiplying by v to the power minus 1:
The product rule then gives u prime v to the power minus 1 plus u times the derivative of v to the power minus 1. That derivative comes from the power rule and the chain rule together:
Written as fractions again, that gives
The two fractions have different bottoms. To give the first one the bottom v squared as well, we multiply it by v both on top and below, which doesn't change its value:
and v v is v squared. Now both fractions have the same bottom:
so the tops can be put together over v squared:
That is the quotient rule.
Examples
the quantity 2 x plus 1, over the quantity x plus 3, with u equals 2 x plus 1 and v equals x plus 3, so u prime equals 2 and v prime equals 1:
The top works out as 2 x plus 6 minus 2 x minus 1, which is 5:
The bottom is usually left squared, as it is. Multiplying it out would make it longer without making it simpler.
When the top is a constant, such as in 4 over the quantity x plus 2, its derivative is 0, and only the second half is left:
The derivative of tan
tangent of x is sine of x over cosine of x. With u equals sine of x and v equals cosine of x, the quotient rule gives
On top, that is cosine of x squared plus sine of x squared, which is always 1, as explained in The Pythagorean identity. So
Splitting the fraction up instead gives the other common form:
which is 1 plus tangent of x squared. The Pythagorean identity also shows why 1 plus tangent of x squared and 1 over cosine of x squared are always equal.
In the app, you can tap the top or the bottom of such a fraction. They are then named u and v, and the options are written with u prime and v prime.