A wave function is a mathematical description of the quantum state of a system, representing the probabilities of finding a particle in various positions and states. It connects deeply with the behavior of particles at the quantum level, demonstrating the dual nature of matter as both particles and waves, and illustrating how energy levels are quantized.