Cho \(x,\,y\) là các số thực thỏa mãn $$(2x-1)+(y+1)\mathrm{i}=1+2\mathrm{i}$$Giá trị của biểu thức \(x^2+2xy+y^2\) bằng
\(2\) | |
\(0\) | |
\(1\) | |
\(4\) |
Chọn phương án D.
\(\begin{aligned}
(2x-1)+(y+1)\mathrm{i}=1+2\mathrm{i}\Leftrightarrow&\,\begin{cases}2x-1=1\\ y+1=2\end{cases}\\
\Leftrightarrow&\,\begin{cases}x=1\\ y=1.\end{cases}
\end{aligned}\)
Khi đó \(x^2+2xy+y^2=(x+y)^2=4\).