Calculus in Mean Girls

February 2, 2026

math movies

MeanGirls

In the 2004 movie Mean Girls, Cady Heron lets her calculus grade slip to spend time with Aaron Samuels, under the guise of needing math tutoring. To earn extra credit, she joins the North Shore Mathletes who reach the finals of the state championship.

During the competition, Cady is shown solving the following limit to win the championship for her team:

limx0ln(1x)sin(x)1cos2(x)\lim_{x \to 0} \frac{\ln(1-x)-\sin(x)}{1-\cos^{2}(x)}

We can solve this problem in two ways.

L’Hôpital’s Rule

If we directly substitute x=0x=0 into the limit expression, we get:

ln(10)sin(0)1cos2(0)=0011=00\frac{\ln(1-0)-\sin(0)}{1-\cos^{2}(0)} = \frac{0-0}{1-1} = \frac{0}{0}

This is an indeterminate form, so we can apply L’Hôpital’s Rule. If the limit of a function results in an indeterminate form, we can take the derivative of the numerator and denominator separately and then compute the limit again.

Taking the derivative of the numerator and denominator:

ddx[ln(1x)sin(x)]=11xcos(x)\frac{d}{dx}[\ln(1-x)-\sin(x)] = -\frac{1}{1-x}-\cos(x) ddx[1cos2(x)]=2cos(x)sin(x)\frac{d}{dx}[1-\cos^2(x)] = 2\cos(x) \sin(x)

So the limit becomes:

limx011xcos(x)2cos(x)sin(x)\lim_{x\to 0}\frac{-\frac{1}{1-x}-\cos(x)}{2\cos(x) \sin(x)}

As x0x \to 0, the numerator approaches 2-2, while the denominator approaches 00. But the direction matters:

  • When x0+x \to 0^+, sin(x)>0\sin(x) > 0, so the denominator is positive → the expression goes to -\infty.
  • When x0x \to 0^-, sin(x)<0\sin(x) < 0, so the denominator is negative → the expression goes to ++\infty.

Since the left and right sides blow up in opposite directions, the limit does not exist.

Taylor Series

First, let’s simplify 1cos2(x)1 - \cos^2(x) in the denominator using the identity 1cos2(x)=sin2(x)1 - \cos^2(x) = \sin^2(x). So the limit becomes:

limx0ln(1x)sin(x)sin2(x)\lim_{x \to 0} \frac{\ln(1-x)-\sin(x)}{\sin^2(x)}

Another way to solve this limit is by using Taylor series expansions around x=0x=0. Taylor expansions approximate functions as infinite sums built from their derivatives at a point.

TaylorSeries

The image above shows sin(x)\sin(x) and its Taylor approximations by polynomials of degree 1, 3, 5, 7, 9, 11, and 13 at x=0x = 0. Notice that as the degree of the Taylor polynomial rises, it approaches the correct function.

The Taylor series expansion for a given function f(x)f(x) around the point aa is given by:

f(a)+f(a)1!(xa)+f(a)2!(xa)2+=n=0f(n)(a)n!(xa)nf(a)+{\frac {f'(a)}{1!}}(x-a)+{\frac {f''(a)}{2!}}(x-a)^{2}+\cdots =\sum _{n=0}^{\infty }{\frac {f^{(n)}(a)}{n!}}(x-a)^{n}

When a=0a = 0, the Taylor series is also called the Maclaurin series:

f(0)+f(0)1!x+f(0)2!x2+=n=0f(n)(0)n!xn.f(0)+{\frac {f'(0)}{1!}}x+{\frac {f''(0)}{2!}}x^{2}+\cdots =\sum _{n=0}^{\infty }{\frac {f^{(n)}(0)}{n!}}x^{n}.

Let’s first do the Maclaurin series expansions for ln(1x)\ln(1-x). We start by calculating the derivatives of f(x)=ln(1x)f(x) = \ln(1-x):

f(x)=11x,f(x)=1(1x)2,f(3)(x)=2!(1x)3,f(4)(x)=3!(1x)4\begin{aligned} f'(x) = -\frac{1}{1-x}, \qquad f''(x) = -\frac{1}{(1-x)^2}, \\ f^{(3)}(x) = -\frac{2!}{(1-x)^3}, \qquad f^{(4)}(x) = -\frac{3!}{(1-x)^4} \\ \end{aligned}

Substituting these derivatives into the Maclaurin series formula with x=0x=0, we get:

ln(1x)=xx22x33x44\ln(1-x) = -x-\frac{x^2}{2}-\frac{x^3}{3}-\frac{x^4}{4}-\cdots

Now let’s do the same for sin(x)\sin(x). The derivatives of f(x)=sin(x)f(x) = \sin(x) are:

f(x)=cos(x),f(x)=sin(x),f(3)(x)=cos(x),f(4)(x)=sin(x)\begin{aligned} f'(x) = \cos(x), \qquad f''(x) = -\sin(x), \\ f^{(3)}(x) = -\cos(x), \qquad f^{(4)}(x) = \sin(x) \\ \end{aligned}

Substituting these derivatives into the Maclaurin series formula with x=0x=0, we get:

sin(x)=xx33!+x55!x77!+\sin(x) = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots

Now we can substitute these series expansions into our limit expression. First the numerator:

ln(1x)sin(x)(xx22x33)(xx36+)=2xx225x36+\begin{aligned} \ln(1-x)&-\sin(x) \\ (-x-\frac{x^2}{2}-\frac{x^3}{3}-\cdots)&-(x-\frac{x^3}{6}+\cdots) \\ = -2x - \frac{x^2}{2} &- \frac{5x^3}{6} + \cdots \end{aligned}

Next the denominator:

sin2(x)=(xx36+)2=x22x46+=x2x43+\begin{aligned} \sin^2(x) &= (x - \frac{x^3}{6} + \cdots)^2 \\ &= x^2 - \frac{2x^4}{6} + \cdots \\ &= x^2 - \frac{x^4}{3} + \cdots \end{aligned}

We only care about the leading terms in the numerator (2x-2x) and denominator (x2x^2). All other terms involve higher powers of xx and become insignificant as x0x \to 0. So we can approximate the limit as:

limx02xx2=limx02x\lim_{x \to 0} \frac{-2x}{x^2} = \lim_{x \to 0} \frac{-2}{x}

As x0+x \to 0^+, 2x\frac{-2}{x} \to -\infty, while as x0x \to 0^-, 2x+\frac{-2}{x} \to +\infty. Since the left-hand and right-hand limits differ, the limit does not exist.