L'Hôpital's Rule Calculator

Type a quotient and the value x approaches to apply L'Hôpital's rule.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

A number such as 2 or 1/2, pi, inf (infinity) or -inf.

Try

Result

You enteredlim⁡x→01−cos⁡xx2\lim_{x \to 0} \frac{1 - \cos x}{x^{2}}

lim⁡x→01−cos⁡xx2=12\displaystyle \lim_{x \to 0} \frac{1 - \cos x}{x^{2}} = \frac{1}{2}

Table of values

xf(x)xf(x)−0.50.489670.50.48967−0.10.4995830.10.499583−0.010.4999960.010.499996−0.0010.50.0010.5−0.00010.50.00010.5−1.000×10−50.51.000×10−50.5\displaystyle \begin{array}{c|c|c|c} x & f(x) & x & f(x) \\ \hline -0.5 & 0.48967 & 0.5 & 0.48967 \\ -0.1 & 0.499583 & 0.1 & 0.499583 \\ -0.01 & 0.499996 & 0.01 & 0.499996 \\ -0.001 & 0.5 & 0.001 & 0.5 \\ -0.0001 & 0.5 & 0.0001 & 0.5 \\ -1.000\times 10^{-5} & 0.5 & 1.000\times 10^{-5} & 0.5 \end{array}

Decimal

≈0.5\displaystyle \approx 0.5
Show the work
  1. Direct substitution

    Substituting x=0x = 0 gives 00\frac{0}{0}, which is indeterminate: it does not say what the limit is, so another method is needed.

    Using lim⁡x→af(x)=f(a)(f continuous at a)\lim_{x \to a} f(x) = f(a) \quad (f \text{ continuous at } a)

    lim⁡x→01−cos⁡xx2  →  00\lim_{x \to 0} \frac{1 - \cos x}{x^{2}} \;\to\; \frac{0}{0}
  2. L'Hôpital's rule

    Substituting gives 00\frac{0}{0}, an indeterminate form, so differentiate the top and the bottom separately (not as a quotient) and take the limit of the new quotient. Here f(x)=1−cos⁡xf(x) = 1 - \cos x and g(x)=x2g(x) = x^{2}.

    Using lim⁡f(x)g(x)=lim⁡f′(x)g′(x)\lim \frac{f(x)}{g(x)} = \lim \frac{f'(x)}{g'(x)}

    lim⁡x→01−cos⁡xx2=lim⁡x→0sin⁡x2x\lim_{x \to 0}\frac{1 - \cos x}{x^{2}} = \lim_{x \to 0} \frac{\sin x}{2x}
  3. L'Hôpital's rule

    Substituting gives 00\frac{0}{0}, an indeterminate form, so differentiate the top and the bottom separately (not as a quotient) and take the limit of the new quotient. Here f(x)=sin⁡x2f(x) = \frac{\sin x}{2} and g(x)=xg(x) = x.

    Using lim⁡f(x)g(x)=lim⁡f′(x)g′(x)\lim \frac{f(x)}{g(x)} = \lim \frac{f'(x)}{g'(x)}

    lim⁡x→0sin⁡x2x=lim⁡x→0cos⁡x21=lim⁡x→0cos⁡x2\begin{aligned} \lim_{x \to 0}\frac{\frac{\sin x}{2}}{x} &= \lim_{x \to 0} \frac{\frac{\cos x}{2}}{1} \\ &= \lim_{x \to 0} \frac{\cos x}{2} \end{aligned}
  4. Direct substitution

    The function is continuous at x=0x = 0, so the limit is just its value there.

    Using lim⁡x→af(x)=f(a)(f continuous at a)\lim_{x \to a} f(x) = f(a) \quad (f \text{ continuous at } a)

    lim⁡x→0cos⁡x2=cos⁡02=12\begin{aligned} \lim_{x \to 0} \frac{\cos x}{2} &= \frac{\cos 0}{2} \\ &= \frac{1}{2} \end{aligned}
  5. Result

    The limit of 1−cos⁡xx2\frac{1 - \cos x}{x^{2}} as xx approaches 00 is 12\frac{1}{2}.

    lim⁡x→01−cos⁡xx2=12\lim_{x \to 0} \frac{1 - \cos x}{x^{2}} = \frac{1}{2}
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = (1 - cos(x))/x^2

Worked examples