I am having trouble understanding how an operator actS when it is between a ket and a bra:
For example, let $\hat{a}$ be a ladder operator, as in a simple harmonic oscillator case, and let $\phi_n$ an energy eigenstate associated to the energy $E_n$. Then I want to compute $\langle \phi|\hat a^2|\phi \rangle$
Option 1 $$\langle \phi_n| (\hat{a} (\hat{a} | \phi_n \rangle)) \propto \langle \phi_n | \phi_{n-2} \rangle = 0 $$
Option 2 $$(\langle \phi_n|a)(a| \phi \rangle)$$
I mean, in the first case it gives zero, but what about the second case?