\(x+2y=1\Rightarrow x=1-2y\)
a/ \(A=x^2+y^2=\left(1-2y\right)^2+y^2=5y^2-4y+1=5\left(y-\frac{2}{5}\right)^2+\frac{1}{5}\ge\frac{1}{5}\)
\(A_{min}=\frac{1}{5}\) khi \(\left\{{}\begin{matrix}x=\frac{1}{5}\\y=\frac{2}{5}\end{matrix}\right.\)
b/ \(B=\left(1-2y\right)y=-2y^2+y=-2\left(y-\frac{1}{4}\right)^2+\frac{1}{8}\le\frac{1}{8}\)
\(B_{max}=\frac{1}{8}\) khi \(\left\{{}\begin{matrix}x=\frac{1}{2}\\y=\frac{1}{4}\end{matrix}\right.\)