L'Hôpital's rule states that if limx→ag(x)f(x) has indeterminate form 00 or ∞∞, then
limx→ag(x)f(x)=limx→ag′(x)f′(x)
provided the right-hand limit exists (or is ±∞).
The rule applies only to those two indeterminate forms. Other indeterminates (0⋅∞, ∞−∞, 1∞, 00, ∞0) must first be rewritten into 00 or ∞∞ form.
The rule may need to be applied repeatedly if the new limit is still indeterminate. It often dramatically simplifies otherwise hard limits, such as limx→0xsinx=limx→01cosx=1.