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

Please help me I have exam the day after tomorrow ​