TeX source:
\frac{3 (ax+y) + 4a (ax+y) - d (ax+y)}{c (ax+y)} = \frac{3+4a-d}{c}