I have this problem: "Find a number k such that the line $x + y = k$ is normal to the curve $y = x^{2}$
I did it like this:
$y' = 2x \Rightarrow y'(a) = 2a$
$y(a) = a^{2}$
So I put this into the formula for a tangent to an equation $y-y_0 = a(x-x_0)$
And got: $y - a^{2} = 2a(x-a)$, and then I found the tangent that is normal to that one:
$y - a^{2} = \frac{-1}{2a}(x-a) \Leftrightarrow y = \frac{-1}{2a}x + \frac{1}{2} + a^{2}$
Then I just added x to both sides and said
$ x + y = \frac{-1}{2a}x + \frac{1}{2} + a^{2} + x $
So $k \text{ is } \frac{-1}{2a}x + \frac{1}{2} + a^{2} + x$
... but my classmate said it's wrong and also im skeptical to my answer since the problem asks for a number k
Anyone know how to interepret this problem? Thanks in advance