The following question and official answer appeared in an A-levels Cambridge exam. Can anyone please argue rigorously as to why for $x$-axis to be the tangent all that is required is to make the discriminant equal to zero?
The curve $C$ has equation $$y = \frac{x^2 +qx + 1}{2x + 3}$$ where $q$ is a positive constant.
Find the value of $q$ for which the $x$-axis is a tangent to $C$. and sketch $C$ in this case.
Answer : All that was required was a statement to the effect that for tangency with the x-axis the discriminant of the quadratic form $x^2 + qx + 1$, that is $q^2 - 4$, must be zero. Since it is given that $q > 0$ then $q = 2$
Since this is a differentiable function, all you need to prove tangency to the $x$ axis is a root at a local minimum (or maximum). That happens when the quadratic in the numerator has a unique root.