a) \(M-\left(x^2y-1\right)=-2x^3+x^2y+1\)
\(\Rightarrow M-x^2y+1=-2x^3+x^2y+1\)
\(\Rightarrow M=-2x^3+x^2y+1+x^2y-1\)
\(\Rightarrow M=-2x^3+2x^2y\)
b) \(3x^2+3xy-x^3-M=3x^2+2xy-4y^2\)
\(\Rightarrow-M=3x^2+2xy-4y^2-3x^2-3xy+x^3\)
\(\Rightarrow-M=x^3-4y^2-xy\)
\(\Rightarrow M=-x^3+4y^2+xy\)