The Second Order Particle Motion Equations and Linear Chromaticity Calculation in Accelerator Rings