# Particle in a Box

What are the probabilities of finding the electron anywhere between x=0 and x=L/4? (n=1 and n=2)

Can you give example to me?

That is the correct wave function. Can you use that to predict the probability in being in one section of the box? Remember that $$\left|\psi\left(x\right)\right|^2$$ is a probability density, so you have to integrate over some interval in x (The right interval is specified in your problem, can you spot it?).