If function f [ x + 1 ] = 3x² - x + 1 ,then f [ x ] = ?

will be greatly appreciated, thanks :)))​