The Schrödinger equation was not derived , a more accurate word would be guessed . It's a fundamental law, like F = ma (although that is actually more of a definition than a law). There is no fundamental explanation why electrons obey the Schrödinger equation, just like there's no fundamental explanation why macroscopic objects obey F = ma.
An especially beautiful constraint is "Schroedinger's equation has to be linear because otherwise you can build a (quantum) computer that can solve NP-complete problems in polynomial time". Schroedinger did not know about NP-completeness, but this notion does give us clues why the equation is what it is.
It is always instructive to see how a "fundamental" law can be derived or at least constrained from other laws. Thermodynamics and the notion of entropy would not have been invented if engineers did not "rederive" what was considered fundamental at the time.