In this book in Section 3.2.3, the author shows how to find extremum of a quadratic function using an invariant quality and symmetry operation, which preserves it.
E.g. to find the extremum of $f(x)=6x-x^2$ we can notice that $f(x)=6x-x^2 = x(6-x) = (6-x)x$. This operation maps every value $x$ to $6-x$ through the axis of symmetry and vice-versa (e.g. 0 is mapped to 6 and 6 mapped to 0). This operation preserves symmetry for $x=3$ - the axis of symmetry and hence the extremum of the function.
What about the function $f(x)=6x+x^2 = x(6+x) = (6+x)x$? We know that the minimum of this function is at $x=-3$ but $6+(-3)=3$. Also this operation maps e.g $4$ to $10$, but $10$ to $16$! Hence, this approach fails with this example (symmetry is not preserved).
Why is that so? Why is this approach not working for all the quadratic functions?
It will work, but you need to find the correct symmetry transformation. Let's talk more about the first example, $f(x) = x(6-x)$. The symmetry transformation here is $x\mapsto 6-x$ because if we replace every $x$ in $x(6-x)$ with $6-x$ we get $$(6-x)(6-(6-x)) = (6-x)(6-6+x) = (6-x)x = x(6-x) = f(x).$$ In other words, $f(6-x) = f(x)$. We do the transformation, in this case replace $x$ with $6-x$, and arrive at the original function.
Now for your second example, $f(x) = x(6+x)$. To use the same argument we need to find the right transformation. In this case, the transformation is $x\mapsto -x-6$. We can verify this: $$f(-x-6) = (-x-6)(6-x-6) = (-x-6)(-x) = (x+6)x = x(6+x) = f(x).$$ Furthermore, the transformation $x\mapsto -x-6$ maps $4$ to $-10$ and $-10$ to $4$, and we can verify symmetry in general as well. In this case the only value that doesn't change is $x = -3$, because $-(-3) - 6 = -3$. So, the axis of symmetry, as well as the minimum of the function, is at $x = -3$.