Observe phase changes during reflection at plane boundaries.
The displacement of the particle exactly at the boundary ($x = L$) is the algebraic sum of the incident and reflected waves.