Analytic calculation