Solution (source code)

= Solution

The trial already vanishes at $x=0$. The second <Dirichlet boundary condition> requires $a(a-c)=0$, hence \b[$c=a$] for a box of positive length. This makes the trial an admissible <particle in a box> <wavefunction>.