# Reciprocal rule

In calculus, the reciprocal rule gives the derivative of the reciprocal of a function f in terms of the derivative of f. The reciprocal rule can be used to show that the power rule holds for negative exponents if it has already been established for positive exponents. Also, one can readily deduce the quotient rule from the reciprocal rule and the product rule.

The reciprocal rule states that if f is differentiable at a point x and f(x)  0 then g(x) = 1/f(x) is also differentiable at x and

${\displaystyle g'(x)={\frac {d}{dx}}{\frac {1}{f(x)}}=-{\frac {f'(x)}{f(x)^{2}}}.}$

## Proof

This proof relies on the premise that ${\displaystyle f}$ is differentiable at ${\displaystyle x,}$ and on the theorem that ${\displaystyle f}$ is then also necessarily continuous there. Applying the definition of the derivative of ${\displaystyle g}$ at ${\displaystyle x}$ with ${\displaystyle f(x)\neq 0}$ gives

{\displaystyle {\begin{aligned}g'(x)={\frac {d}{dx}}{\frac {1}{f(x)}}&=\lim _{h\to 0}\left({\frac {{\frac {1}{f(x+h)}}-{\frac {1}{f(x)}}}{h}}\right)\\&=\lim _{h\to 0}\left(-{\frac {f(x+h)-f(x)}{h}}\cdot {\frac {1}{f(x)f(x+h)}}\right).\end{aligned}}}

The limit of this product exists and is equal to the product of the existing limits of its factors:

${\displaystyle \left(\lim _{h\to 0}-{\frac {f(x+h)-f(x)}{h}}\right)\cdot \left(\lim _{h\to 0}{\frac {1}{f(x)\cdot f(x+h)}}\right).}$

Because of the differentiability of ${\displaystyle f}$ at ${\displaystyle x}$ the first limit equals ${\displaystyle -f'(x),}$ and because of ${\displaystyle f(x)\neq 0}$ and the continuity of ${\displaystyle f}$ at ${\displaystyle x}$ the second limit equals ${\displaystyle 1/f(x)^{2},}$ thus yielding

${\displaystyle g'(x)=-f'(x)\cdot {\frac {1}{f(x)^{2}}}.}$

## A weak reciprocal rule that follows algebraically from the product rule

It may be argued that since

${\displaystyle f(x)\cdot {\frac {1}{f(x)}}=1,}$

an application of the product rule says that

${\displaystyle f'(x)\left({\frac {1}{f}}\right)(x)+f(x)\left({\frac {1}{f}}\right)'(x)=0,}$

and this may be algebraically rearranged to say

${\displaystyle \left({\frac {1}{f}}\right)'(x)={\frac {-f'(x)}{f(x)^{2}}}.}$

However, this fails to prove that 1/f is differentiable at x; it is valid only when differentiability of 1/f at x is already established. In that way, it is a weaker result than the reciprocal rule proved above. However, in the context of differential algebra, in which there is nothing that is not differentiable and in which derivatives are not defined by limits, it is in this way that the reciprocal rule and the more general quotient rule are established.

## Application to generalization of the power rule

Often the power rule, stating that (d/dx) xn = nxn−1, is proved by methods that are valid only when n is a nonnegative integer. After that, if n is a negative integer, then one can write

{\displaystyle {\begin{aligned}{\frac {d}{dx}}x^{n}&={\frac {d}{dx}}\,{\frac {1}{x^{-n}}}\\[8pt]&={\frac {-{\dfrac {d}{dx}}x^{-n}}{(x^{-n})^{2}}},{\text{ by the reciprocal rule}}\\[8pt]&={\frac {nx^{-n-1}}{x^{-2n}}},{\text{ by the power rule applied to the positive integer }}-n,\\[6pt]&=nx^{n-1}.\end{aligned}}}

## Application to a proof of the quotient rule

The reciprocal rule is a special case of the quotient rule, which states that if f and g are differentiable at x and g(x)  0 then

${\displaystyle {\frac {d}{dx}}\,{\frac {g(x)}{f(x)}}={\frac {f(x)g\,'(x)-g(x)f'(x)}{(f(x))^{2}}}.}$

The quotient rule can be proved by writing

${\displaystyle {\frac {g(x)}{f(x)}}=g(x)\cdot {\frac {1}{f(x)}}}$

and then first applying the product rule, and then applying the reciprocal rule to the second factor.

## Application to differentiation of trigonometric functions

By using the reciprocal rule one can find the derivative of the secant and cosecant functions:

{\displaystyle {\begin{aligned}{\frac {d}{dx}}\sec x&={\frac {d}{dx}}\,{\frac {1}{\cos x}}={\frac {-{\dfrac {d}{dx}}\cos x}{\cos ^{2}x}}={\frac {\sin x}{\cos ^{2}x}}\\[8pt]&={\frac {1}{\cos x}}\cdot {\frac {\sin x}{\cos x}}=\sec x\tan x.\end{aligned}}}

The cosecant is treated similarly.