Say I intend to maximize a real-valued, strictly concave, twice-differentiable function:
\begin{equation} f:\mathbb{R^n} \rightarrow \mathbb{R} \end{equation}
If the problem is unconstrained, that is: \begin{equation} \underset{x_1,x_2,\dots,x_n}{max} f(x_1,x_2,\dots,x_n) \end{equation} I would take the first derivative, and set equal to zero. This would yield the unique global optimum due to the strict concavity of the problem.
Say I impose a non-negativity constraint, such that my problem becomes:
\begin{aligned} & \underset{x_1,x_2,\dots,x_n}{max} & f(x_1,x_2,\dots,x_n) \\ & & x_1,x_2,\dots,x_n \geq 0 \end{aligned}
Will it be sufficient to take the solution to the unconstrained problem and set any negative $x_i$'s (if any) equal to 0? Or does that depend entirely on what my function look like, regardless of the real-value, strictly concave, and twice-differentiable attributes of it?
In other words, can I bypass using Kuhn-Tucker conditions due to the nature of the function?