Solution

The graph of \(y=\sin x\) is reflected first in the line \(x= \pi\) and then in the line \(y=2\). The resulting graph has equation

  1. \(y=\cos x\);

  2. \(y=2+\sin x\);

  3. \(y=4+\sin x\);

  4. \(y=2-\cos x\).

Approach 1: Sketching graphs

Here is a sketch of \(y=\sin x\), with \(x=\pi\) shown.

Graph of sine x, and line x=pi

This is what the reflection looks like, with \(y=2\) marked.

Reflection of sine x in the line x=pi

This is what the graph looks like once it has been reflected the second time.

Reflection of previous graph in the line y=2

It passes through \(4\) on the \(y\)-axis and is clearly a vertical translation of \(y=\sin x\), so the answer must be (c).

Another way to look at it…

Suppose we have two reflections whose mirror lines are not parallel.

If we do one followed by the other, this is equivalent to a rotation about the point where the mirror lines meet.

You could pick some reflections and convince yourself of this.

So here our two reflections are equivalent to a rotation through \(180^\circ\) around \((\pi, 2)\), which takes \(y = \sin x\) to \(y = \sin x + 4\). The answer is (c).

Approach 2: Algebraic transformations

If we reflect \(y = f(x)\) in \(x = a\), we get the curve \(y = f(-x+2a)\).

If we reflect \(y = f(x)\) in \(y = a\), we get the curve \(y = -f(x)+2a\).

When reflected in the line \(x=\pi\), the graph of \(y=\sin x\) becomes \[y=\sin(2\pi -x)=\sin(-x)=-\sin x.\]

When reflected in the line \(y=2\), the graph of \(y=-\sin x\) becomes \[y= 4-(-\sin x)=4+\sin x.\]

The answer is (c).