Yes, you can use ANY form of f(x), IF it works as a solution...try some other random forms of f, and you shall find that they do not work (their constants will be forced to be zero, thus creating the already-known, trivial solution, zero).
For example, using Psuedo's example, try a solution of...