I've managed to prove that
$$\tan(z)=\tan(x+iy)=\frac{\sin 2x}{\cos 2x+\cosh 2y}+i\,\frac{\sinh 2y}{\cos 2x+\cosh 2y}$$
Now, I've also been able to use this identity to show that the vertical line $x=\pi/4$ gets mapped onto a portion of a circle.
However, I am wondering if there is a way to use the tangent identity above to show that if $x=a$ is a vertical line, where $-\pi/4<a<\pi/4$, then $\tan(z)$ maps this line onto a portion of a circle.
Update Thanks to Maxim's comment below, solving the first of the two equations below
$$u=\frac{\sin 2a}{\cos 2a+\cosh 2y}\qquad\text{and}\qquad v=\frac{\sinh 2y}{\cos 2a+\cosh 2y}$$
gave:
$$\cosh 2y=\frac{\sin 2a-u\cos 2a}{u}$$
Substituting this into the second equation and solving, gave:
$$\sinh 2y=\frac{v\sin 2a}{u}$$
Substituting each of these into $\cosh^22y-\sinh^22y=1$ and expanding and manipulating and completing the square led to the result
$$\left(u+\frac{\cos 2a}{\sin 2a}\right)^2+v^2=1+\frac{\cos^22a}{\sin^22a}$$
Substituting $a=\pi/8$ gives the equation $(u+1)^2+v^2=2$. Here is the Matlab code and image, which shows that his suggestion worked.
figure('Units','Normalized','Position',[0.1,0.1,0.8,0.5])
y=linspace(-5,5); x=pi/8*ones(size(y));
subplot(1,2,1), plot(x,y,'LineWidth',2,'Color','r'), hold on
grid on, axis([-3,3,-3,3]), xticks(-3*pi/4:pi/4:3*pi/4)
xticklabels({'-3\pi/4','-\pi/2','-\pi/4','0','pi/4','\pi/2','3\pi/4'})
xlabel('x'),ylabel('y'), ax=gca; ax.FontSize=14;
ax=gca; ax.XAxisLocation='origin'; ax.YAxisLocation='origin';
f=@(z) tan(z);
z=complex(x,y); w=f(z);
subplot(1,2,2)
plot(w,'LineWidth',2,'Color','b'), hold on
g=@(u,v) (u+1).^2+v.^2-2;
fimplicit(g)
grid on, axis([-3,3,-3,3]),
xlabel('u'),ylabel('v'), ax=gca; ax.FontSize=14;
ax.XAxisLocation='origin'; ax.YAxisLocation='origin';
Note that the blue part in the graph on the right is image of the vertical line under the transformation $f(z)=\tan(z)$. It is only a portion of the full circle, but exactly what I wanted.
