1. The vertices of the square are: - At the origin: (0,0), - Along the side making an angle \(\alpha\):
\((a \cos \alpha, a \sin \alpha),\)
- Opposite vertex: \((a(\cos \alpha - \sin \alpha), a(\sin \alpha + \cos \alpha)),\)
- The fourth vertex: \((a(-\sin \alpha), a(\cos \alpha)).\)
2. The diagonals of the square intersect at their midpoints. The equation of a diagonal passing through (0,0) and \((a(\cos \alpha - \sin \alpha), a(\sin \alpha + \cos \alpha))\) can be derived as:
\[y(\sin \alpha + \cos \alpha) + x(\cos \alpha - \sin \alpha) = a.\]
3. Similarly, the second diagonal has the same form but shifted by symmetry.
Thus, the equation of the diagonals is:
\[y(\sin \alpha + \cos \alpha) + x(\cos \alpha - \sin \alpha) = a.\]