Answer:
φ = B sin (2π n/a x)
Explanation:
In quantum mechanics when a particle moves freely it implies that the potential is zero (V = 0), so its wave function is
φ = A cos kx + B sin kx
we must place the boundary conditions to determine the value of the constants A and B.
In our case we are told that the particle cannot be outside the boundary given by x = ± a / 2
therefore we must make the cosine part zero, for this the constant A = 0, the wave function remains
φ = B sin kx
the wave vector is
k = 2π /λ
now let's adjust the period, in the border fi = 0 therefore the sine function must be zero
φ (a /2) = 0
0 = A sin (2π/λ a/2)
therefore the sine argument is
2π /λ a/2 = n π
λ= a / n
we substitute
φ = B sin (2π n/a x)