I do not know if it is the usual type of question to ask for someone to confirm a computation, but I don't really have any way to know if this is correct (or do I?).
Lemma A function $f: \mathbb{N} \to \mathbb{C}$ verifies $$f(n) \leq \frac{1}{\tfrac{1}{n^3}+O(\tfrac{1}{n^5})}\log{\left(\frac{(1 - \varepsilon)(n+O(\tfrac{1}{n}))}{O(1)}\right)}$$ for $ \varepsilon > 0$.
I would like to simplify the bound for $f(n)$ and this is what I did:
\begin{equation} \begin{split} f(n) & \leq \left(n^3 + O(n)\right) \log{\left(n\frac{(1 - \varepsilon)(1+O(\tfrac{1}{n^2}))}{ O(1)}\right)} \\ & = \left(n^3 + O(n)\right) \left[\log{(n)}- \log{\left(\frac{O(1)}{(1 - \varepsilon)(1+O(\tfrac{1}{n^2}))}\right)}\right]\\ & = n^3 \log{(n)}+ O(n^3). \end{split} \end{equation}
Can anyone tell me if this correct or if not, tell me how to correctly simplify the expression?