Use triangles to represent subtrees that are not affected by this operation, and think of how to cascade the imbalances up the tree.