Given: $$ \lim_{x \to 1} f(x) = \frac3{1-x^3} - \frac1{1-x} $$
I first used the difference of cubes to get $$ \lim_{x \to 1} f(x) = \frac3{(1-x)(1+x+x^2)} - \frac1{1-x} $$
Then multiplied each term by $(1-x)$, cancelling $(1-x)$ in the first term, and making the second term $1$ $$ \lim_{x \to 1} f(x) = \frac3{(1+x+x^2)} - 1 $$
After substitution $$ \lim_{x \to 1} f(x) = \frac33 - 1 $$
Which equates to $0$. But I know the correct answer is $1$. Where did I slip up?