1 ) Ta có :
\(ax+2x+ay+2y+4\)
\(=x\left(a+2\right)+y\left(a+2\right)+4\)
\(=\left(x+y\right)\left(a+2\right)+4\)
\(=\left(a-2\right)\left(a+2\right)+4\) ( do \(x+y=a-2\) )
\(=a^2-4+4\)
\(=a^2\left(đpcm\right)\)
2 ) \(\left(ax+b\right)\left(x^2-x-1\right)=ax^3+cx^2-1\)
\(\Leftrightarrow ax^3+bx^2-ax^2-bx-ax-b=ax^3+cx^2-1\)
\(\Leftrightarrow ax^3+x^2\left(b-a\right)-\left(b+a\right)x-b=ax^3+x^2c-0.x-1\)
\(\Leftrightarrow\left\{{}\begin{matrix}b-a=c\\b+a=0\\b=1\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}1-a=c\\1+a=0\\b=1\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}1-a=c\\a=-1\\b=1\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}c=2\\a=-1\\b=1\end{matrix}\right.\)
Vậy \(a=-1;b=1;c=2\)
Ta có:
\(ax+2x+ay+2y+4\)
\(=\left(ax+ay\right)+\left(2x+2y\right)+4\)
\(=a\left(x+y\right)+2\left(x+y\right)+4\)
\(=\left(x+y\right)\left(a+2\right)+4\)
Thay \(x+y=a-2\), ta được
\(=\left(a-2\right)\left(a+2\right)+4\)
\(=a^2-4+4\)
\(=a^2\)