Between the wheels of the train and the track, there is friction (especially when the train is changing speed rapidly). This causes the track and the wheels to heat up. Why does rubbing two things together produce heat?