If I understand correctly, the definition of expectation value of an operator, $\hat{Q}$, is $\int \Psi^* \hat{Q} \Psi dx$. But why $x$ specifically? If we want the expected value of the energy operator, for example, shouldn't we perform a change of basis on $\Psi$ so it's in terms of energy and then integrate w.r.t. energy?
At first, I thought it was because the operators themselves were essentially doing exactly that, performing a change of basis. But if that were so, wouldn't we need to do $\Psi^{-1} \hat{Q} \Psi$ and then integrate w.r.t. to the new variable (energy, in my example)? But the formula doesn't do that, at least, not explicitly. Is $\int \Psi^* \hat{Q} \Psi dx$ ultimately equivalent to doing a change of basis and integrating w.r.t. the new variable? If so, where can I find the proof of this?
Edit: This question isn't a duplicate of the one it's been merged with. The other question asks about the general form of the expected value equation, and specifically why the terms in the integrand are ordered the way they are. My question, on the other hand, is about the integration variable used, which is something the other question doesn't even touch upon. Just because the question titles are superficially similar doesn't make them the same question. Before posting this question I had already looked at the other question, as well as every other question about the expectation value formula that I could find on the site. None of them even touch on the specific issue I'm asking about here. I've already gotten satisfactory responses to this question, but it still doesn't make sense to merge it with that other question that's only superficially similar.