1D wave propagation in a rod: analytic treatment for non‐trivial boundary conditions