Euler beam equation is defined as follows:
There is a negative sign, so if the second derivative of the deflection is negative, the moment is positive. When the beam curves down, the second derivative is negative. So the moment on the beam should be positive when the beam bends down.
But normally moment is defined the other way around:
Here the moment is positive when the beam curves up. So is there a contradiction or am I misunderstanding something?