I read before that one can't derive a more fundamental theory, and Quantum Mechanics is a more fundamental theory than classical physics.
I understand the equation
$$E=\frac{1}{2}mv^2+U$$
to be a classical equation as in Quantum Mechanics the concept of velocity doesn't make sense as the concept of velocity doesn't make sense in Quantum Mechanics. Yet I saw it get used in the derivation of the Schrodinger Equation
For Relativistic Quantum Mechanics I also saw the Dirac Equation Derived from the equation
$$E^2=\left(mc^2\right)^2+(pc)^2$$
which I understand that in Non Quantum Special Relativity the equation
$$E^2=\left(mc^2\right)^2+(pc)^2$$
comes from the laws of physics being the same in all inertial reference frames, and from the speed of light being the same for all inertial reference frames.
I understand inertial reference frames in terms of classical physics, in the sense that an object is in an inertial reference frame if it is moving at constant velocity, and the net force acting on it is $0$. This means that I understand the meaning of inertial reference frames in terms of classical physics, but I'm not sure if the concept of inertial reference frames would extend to Quantum Mechanics.
To me deriving the Schrodinger Equation from $$E=\frac{1}{2}mv^2+U$$ seems to go against the concept that I cannot derive an equation in a more fundamental theory from an equation in a less fundamental theory.
My question is why would we use classical equations for energy to derive equations in Quantum Mechanics, or if they aren't classical equations of energy then how do we derive them in Quantum Mechanics?