I suspect that it has to do with how f(x) is defined at the top of your work.
BTW, the work you posted is extremely difficult to read. You're likely to get more help if people here can read what you have written. It would be better if you rewrote it without all the stuff you crossed out.