So I was yet again searching throughout the homepage of Youtube to see if there were any math equations that I thought that I might be able to solve when I came across this video by SyberMath that asked the question:
$$\text{Solve: }~~~(\tan x)^{\sin x}=(\cot x)^{\cos x}$$
Which I thought that I might be able to solve. Here is my attempt at solving it:
$$(\tan x)^{\sin x}=(\cot x)^{\cos x}$$
$$\sin(x)\ln(\tan x)=\cos(x)\ln(\cot x)$$
$$\tan(x)\ln(\tan x)=\ln(\cot x)~~~~~~~\text{ (since }\frac{\sin(x)}{\cos(x)}=\tan(x)\text{)}$$
$$\text{Therefore, we need to find where }(\tan x)^{\tan x}\text{ is equal to }\cot(x)$$
$$\text{And solving for }x\text{ will get us that }x=\frac{\pi}{4}+\pi n,n\in\mathbb{Z}\text{, (}\mathbb{Z}\text{ being the set of integers)}$$
And, plugging this into Desmos we see that we are correct!
$$\mathbf{\text{My question}}$$
Is my solution correct, or is there anything that I could do to attain the correct solution more easily?

$(\tan x)^{\sin x}=(\cot x)^{\cos x}$ and $\cot x=\frac{1}{\tan x}$, we get
$$(\tan x)^{\sin x}=(\tan x)^{-\cos x}\Rightarrow (\tan x)^{\sin x+\cos x}=1$$
Case.(1) $$\tan x=1\Rightarrow x=\frac{\pi}4+n\pi, ~~n\in \mathbb{Z}$$
Case.(2)$$\sin x+\cos x=0\Rightarrow \sin\left(x+\frac{\pi}4\right)=0\Rightarrow x=-\frac{\pi}4+n\pi, ~~n\in \mathbb{Z}$$
The solution is:
$$ x=\pm\frac{\pi}4+n\pi, ~~n\in \mathbb{Z}$$