A new method for finding traveling wave solutions of the generalized KdV equation with variable coefficient

In this paper, a transformation between two ansatz equations is presented and applied to discuss the generalized KdV equation with variable coefficient. A lot of exact traveling wave solutions are obtained in terms of elliptic functions. The method can also be used to study other nonlinear partial differential equations.