To answer this question we observe that y is the product of x^2 and sin(x), so we use the product rule. Then dy/dx = 2x * sin(x) + cos(x) * x^2 The resulting equation can be tidied up by factoring out x and dividing through by cos(x) to obtain a term involving tan(x).