Let $A$ a symmetric real matrix. Consider $$ q(x)=x^T A x +b^T x $$ for $x \in \mathbb R^n$. I want to prove that $\inf_{x} q(x)>-\infty$ iff $A$ Is semi definite positive matrix and $b\in \mbox{range}(A)$.
It is plausible to see that if A is not semi definite positive, then since $x^T A x$ grows faster than the linear term, $q(x)$ is more and more negative, but I need to find a formal argument for this. And I am not sure why $b$ has to be in the range of $A$. Any help will be appreciated.
Following your ideas, suppose $A$ is not semipositive-definite, and take $x$ such that $x^T A x<0.$ Then for any positive number $t,$ we have $$ (tx)^T A (tx) + b^T (tx) = (x^T A x)t^2 + (b^Tx) t, $$ which is a quadratic polynomial of $t$ with negative coefficient at the quadratic term, so it does not admit finite infimum.
For the second condition, suppose $b$ does not belong to the range of $A.$ By the argument above, we know $A$ is semipositive-definite. As a result we know that $A$ could not be positive-definite, or the range of $A$ would be the whole space. Therefore, $A$ admits non-trivial kernel. Note that since $A$ is symmetric, we have $$ {\rm im }~A = (\ker A)^\perp. $$ As a result, there exists $x\in\ker A$ such that $b^T x\neq 0$ (or $b$ would belong to the range of $A$). Then for any real number $t,$ $$ (tx)^T A (tx) + b^T (tx) = t (b^T x) $$ could be arbitrary large and small.