What you say above is critical here. Could you please elaborate on it a little using some signal?
What physical system can the function f(x)=ax+b represent? The function f(x)=ax could represent an ohmic resistor circuit.
I've attached a picture of a noninverting amplifier. The figure shows the formulas when the voltage reference is nonzero and when the reference voltage is zero. If you look at these formulas closely, you will realize that one of them is a y=mx function and the other is a y=mx+b function. And, that's all there is to it. If your input and output voltages are referenced to ground, and your opamp is referenced to Vref with Vref not equal to zero, then it's a nonlinear circuit, even when the signals are all in the linear range of the opamp itself.
You are quite correct in saying that it's a trap and I have already fallen into this trap and hit my face on a box full of rotten tomatoes!
Now, wipe the rotten tomatoes off your face, pick yourself up and pat yourself on the back for learning yet another important lesson. You're on the road to becoming an expert because the person you perceive to be the expert is always the one that keeps getting up and has wiped more tomatoes off his face than you have.