Let $\alpha \in \mathbb{C}$ be an algebraic number. If the minimal polynomial of $\alpha$ over $\mathbb{Q}$ has degree $2$, we say $\alpha$ is a quadratic number. Let $\theta$ be a quadratic number. $\theta$ is a root of the unique polynomial $ax^2 + bx + c \in \mathbb{Z}[x]$ such that $a > 0$ and gcd$(a, b, c) = 1$. $D = b^2 - 4ac$ is called the discriminant of $\theta$.
Let $\sigma = \left( \begin{array}{ccc} p & q \\ r & s \end{array} \right)$ be an element of $GL_2(\mathbb{Z})$.
We claim that $\omega = \frac{p\theta + q}{r\theta + s}$ is a quadratic number. Since $\omega \in \mathbb{Q}(\theta)$, it suffices to prove that $\omega$ is not a rational number. Suppose otherwise. Since $p\theta + q = \omega r\theta + \omega s$, and $1, \theta$ are linearly independent over $\mathbb{Q}$, $p = \omega r$ and $q = \omega s$. Hence det $\sigma = ps - qr = \omega rs - \omega rs = 0$. This is a contradiction.
My question Is the following proposition correct? If yes, how do you prove it?
Proposition Let $\theta, D, \sigma, \omega$ be as above. Then the discriminant of $\omega$ is $D$.