Relativistic solutions to the problem of jets with time-dependent injection velocities