In order to enhance the computational efficiency of spectrum analysis software and ensure efficient algorithm execution with limited hardware resources,linear algebra theories such as Vandermonde determinant and inverse matrix are applied to energy calibration,energy resolution calibration and efficiency calibration algorithms.Through thorough and detailed analysis of the algorithms,it is verified that the application of these mathematical tools significantly improves the execution efficiency of the algorithms and reduces the memory usage during the runtime of the energy spectrum analysis software.