Prove that the gradient of the tangent to $xy=d^2$ is $-\frac{c^2}{4d^2}$ I have this question:

Given that $y=mx+c$ is a tangent to $xy=d^2$ prove that $m=-\frac{c^2}{4d^2}$.

I'm not sure what direction to take - I tried differentiating the hyperbola equation, but that gave me a gradient of $-\frac{y}{x}$. How do I go about proving this?

$xy = d^2 \Leftrightarrow y = \frac{d^2}{x}$.
Tangent line equation to $f(x)$ in point $x=a$ is
$g(x) = f(a) + f'(a)(x-a)$.
$f'(x) = -\frac{d^2}{x^2}$, so $g(x) = \frac{d^2}{a} - \frac{d^2}{a^2}(x-a) = -\frac{d^2}{a^2}x + \frac{2d^2}{a}$, hence $m = -\frac{d^2}{a^2}, c = \frac{2d^2}{a}$ and $m = -\frac{c^2}{4d^2}$.
