show/hide this revision's text 2 added 1169 characters in body; added 53 characters in body

Here's another one:

A friend of mine (Sam Elder) was trying to calculate the number of combinations on a simplex lock with $n$ buttons. After some work he had gotten a recurrence which I'm going to write as $2A_m = 1+\sum_{k=0}^m \binom{m}{k}A_{k}$, which he showed to me. My thought process went like this:

Hmm, this looks like the recurrence for the Bernoulli numbers. How did we prove the recurrence for the Bernoulli numbers again? One way is to use the well-known fact that $\sum_{n=0}^{\infty} n^m = -\frac{B_{m+1}}{m+1}$, so$-\frac{B_{m+1}}{m+1} = \sum_{n=0}^{\infty} n^m = \sum_{n=0}^{\infty}(n+1)^m = -\sum_{k=0}^m\binom{m}{k}\frac{B_{k+1}}{k+1}$.

Working backwards, what I need to do is find a sequence of functions $f_m(n)$ satisfying $2f_m(n+1) = \sum_{k=0}^m\binom{m}{k}f_{k}(n)$. This leads naturally to the choice $f_m(n) = \frac{n^m}{2^n}$. So the number of simplex combinations on m buttons is

$A_m = \sum_{n=1}^{\infty} \frac{n^m}{2^n}.$

Sam did not find this formula incredibly helpful.

(Continuing the analogy with the Bernoulli numbers, we can also derive the formula$\sum_{n=1}^x \frac{n^m}{2^n} = A^m-\frac{(x+A)^m}{2^x},$where we interpret $A^m$ as $A_m$.)

show/hide this revision's text 1 [made Community Wiki]

I'm not sure if this counts, but here's one of my own devising:

How do we find second derivatives of inverse functions?

Well, the second derivative of $y = f(x)$ is defined as $(f')' = \frac{d\frac{dy}{dx}}{dx}$, and by the quotient rule we can write this as $\frac{dxd^2y-dyd^2x}{dx^3} = \frac{d^2y}{dx^2}-\frac{dyd^2x}{dx^3}.$ (Since $x$ usually varies linearly, we normally substitute $d^2x = 0$.)

So by symmetry, the second derivative of the inverse function is $(f^{-1})'' = \frac{d^2x}{dy^2}-\frac{dxd^2y}{dy^3} = -\frac{dx^3}{dy^3}(\frac{d^2y}{dx^2}-\frac{dyd^2x}{dx^3}) = -f''/(f')^3.$

We can also directly derive the chain rule for second derivatives: Let $x = f(v)$, $v = g(u)$, and we get $(f\circ g)'' = \frac{d^2x}{du^2} - \frac{dxd^2u}{du^3} = (\frac{d^2x}{dv^2}-\frac{dxd^2v}{dv^3})\frac{dv^2}{du^2}+\frac{dx}{dv}(\frac{d^2v}{du^2}-\frac{dvd^2u}{du^3}) = (f''\circ g)(g')^2 + (f'\circ g)g''.$