This work is about the inverse dynamics of underactuated flexible mechanical systems governed by quasi-linear hyperbolic partial differential equations subjected to time-varying Dirichlet boundary conditions that are enforced by unknown, spatially disjunct, hence non-collocated Neumann boundary conditions.