Both curves are the same “S-shaped” cubic—they have identical turning-point behaviour and inflection pattern.
Visually, one is just shifted up-and-to-the-left and the other down-and-to-the-right, but their shape (and the relative heights of their peaks and depths of their troughs) is exactly the same.
Therefore, we say that the curves are transformations of each other, which means that either curve could be produced by applying some consistent rule to the other curve. In this case, the rule is a diagonal shift. Notice that each point is shifted in the exact same direction with the exact same distance from one curve to another.