If y = 1, it means that y is a constant value and not a function of x. Therefore, dy/dx would be equal to 0, as the derivative of a constant is always 0.
Boost your grades with a concise and bespoke A level maths revision course