The probability is given by the square of the absolute value of the coefficient of the state $|A\rangle$, which is $a$. So, the probability is $|a|^2$.
(a) If $a = \frac{i}{2}$, then the probability of finding the particle in the first well is:
$$
|a|^2 =
Show more…