Sorry if this is a complete dummy question, but I haven't done math in years and I'm quite rusty. I'm reading this explanation of least squares regression, which internally uses the quadratic equation solution. I was wondering if someone can tell me if my analysis of this is correct. I'm trying to explain to myself why the expression is clearly minimized...
which is
$$a\left(x+\frac{b}{2a}\right)^2 + \frac{4ac-b^2}{4a}$$
Since the second term does not depend upon x, and the first term is a
times a perfect square (and a > 0), the expression is clearly
minimized when x = -b/(2a).
I suppose this is somewhat equivalent:
$z = a(x+y)^2$ + C
which we can take the derivative of to find the function for the slope of $z$:
$\frac{dx}{dz} z = 2a(x+y)$
set this equal to zero to find the point where the slope is zero (e.g. a minimum or maximum--we know that $a > 0$ so this should be a minimum)
$0 = 2a(x+y)$
$a$ is discarded during the division, and subtract to solve for $x$
$0 = x+y$
$ x =-y$