Optimization problem in a single variable. $$f(x) = x^3 - 3x $$
Find the maximum value of the function $f(x)$ on the set of real numbers satisfying 
$$x^4 + 36 \le 13x^2$$ 
I have only learned how to solve such question when the constraints are in an equality rather than an inequality through the Lagrangian method. General method to solve such problems with inequality constraints would also be extremely helpful.
Thanks.
 A: So your $x$ is in $[-3,-2]\cup [2,3]$ and $f$ is odd. 
Clearly $f$ is increasing on $[2,3]$ since greatest zero is $\sqrt{3}<2$, so $y_{\max} = f(3)$ and $y_{\min} = f(-3)$.
A: $$\begin{align}
x^4+36 &\le 13x^2 \\
x^4-13x^2+36 &\le 0\\
x^4-9x^2-4x^2+36 &\le 0\\
x^2(x^2-9)-4(x^2-9)  &\le 0\\
(x^2-2^2)(x^2-3^2)  &\le 0\\
(x+3)(x+2)(x-2)(x-3)  &\le 0\\
\end{align}$$
This inequality is only satisfied when $2 \le x \le 3$ or $-3 \le x \le -2$.
$f(x)=x^3-3x=x(x^2-3)$ so $f(x)$ is an odd function. Also, it is an increasing function so $f(3)$ is the maximum value of $f(x)$ in this domain.
We can verify this by observing that:
$$\begin{align}
f(-3) &= -18\\
f(-2) &= -2\\
f(2) &= 2\\
f(3) &= 18\\
\end{align}$$ 

General method:
$\cdot$ Find the domain.
$\cdot$ Find the gradient by differentiating the function.
$\cdot$ Equate gradient to $0$ and find the values of $x$.
$\cdot$ Differentiate the gradient and calculate $f''(x)$.
$\cdot$ If $f''(x) \gt 0$ it is a minimum.
$\ \ $If $f''(x) \lt 0$ it is a maximum.
$\ \ $If $f''(x) = 0$ it is a point of inflection.  
A: The constaint inequality is:
$$x^4 + 36 \le 13x^2 \Rightarrow (x^2-9)(x^2-4)\le 0 \Rightarrow (x+3)(x+2)(x-2)(x-3)\le 0 \Rightarrow \\
x\in [-3,-2]\cup [2,3]$$
The optimal value of the objective function occurs either at the borders or at the critical points in the constaint region. The critical points are:
$$f'(x)=3x^2-3=0 \Rightarrow x_{1,2}=\pm 1$$
However, both of them lie outside of the contraint. So, the max and min of the function $f(x)=x^3-3x$ occur at the border points:
$$f(-3)=-27+9=-18 \ (\text{min})\\
f(-2)=-8+6=-2\\
f(2)=8-6=2\\
f(3)=27-9=18 \ (\text{max})$$
Alternatively, you can use the generalized Lagrange function and check Kuhn-Tucker conditions for max/min.
