The derivatives are:
- For \( f(x) = (x^3 + 5)(x^3 + x + 1) \):
\[
f'(x) = 3x^2(x^3 + x + 1) + (x^3 + 5)(3x^2 + 1)
\]
- For \( f(x) = \left(\frac{1}{x} - x^2\right)(x^3 + 1) \):
\[
f'(x) = 3x^2\left(\frac{1}{x} - x^2\right) + \left(-2x - \frac{1}{x^2}\right)(x^3 + 1)
\]
Thus, the final boxed answers are:
\[
\boxed{f'(x) = 3x^2(x^3 + x + 1) + (x^3 + 5)(3x^2 + 1)}
\]
\[
\boxed{f'(x) = 3x^2\left(\frac{1}{x} - x^2\right) + \left(-2x - \frac{1}{x^2}\right)(x^3 + 1)}
\]