Traditionally), helper engines would assist trains over designated helper districts where heavy grades required additional power. A helper with a separate crew usually would be added at the end of the train (either behind or ahead of caboose, depending upon construction of the caboose) and then cut off at the end of the helper district. It would then either return light to the bottom of the grade, or be turned at the facility where it was cut off so that it could assist a train running in the other direction, if the grades were heavy both ways. Sometimes an additional engine would be cut into the middle of the train as well. Rio Grande sometimes ran trains over Tennessee Pass using three L-131 2-8-8-2s -- one at the front, one in the middle, one at the rear end.
With distributed power, remotely controlled diesel units are added at the end of train (sometimes also in the middle) in order to reduce loads on draft gear and to improve train handling (by reducing slack action) and to improve air brake application. These additional units typically remain in the train from origin to destination. On the old Sunset route through Tucson, UP trains typically run through with two units up front and one at the rear. I haven't seen any mid-train units so far.