Exact Solutions and Invariant Subspaces of Nonlinear