It seems very basic but I can't understand...
Consider $f(x)=2x$. I want to differentiate $L=(x-f(x))b + 3(f(x))$ regarding $f(x)$.
When I looked at the solution, it says $\partial L/\partial f = -b+3$.
But I am confused because I can't get why $x$ is simply considered a constant and ignored. Shouldn't it be $$ (dx/df - 1)b+3 = (1/2-1)b+3=-b/2+3? $$ Please help me out. Thank you!