The function is defined by f(1) = 1 and f(n) = f(n - 1) + 2n for n >= 2. Find f(n) in terms of n.

similar question on this link but not the exact question:

https://web2.0calc.com/questions/a-function-is-defined-by-f-0-0-and-f-n-f-n-1-2n-for-n-gt-0-find-f-4