The invention relates to the technical field of optical application, and discloses a method for shaping
Gaussian light into a linear
light beam based on an analytical method, which comprises the following steps: S1, establishing a
mathematical model of an input
Gaussian light beam and an output linear
light beam, and determining a relationship between a shape parameter of the output linear light beam and Uout (x, y), S2, deducing a
phase compensation function, the method comprises the following steps: S1, deducing a
phase compensation function which needs to be loaded by an SLM by means of an analytical method, S3, loading the
phase function to the SLM, and checking the accuracy of
phase modulation by using the characteristic that the SLM modulates a light beam phase, and S4, shaping and verifying the light beam. According to the method, the phase pattern can be accurately calculated according to the specific light beam parameters and the target shape, and the method has better universality. Corresponding phase patterns can be calculated through an analytical method for
Gaussian beams with different wavelengths and
waist radiuses or linear beams with different widths, lengths and
light intensity distribution requirements, and the phase patterns are loaded to the SLM, so that efficient and accurate
beam shaping is realized.