Calculus · real student question

Find the partial derivative of x^2*y + y*sin(x) with respect to x.

Question

Find

x(x2y+ysinx)\frac{\partial}{\partial x}\left(x^2y+y\sin x\right)

Step-by-step solution

  1. Fix what "partial with respect to xx" means. Every occurrence of yy is frozen as if it were a number. So yy behaves like a constant coefficient in both terms, and the product rule is not needed anywhere — a common over-complication here.

  2. Differentiate the first term. With yy constant, x2yx^2y is yy times x2x^2:

    x(x2y)=y2x=2xy\frac{\partial}{\partial x}\left(x^2y\right)=y\cdot 2x=2xy

  3. Differentiate the second term. Again yy is a constant multiplier and ddxsinx=cosx\frac{d}{dx}\sin x=\cos x:

    x(ysinx)=ycosx\frac{\partial}{\partial x}\left(y\sin x\right)=y\cos x

  4. Add the results.

    x(x2y+ysinx)=2xy+ycosx=y(2x+cosx)\frac{\partial}{\partial x}\left(x^2y+y\sin x\right)=2xy+y\cos x=y\left(2x+\cos x\right)

    Factoring out yy makes the structure clear: the whole function is yy times a function of xx alone.

  5. Check with a difference quotient. Take x=1x=1, y=3y=3. The formula predicts 3(2+cos1)=3(2+0.540302)=7.6209073(2+\cos 1)=3(2+0.540302)=7.620907. Numerically, with h=105h=10^{-5},

    f(1.00001,3)f(0.99999,3)2×105=7.620907\frac{f(1.00001,3)-f(0.99999,3)}{2\times 10^{-5}}=7.620907

    agreeing to six decimals. For contrast, /y\partial/\partial y would be x2+sinxx^2+\sin x — a completely different expression, which is why the variable of differentiation must be stated.

Answer

x(x2y+ysinx)=2xy+ycosx=y(2x+cosx)\frac{\partial}{\partial x}\left(x^2y+y\sin x\right)=2xy+y\cos x=y\left(2x+\cos x\right)

Need to solve a different problem like this? Open the solver →