$\lim_{n\to\infty} \dfrac{1^3+2^3+3^3+...+n^3}{(n^2+1)^2}$ using the Squeeze Theorem Evaluate 

$$\lim_{n\to\infty} \dfrac{1^3+2^3+3^3+...+n^3}{(n^2+1)^2}$$

I know that the standard way would be to use the Closed Form of$$1^3+2^3+3^3+...+n^3$$ However I've been trying to practise using the Squeeze Theorem and thus tried to solve it using the Squeeze Theorem. However, I seem to have made a mistake as I don't get the expected answer.
$$$$My approach:$$$$
Taking $$f(n)=\dfrac{1^3+2^3+3^3+...+n^3}{(n^2+1)^2}$$ I identified the general term of $f(n)$ as $\dfrac{k^3}{(n^2+1)^2}$ where $1\le k\le n$
$$$$
Clearly $$\dfrac{1^3}{(n^2+1)^2}\le \dfrac{k^3}{(n^2+1)^2}\le \dfrac{n^3}{(n^2+1)^2}$$
Thus $$\dfrac{1^3}{(n^2+1)^2}+\dfrac{1^3}{(n^2+1)^2}+... \text{n times}\le f(n)\le \dfrac{n^3}{(n^2+1)^2}+\dfrac{n^3}{(n^2+1)^2}+... \text{n times}$$
$$\dfrac{n}{(n^2+1)^2}\le f(n)\le \dfrac{n\times n^3}{(n^2+1)^2}$$
$$\dfrac{n}{(n^2+1)^2}\le f(n)\le \dfrac{n^4}{(n^2+1)^2}$$
$$$$However on taking the limits as $n\to \infty$, I'm not getting the correct answer.
$$$$Could somebody please show me where I've gone wrong? Thanks!

It is an overkill, but the Hermite-Hadamard inequality instantly solves the problem.
$f(x)=x^3$ is a convex function on $\mathbb{R}^+$, hence:
$$\frac{1}{4}=\int_{0}^{1}x^3\,dx \leq \frac{1}{n}\sum_{k=1}^{n}\left(\frac{k}{n}\right)^3 \tag{1} $$
as well as:
$$ \frac{1}{n}\sum_{k=1}^{n+1}\left(\frac{k}{n}\right)^3 \leq \frac{1}{1+\frac{1}{n}}\int_{0}^{1+\frac{1}{n}}x^3\,dx = \frac{1}{4}\left(1+\frac{1}{n}\right)^3\tag{2} $$
where the difference between the LHS of $(2)$ and the RHS of $(1)$ is $O\left(\frac{1}{n}\right)$, so squeezing gives that the wanted limit is indeed $\color{red}{\large\frac{1}{4}}$, since $\lim_{n\to +\infty}\frac{n^4}{(n^2+1)^2}=1$.

An alternative approach is given by the combinatorial identity:
$$ \sum_{k=0}^{N}\binom{M+k}{M}=\binom{M+N+1}{M+1}. \tag{3}$$
For instance,
$$ 6\binom{n+1}{3}\leq n^3 \leq 6\binom{n+2}{3},\tag{4} $$
hence:
$$ 6\binom{N+2}{4} \leq \sum_{n=1}^{N} n^3 \leq 6\binom{N+3}{4}\tag{5} $$
If we multiply both sides of $(5)$ by $\frac{1}{(N^2+1)^2}$ and take the limit as $N\to +\infty$ we recover the previous result, always by squeezing.
