What forms do the equations of motion for an idealized string take if either (a) the linear density varies with position, or (b) the string hangs vertically supported only at the upper end?