Optimized analytical solution