Quantum phase estimation predicts the eigenvalues of a unitary operator given an eigenstate, using a sequence of controlled versions of that operator. The math relies on the fact that $ |0, \psi \rangle + |1 \rangle \otimes U | \psi \rangle = | 0, \psi \rangle + e^{2\pi i \theta} |1, \psi \rangle = (|0 \rangle + e^{2\pi i \theta} | 1 \rangle) \otimes | \psi \rangle$.
But what if we are given a circuit that looks a bit like this?
Where $| \psi \rangle$ is just a random state.
Taking a look at the first CNOT, the control qubit looks like:
$$ \frac{1}{\sqrt{2}} ( | 0 \rangle + | 1 \rangle) $$
and the target is just $| \psi \rangle$.
This produces a state
$$ \frac{1}{\sqrt{2}} ( |0, \psi \rangle + |1 \rangle \otimes X | \psi \rangle) $$
The trouble comes with the next CNOT gate; how would we find the state? There is no direct target state, it is already entangled with another qubit (the first control bit).
So what is the math behind this?