Derivation of lattice Boltzmann equation via analytical characteristic integral