Find the least possible value of $k$ for which $f(x)=x^2+kx+1$ is increasing on $[1,2]$
$$ f(x)=x^2+kx+1\\ f'(x)=2x+k\geq0\implies \boxed{k\geq-2x}\\ 1\leq x\leq2\implies -2\leq-x\leq-1\implies-4\leq-2x\leq-2\implies k>-4\\ f(2)>f(1)\implies k>-3 $$
The solution given in my reference is $x=-2$, how do I obtain it mathematically ?
$$f(x)=x^2+kx+1$$ $$f'(x)=2x+k\geq0\implies \boxed{k\geq-2x}$$
It's good up to here, but since we must have $k \geq -2x$ for $x \in [1, 2]$ it suffices to have $k = -2$.
Mathematically, if we have $$k = -2$$ and $$1 \leq x \leq 2$$
Then, $$1 \leq x$$ $$-2x \leq -2$$ $$-2x \leq k$$ $$2x + k \geq 0$$
To prove that $-2$ is the lowest possible value for $k$, suppose $$k < -2$$ and let $$x = 1$$ Then, $$2x + k < 0$$ which is obviously a contradiction.