Hypergeometric cosine identity (source code)

= Hypergeometric cosine identity

For compatible local branches near $x=0$,
$$
F\left(\frac{k}{2},-\frac{k}{2};\frac12;\sin^2x\right)=\cos(kx).
$$
It follows by transforming the <harmonic oscillator equation> $y''+k^2y=0$ into the <Gauss hypergeometric equation> and selecting the solution with value one and derivative zero at the origin.