i dont get how to solve this
The trick is to not get caught up in the expression x-1 view it as a number. If the equation said f(3), then wherever you see the x you replace it with the number 3. So f(3) = (3)^2 -5. Now replace the 3 with x-1.
Let me know if this helps.