differentiate 3^(x^2)