Answer
$x^3y^4+x^2y^2+x^2+xy^4+y^2+1$
Work Step by Step
Using the Distributive Property, the product of the given expression, $
(x^2+1)(xy^4+y^2+1)
,$ is
\begin{array}{l}\require{cancel}
x^2(xy^4)+x^2(y^2)+x^2(1)+1(xy^4)+1(y^2)+1(1)
\\\\=
x^3y^4+x^2y^2+x^2+xy^4+y^2+1
.\end{array}