On solutions of PDEs by using algebras