The equation of line that passes through (-1, -2) and (4, 3) is given as:
[tex]\begin{gathered} \frac{(x-(-1))}{4-(-1)}=\frac{(y-(-2))}{3-(-2)} \\ \frac{x+1}{5}=\frac{y+2}{5} \\ x+1=y+2 \\ x=y+1 \\ \end{gathered}[/tex]To check if the point (3, 1) passes through this line.
[tex]3\ne1+1[/tex]Hence the point does not lie on the line.