FAS1998 said:
Why are we allowed to differentiate both sides of something like
##y=x^2##
but not something like
##x=x^2##
I believe the answer might be that the first equation is an identity that is true for all values while the second equation is an equation and is only true for some values.
Although I’m not entirely sure if this is correct, and if it is correct, I’m not entirely sure how to distinguish between identities and equations.
In my view this depends on the mathematical conventions of what we mean by such equations.
If you write: Let ##y = x^2##, then that is actually ambiguous. It could mean:
Let ##y## be a function of ##x## defined by ##y = x^2##.
In which case, you are free to differentiate this function.
Or, it could mean:
Let ##y_0## be a specific number that satisfies ##y_0 = x_0^2##.
In this case, technically, there is no function to differentiate. Although, you could easily turn this into a function by considering ##x_0## as a variable and ##y_0## as a function of this variable.
If, however, you write: Let ##x = x^2##, then in my opinion this can only mean that you have a specific number that satifies ##x_0 = x_0^2##. You could, in fact, rewrite this as:
##x^2 - x = 0##
In this case, there is nothing to differentiate, as all you have is at most two solutions to this quadratic equation.
In summary, I would compare your original question to the following:
##y = x^2 - x##
Is the definition of a quadratic function, which can be differentiated.
##x^2 - x = 0##
Is an equation for the (discrete) roots of a quadratic function and cannot be differentiated (because the equality only holds for at most two values of ##x##).
Note, finally, that an identity is something like:
##\cos^2x + \sin^2 x = 1##
That is an equation that holds for all points. I.e. the graph of the function is the line ##y = 1##. So, that can be differentiated.
Note that, to be very precise here, the symbol ##1## actually stands for the function that is identically ##1##, which is why it can be differentiated.