Bài 1: Ta có: \(A=1+4y-y^2=5-\left(y^2-4y+4\right)=5-\left(y-2\right)^2\le5\)
Dấu "=" xảy ra khi \(\left(y-2\right)^2=0\Rightarrow y-2=0\Rightarrow y=2\)
Vậy \(maxA=5\) khi \(y=2\)
Bài 2: Ta có: \(a^3+b^3+3ab=\left(a^3+3a^2b+3ab^2+b^3\right)-3a^2b-3ab^2+3ab\)
\(=\left(a+b\right)^3-3ab\left(a+b-1\right)=1-0=1\)