A function is an expression, a formula. An equation is two expressions with an equal sign in between. So 2x + 1 is an expression that could be named f(x). F(x) = 2x +1 is an equation, that happens to define a function.