Here h(x) (in blue) = f(x) + g(x). Slide the point, A, along the axis. Notice that the slopes are also added.
Dave Matthews, Created with GeoGebra