2 in the case of y=3, make a symmetrical figure about the Y axis of the right part of the X-fold image.
This figure and the part on the right side of the Y axis of the X-times image (y=3) form an absolute X-times image (Y = 3).
(e.g. brown part)
3. Translate the brown part down by 9 units to get the image of the original function (such as the red part).
The right side of PS black dotted line is covered by brown part.