Reflect again
Follow hints to investigate the matrix which gives a reflection of the plane in the line y=tanx. Show that the combination of two reflections in intersecting lines is a rotation.
Problem
Use the diagram to prove the double angle formula, where $t=\tan \theta$:
Image

The point $P'=(p',q')$ is the image of the point $P=(p,q)$ after reflection in the line $y=mx$. To find $(p',q')$ use the fact that the midpoint of $PP'$ is on the line $y=mx$ and the line segment $PP'$ is perpendicular to the line $y=mx$ and show that
gives a reflection in the line $y=x\tan\theta$. The point $P''=(p'',q'')$ is the image of the point $P'$ after reflection in the line $y=x\tan\phi$. Apply the transformation
Getting Started
The conditions suggested in the question give you two equations which you can solve to find $p'$ and $q'$. Use the same formulation to give $(p'',q'')$.
The problem 'The Matrix' explains how 2 by 2 matrices are used to give transformations of the plane and how you multiply the position vector of a point by the matrix to find the image of that point under the transformation.
Student Solutions
Andrei Lazanu proved the double angle formulae illustrated in the diagram:
The diagram starts from a right angled triangle, of sides $2t$ and 2 and where consequently $\tan\theta = t$. In this triangle, a line making an angle $\theta$ with the hypotenuse is drawn. This way, an isosceles triangle is formed, and $2\theta$ is the angle exterior to this isosceles triangle. Let the sides DA and DB of this isosceles triangle be $x$\ units. Then the length of DC must be $2-x$ units. Using Pythagoras' Theorem for triangle ADC we find $x$.
The formulae for the sine, cosine and tangent of $2\theta$ in terms of $t$, where $t=\tan \theta$, follow directly from the ratios of the sides of the right angled triangle ADC and we get
Rots and Refs provides a proof of the translation formula
.
Finally, to find the combined transformation you have to
multiply the transformation matricies to get (using the double
angle formulae to simplify):
Which is a rotation. If the angles are equal the matrix would
be: