Problem:
Consider a regular $2n$-gon in the Euclidean plane $\Bbb R^2$ centered at the origin $(0, 0)$ and with its $2n$ vertices equally distributed on the unit circle. Label the vertices from $1$ to $2n$ in the counter-clockwise direction, the vertex at $(1, 0)$ being labelled $1$ and the one at $(−1, 0)$ being labelled $n + 1$. Let $j(i)$ denote the reflection with respect to the line which passes through vertices $i,\ i + n$ and the center $(0, 0)$ of the $2n$-gon. Find a formula for the matrix of $j(i)$ which represents the linear isometry $j(i)$ with respect to the standard basis of $\Bbb R^2$.
So for a regular hexagon and the reflection along the line passing through the 2nd vertex, I need to desribe the matrix that will map the column vector $(1,0)$ to the third vertex which would be at $\left(\cos \frac{\pi}{6} , \sin \frac{\pi}{6} \right)$ so the first column of my matrix would be that, but I don't know how to get the second part of the basis, $(0,1)$. And then making it in the general case.

Note that we can write any such reflection as the matrix product:
$R^kS$, where:
$R^k = \begin{bmatrix}\cos(\frac{\pi k}{n})&-\sin(\frac{\pi k}{n})\\ \sin(\frac{\pi k}{n})&\cos(\frac{\pi k}{n})\end{bmatrix}$, $k = 0,1,\dots,2n-1$;
and
$S = \begin{bmatrix}1&0\\0&-1\end{bmatrix}$.
It should not be hard for you to prove that:
$R^{2k}S$ fixes the $k$-th vertex and the $k+n$-th vertex, and is thus the reflection we seek.