a.
\(y=x^2\left(4-2x\right)=x.x.\left(4-2x\right)\le\left(\dfrac{x+x+4-2x}{3}\right)^3=\dfrac{64}{27}\)
\(y_{max}=\dfrac{64}{27}\) khi \(x=4-2x\Rightarrow x=\dfrac{4}{3}\)
b.
\(y=x\left(2-x\right)^2=\dfrac{1}{2}.2x.\left(2-x\right)\left(2-x\right)\le\dfrac{1}{2}\left(\dfrac{2x+2-x+2-x}{3}\right)^3=\dfrac{32}{27}\)
\(y_{max}=\dfrac{32}{27}\) khi \(2x=2-x\Rightarrow x=\dfrac{2}{3}\)