Reduction of nonlinear PDEs to linear equations