Alright here we go.
This is the hard way using good old hard math to prove that it works. The 'x' we were trying to find is actually called the sagitta.

The easy way is to find the sagitta is this.
s = r - ((r^2) - (l^2))^(1/2)
http://en.wikipedia.org/wiki/Sagitta_%28geometry%29