I have the function f(n) = n^{2}+ (n^{2}- (n-1)) + (n^{2}- 2(n-1)) + (n^{2}- 3(n-1))

I tried pulling an "n-1" out like so:

f(n) = n^{2}+ (n-1) [ (n^{2}-1) + (n^{2}-2) + (n^{2}-3) ]

But when I run test cases on it against the original, it doesn't come out right.

I'm pretty positive I can't take an "n^2" out to simplify it.

Is that the simplest I can express that equation?