\(\cos^2=\frac{1}{1+tan^2x}=\frac{1}{1+25}\\ \Rightarrow cos=\frac{1}{\sqrt{26}}\left(6\pi< x< \frac{13}{2}\right)\)
\(\Rightarrow sin=\frac{5}{\sqrt{26}}\\ \Rightarrow sin2x=2sinxcosx=2\times\frac{5}{\sqrt{26}}\times\frac{1}{\sqrt{26}}=\frac{5}{13}\)
b) \(cos^2=1-sin^2x=\frac{16}{25}\\ \Rightarrow cos=-\frac{4}{5}\left(-\frac{3\pi}{2}< x< -\pi\right)\\\Rightarrow tanx=-\frac{3}{4} \\ tan\left(x-\frac{\pi}{4}\right)=\frac{tanx-tan\frac{\pi}{4}}{1+tanxtan\frac{\pi}{4}}=-7\)