Bài 1:
a: Sửa đề \(x^3y-2x^2y+xy\)
\(=y\left(x^3-2x^2+x\right)\)
\(=x\cdot y\cdot\left(x^2-2x+1\right)\)
\(=xy\left(x-1\right)^2\)
b: Sửa đề: \(x^2-9-2xy+y^2\)
\(=\left(x^2-2xy+y^2\right)-9\)
\(=\left(x-y\right)^2-9\)
\(=\left(x-y-3\right)\left(x-y+3\right)\)
Bài 2:
a: ĐKXĐ: \(x\notin\left\{3;-3;-1\right\}\)
b: \(A=\left(\dfrac{x}{x+3}-\dfrac{2}{x-3}+\dfrac{x^2-1}{9-x^2}\right):\left(2-\dfrac{x+5}{x+3}\right)\)
\(=\left(\dfrac{x}{x+3}-\dfrac{2}{x-3}-\dfrac{x^2-1}{\left(x-3\right)\left(x+3\right)}\right):\dfrac{2x+6-x-5}{x+3}\)
\(=\dfrac{x\left(x-3\right)-2\left(x+3\right)-x^2+1}{\left(x+3\right)\left(x-3\right)}\cdot\dfrac{x+3}{x+1}\)
\(=\dfrac{x^2-3x-2x-6-x^2+1}{x-3}\cdot\dfrac{1}{x+1}\)
\(=\dfrac{-5x-5}{\left(x-3\right)\left(x+1\right)}=-\dfrac{5\left(x+1\right)}{\left(x-3\right)\left(x+1\right)}=-\dfrac{5}{x-3}\)
c: \(x^2-x-2=0\)
=>\(\left(x-2\right)\left(x+1\right)=0\)
=>\(\left[{}\begin{matrix}x-2=0\\x+1=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=2\left(nhận\right)\\x=-1\left(loại\right)\end{matrix}\right.\)
Thay x=2 vào A, ta được:
\(A=\dfrac{-5}{2-3}=\dfrac{-5}{-1}=5\)