In this paper, generalized KdV equations are investigated by using a mathematical technique based on the reduction of order for solving differential equations. The compactons, solitons, solitary patterns and periodic solutions for the equations presented in this paper are obtained. For these generalized KdV equations, it is found that the change of the exponents of the wave function u and the coefficient a, positive or negative, leads to the different physical structures of the solutions.