y = e^[-(cos(1/x))^2 ]
y ' =e^[-(cos(1/x))^2 ] . (-(cos(1/x))^2)'
=e^[-(cos(1/x))^2 ] ( -2cos(1/x) ) (cos(1/x) )'
=e^[-(cos(1/x))^2 ] ( -2cos(1/x) ) (-sin(1/x)) (1/x)'
=e^[-(cos(1/x))^2 ] ( -2cos(1/x) ) (-sin(1/x)) (-1/x^2)
=-2cos(1/x). sin(1/x) e^[-(cos(1/x))^2 ] / x^2