Bài 2:
a. Gọi đt cần tìm là \(y=ax+b\left(a\ne0\right)\)
\(\Leftrightarrow\left\{{}\begin{matrix}a+b=2\\a=2;b\ne-1\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}a=2\\b=0\end{matrix}\right.\Leftrightarrow y=2x\)
Hệ số góc: 2
b. \(x-2y-4=0\Leftrightarrow x-4=2y\Leftrightarrow y=\dfrac{1}{2}x-2\)
Gọi đt cần tìm là \(y=ax+b\left(a\ne0\right)\)
\(\Leftrightarrow\left\{{}\begin{matrix}\dfrac{1}{2}a=-1\\b=3\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}a=-2\\b=3\end{matrix}\right.\Leftrightarrow y=-2x+3\)
Hệ số góc: -2

