I'm sure this is a simple solution, but I can't find a proper explanation online.
I'm currently reading Algorithmic Game Theory, and at one point the author states that given the function
$x(1-t-x)$, the highest value $x$ can be is $ \frac{(1-t)}{2} $.
I can see this is true from just plugging in values of $t$ and finding the critical points. For example $x(1-0.5-x)$, $x$ has a value of $.25$
Can someone please explain to me how the author deduced $\frac{(1-t)}{2}$?
Thanks in advance!
This can be done without calculus. Just completing the square in algebra-precalculus will do.
\begin{align} x(1-t-x) &= -(x^2 - (1-t)x) \\ &= -\left(x^2-2\cdot\left(\frac{1-t}{2}\right) x + \left(\frac{1-t}{2}\right)^2\right) + \left(\frac{1-t}{2}\right)^2 \\ &= \underbrace{-\left((x-\frac{1-t}{2}\right)^2}_{\le 0} + \left(\frac{1-t}{2}\right)^2 \end{align}
Therefore, $x = \dfrac{1-t}{2}$ maximizes $x(1-t-x)$.