I have a problem that looks like a typical problem of maximizing functions in a compact interval. However, I am not being able to prove the bound I need.
Let $n\geq 6$ be an integer number. Consider the function: $$f(t) = \frac{n^2}{2} \cdot t^{n-4}(1-t^2) \left(t^2 - \frac{n-3}{n}\right) $$
Prove that for all $t\in [0,1]$ it holds $f(t) \leq 1$.
The points where the derivative $f'$ is zero are very ugly expressions.
By maximizing the factor $t^{n-4}(1-t^2)$ and using that the last factor is at most $\frac{3}{n}$ it is possible to deduce that for $n\geq 6$ it is $f(t) \leq \frac{3}{2}$ (in fact, it is possible to bound it in the limit by $\frac{3}{e}\approx 1.1036...$ but that is far from $1$.
I have checked that the claim is true for several random values of $n$ (in fact, I think that the bound can be reduced to something like $0.61...$ for $n>20$ say).
Ok, with some clever separation into cases I managed to do it.
If $1-t^2 < \frac{2}{3n}$ then just bound: $$f(t) < \frac{n^2}{2}\cdot 1^{n-4}\cdot \frac{2}{3n} \cdot \left( 1 - \frac{n-3}{n}\right) =1.$$
If $1-t^2 \geq \frac{2}{3n}$, then $t^2\leq 1-\frac{2}{3n}$, so that: $$f(t) \leq \frac{n^2}{2} t^{n-4} (1-t^2) \left(1-\frac{2}{3n} - \frac{n-3}{n} \right)= \frac{7n}{6} t^{n-4}(1-t)^2$$ and the maximum of $t^{n-4}(1-t^2)$ in $[0,1]$ can be found differentiating and equating to zero. It is exactly $\left(1-\frac{2}{n-2}\right)^{\frac{n-4}{2}} \frac{2}{n-2}$. So that, putting al this together: $$f(t) \leq \frac{7}{3} \frac{n}{n-2} \left(1 - \frac{2}{n-2}\right)^{\frac{n-4}{2}}.$$ And as the term in the parentheses tends to $e^{-1} < 0.3679... < 3/7$, it is easy to conclude.