Abstract:By introducing a new transformation, using the principle of homogeneous balance and selecting an appropriate undetermined function, an algorithm was proposed to construct the analytical solutions to a class of nonlinear partial differential equations. As an example, this algorithm was applied to the mKdV equation,the KdV-Burgers equation and the KdV-Burgers-Kuramoto equation. Furthermore, the analytical solutions of such equations were obtained with the help of the symbolic computation system Mathematica. The results show that this algorithm is simple and effective to find out the analytical solutions of KdV equations, which could be extended to solve high-dimensional nonlinear partial differential equations.