Calculus · real student question

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

Question

Find

xln(x2+y2)\frac{\partial}{\partial x}\ln\left(x^2+y^2\right)

Step-by-step solution

  1. Freeze yy as a constant. That is the whole meaning of a partial derivative with respect to xx: every appearance of yy behaves like a fixed number, so y2y^2 differentiates to 00.

  2. Apply the chain rule for the logarithm. With u=x2+y2u=x^2+y^2 and ddulnu=1u\dfrac{d}{du}\ln u=\dfrac1u:

    xlnu=1uux\frac{\partial}{\partial x}\ln u=\frac{1}{u}\cdot\frac{\partial u}{\partial x}

    Forgetting the inner derivative and writing 1x2+y2\tfrac{1}{x^2+y^2} alone is the standard error here.

  3. Differentiate the inside with respect to xx.

    x(x2+y2)=2x+0=2x\frac{\partial}{\partial x}\left(x^2+y^2\right)=2x+0=2x

  4. Combine the two pieces.

    xln(x2+y2)=2xx2+y2\frac{\partial}{\partial x}\ln\left(x^2+y^2\right)=\frac{2x}{x^2+y^2}

    By the symmetry of the expression, the other partial is y=2yx2+y2\dfrac{\partial}{\partial y}=\dfrac{2y}{x^2+y^2} — simply swap the roles of xx and yy.

  5. Sanity-check the result. At y=0y=0 the function reduces to lnx2=2lnx\ln x^2=2\ln|x|, whose derivative is 2x\tfrac{2}{x}; the formula gives 2xx2=2x  \tfrac{2x}{x^2}=\tfrac2x\;\checkmark. The partial also vanishes all along the yy-axis where x=0x=0, matching the fact that ln(x2+y2)\ln\left(x^2+y^2\right) has a minimum in xx there for any fixed y0y\ne 0. The function is undefined at the origin, so the derivative is too.

Answer

xln(x2+y2)=2xx2+y2\frac{\partial}{\partial x}\ln\left(x^2+y^2\right)=\frac{2x}{x^2+y^2}

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