My textbook states that the area of a parallelogram bounded by $y=m_1x+c_1$, $y=m_1x+c_2$, $y=m_2x+d_1$, and $y=m_2x+d_2$ is:
$$area=\left|\frac{(c_1-c_2)(d_1-d_2)}{m_1-m_2}\right|$$
I don't understand how to derive this result. The only thing I can do with these lines is take their perpendicular distance, which is useless because the parallelogram is inclined and not rectangular. Plus, I'll be stuck with a $\sqrt{1+m^2}$ in the denominator which I can't find way to get rid of.
Any advice is appreciated. Thanks!



Assume that $m_1$ and $m_2$ are distinct, so that none of the lines is parallel to another one and the parallelogram they bound is well-defined.
The intersection between $y=m_1x+c_1$ and $y=m_2x+d_1$ is the following: $$A=\left(\frac{d_1-c_1}{m_1-m_2},\frac{m_1d_1-c_1m_2}{m_1-m_2}\right).$$ The intersection between $y=m_1x+c_1$ and $y=m_2x+d_2$ is the following: $$B=\left(\frac{d_2-c_1}{m_1-m_2},\frac{m_1d_2-c_1m_2}{m_1-m_2}\right).$$ The intersection between $y=m_1x+c_2$ and $y=m_2x+d_1$ is the following: $$C=\left(\frac{d_1-c_2}{m_1-m_2},\frac{m_1d_1-c_2m_2}{m_1-m_2}\right).$$ Therefore, one gets: $$\overrightarrow{AB}=\left(\frac{d_2-d_1}{m_1-m_2},m_1\frac{d_2-d_1}{m_1-m_2}\right),\overrightarrow{AC}=\left(\frac{c_1-c_2}{m_1-m_2},m_2\frac{c_1-c_2}{m_1-m_2}\right).$$ Notice that the desired parallelogram is spanned by $\overrightarrow{AB}$ and $\overrightarrow{AC}$ so that it has area: $$\left|\det\left(\overrightarrow{AB},\overrightarrow{AC}\right)\right|=\left|\frac{d_2-d_1}{m_1-m_2}m_2\frac{c_1-c_2}{m_1-m_2}-m_1\frac{d_2-d_1}{m_1-m_2}\frac{c_1-c_2}{m_1-m_2}\right|=\left|\frac{(c_1-c_2)(d_2-d_1)}{m_1-m_2}\right|.$$ Whence the result.
Perhaps not the cleverest approach but works just fine and the computations are easy to conduct.