Ctg(3x/2 +5π/4)*(1 -sin(3x -π)) =ctg(3π/2-(π/4-3x/2 ))*(1+sin(π-3x)) =
(tg(π/4-3x/2)) *(1+sin3x) =(tqπ/4- tq3x/2)/(1+(tqπ/4)* (tq3x/2))*(1+sin3x)=
=(1- tq3x/2)/(1+tq3x/2)* (1+sin3x)=
(cos3x/2- sin3x/2)/(cos3x/2 + sin3x/2)* (cos3x/2+sin3x/2)²=
(cos3x/2- sin3x/2)*(cos3x/2+sin3x/2) =cos²3x/2- sin²3x/2=cos3x.