I'm solving a set of similar optimization problems(quadratic programming). We have $n$ variables $x_i$s. And $n$ positive constnats $a_i$ and another three positve constants $c$, $k$ and $X$. The objective function I'm trying to maximize is like:
$$ \sum_{i} a_i x_i(c-kx_i) $$
And there are $2n$ constraint $$ \sum_i x_i \leq X $$ and $$ x_i \geq 0 $$
I already have a program to solve these problems and I'm looking for some systematical ways to approach this problem theoretically. More specifically, I'm also looking for things like how $x_i$ affects objective function value when $x_i$ is close to $\beta$ or $\frac{\beta}{2}$. I tried to analyze this by looking at some extreme cases but I didn't get much result. I don't have any background in convex analysis and I think there may be some theorems or concepts can help me analyze this problem more systematically.