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