In this paper, the optimal mathematical generic function model is established using the minimum out-of-band energy radiation criterion. Firstly, the energy limit conditions, boundary constraints, and peak-to-average ratio constraints are applied to the generic function model; thus, the analytical solutions are obtained under different parameters. Secondly, a single symbol signal energy constraint condition and boundary constraint condition are added to the generic function model; thus, the numerical solution of the different parameters is obtained. In the process of solving the analytical solution, the partial solution process is simplified to solve the analytical solution, and there are also digital truncation problems. In addition, the corresponding order of the Lagrange differential equation increases by a multiple of 2 when the parameter n increases, which makes the solution extremely complicated or even impossible to solve. The numerical solution is in line with the current development trend of digital communication, and there is no need to simplify the solution process in the process of solving the numerical solution. When the parameter n and the Fourier series m take different values, the obtained symbol signals can also meet the needs of different communication occasions. The relevant data of the above research process were solved by a MATLAB software simulation, which proves the correctness of the method and the superiority of the numerical method.