find f(x) with solution:

1. f(x)=3x-1

2. f(x)=x²-1