The wave equation in a medium with a time‐dependent boundary