The Differential equation is
.
The function is
.
Differentiate on each side with respect to
.

(1)
Differentiate on each side with respect to
.

(2)
Substitute the results (1), (2) and
in differential equation.
.

Consider
.
Compare
coefficients on each side.

Compare
coefficients on each side.
Compare constants on each side.
\
\
and
.