Identify the given function: \(y = x^3 - 2x + 1\).
Recall that the domain of a function is the set of all real numbers \(x\) for which the function is defined.
Since the function is a polynomial (a cubic polynomial), it is defined for all real numbers because polynomials do not have restrictions like division by zero or square roots of negative numbers.
Therefore, the domain includes all real numbers from negative infinity to positive infinity.
Express the domain in interval notation as \(\left(-\infty, \infty\right)\).