In classical mechanics, usual observables of a system are its position $x(t)$ and its momentum $p(t)$, which are just symbols holding the unique position/momentum value at a given time.
I wonder why these classic observables become (self-adjoint) operators in quantum mechanics \begin{equation} \begin{split} x(t) \quad\longleftrightarrow\quad &\hat{x}\;,\quad \langle x|\hat{x}|\varphi\rangle = x\langle x|\varphi\rangle \\ p(t) \quad\longleftrightarrow\quad &\hat{p}\;,\quad \langle x|\hat{p}|\varphi\rangle = -i\hbar \frac{\partial \langle x|\varphi\rangle}{\partial x} \end{split} \end{equation} which operate on a wave function $\langle x|\varphi\rangle$.
I mean that I could not find any clear mathematical explanations of this after hours of googling and looking at the numerous other related (sometimes duplicate) forum's threads. This correspondence is usually given "as is" in most books and tutorials.
From this duplicate thread, my guess is that is has something to do with the underlying algebra. So to make a sound answer to that question would be first to understand the algebra beneath classical dynamics and how it is changed in quantum dynamics.
Unfortunately, I cannot post on this thread. Could someone help me to understand this change from classic to quantum?