First of all, observe that tan(−3π4)=tan(π4), since the two angles are π radians apart.
Then, tan−1 is the inverse function of the tangent, which means exactly that tan−1(tan(x))=x, if x is an angle between −π2 and π2, since this is the specified range for the inverse tangent function.