Let $P(x_1,y_1)$ and $Q(x_2,y_2)$ be two points in the plane. Show that the equation of the line through $P$ and $Q$ is given by $\det(A) = 0$, where $$ A = \left [ \begin{array}{ccc} x & y & 1 \\ x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \end{array}\right ] $$
How do I show that the points are given by the matrix and how do I find the slope?