Multivariable calculus

Partial Derivatives of ln(1 + x^2 + y^4)

The partials of ln(1 + x^2 + y^4) are f_x = 2x/(1 + x^2 + y^4) and f_y = 4y^3/(1 + x^2 + y^4). The derivative of ln(u) is 1/u times the partial of u, so the inner sum becomes the shared denominator and its partial, 2x or 4y^3, becomes the numerator.

f(x,y)=ln(1+x2+y4)f(x,y) = \ln(1 + x^2 + y^4)
fx=2x1+x2+y4\frac{\partial f}{\partial x} = \frac{2x}{1 + x^2 + y^4}
fy=4y31+x2+y4\frac{\partial f}{\partial y} = \frac{4y^3}{1 + x^2 + y^4}

Inner function down, its partial up

With u=1+x2+y4u = 1 + x^2 + y^4, the outer derivative is 1u\frac{1}{u}. The chain rule then multiplies by ux=2x\frac{\partial u}{\partial x} = 2x or uy=4y3\frac{\partial u}{\partial y} = 4y^3, so the inner function becomes the denominator and whichever inner partial you need becomes the numerator.

fx=11+x2+y42x=2x1+x2+y4\frac{\partial f}{\partial x} = \frac{1}{1 + x^2 + y^4}\cdot 2x = \frac{2x}{1 + x^2 + y^4}
fy=11+x2+y44y3=4y31+x2+y4\frac{\partial f}{\partial y} = \frac{1}{1 + x^2 + y^4}\cdot 4y^3 = \frac{4y^3}{1 + x^2 + y^4}

The +1+1 earns its place. It holds u1u \ge 1, so the logarithm is defined for every real pair (x,y)(x,y) and the denominator never vanishes. Drop it and the function falls to minus infinity at the origin.

The two numerators are not parallel

The xx term is squared and the yy term is a fourth power, so the numerators look nothing alike. Copying the shape of the first into the second, writing 2y2y where 4y34y^3 belongs, is the error this function exists to expose. At (1,2)(1,2) the denominator is 1818, so the true fyf_y is 32181.778\frac{32}{18} \approx 1.778 while the copied version gives 4180.222\frac{4}{18} \approx 0.222, out by a factor of 88, which is 2y22y^2.

The second slip is losing the numerator entirely and writing 11+x2+y4\frac{1}{1 + x^2 + y^4}. That is fu\frac{\partial f}{\partial u}, not fx\frac{\partial f}{\partial x}, and a sign test ends the argument: the true xx partial is negative for x<0x < 0, while 1u\frac{1}{u} is positive everywhere.

The third is splitting the logarithm. ln(1+x2+y4)\ln(1 + x^2 + y^4) is not ln1+lnx2+lny4\ln 1 + \ln x^2 + \ln y^4. A logarithm turns a product into a sum, and there is no rule at all for a sum sitting inside it. The split version is also undefined whenever x=0x = 0.

Much flatter along y than along x

Near the origin ff behaves like x2+y4x^2 + y^4, and a fourth power is far flatter than a square. The partials put a number on it: at (0.1,0)(0.1,\,0) the xx partial is about 0.1980.198, while at (0,0.1)(0,\,0.1) the yy partial is about 0.0040.004, roughly fifty times smaller.

Both partials vanish only at the origin, since 2x=02x = 0 forces x=0x = 0 and 4y3=04y^3 = 0 forces y=0y = 0. That single critical point is the global minimum, with f=ln1=0f = \ln 1 = 0, because uu is smallest there and the logarithm is increasing.

Further out the picture reverses. Along the yy axis the partial 4y31+y4\frac{4y^3}{1 + y^4} grows to a peak and then decays like 4y\frac{4}{y}, so the fourth power that made the surface flat near the origin is the same thing that makes it steep once y|y| passes 11.

Frequently asked questions

Why do both partials share a denominator?

Both come from the same outer function 1u\frac{1}{u} applied to one shared inner expression, so that factor is common to them. The variables separate only in the inner partials, ux=2x\frac{\partial u}{\partial x} = 2x and uy=4y3\frac{\partial u}{\partial y} = 4y^3.

Does the fourth power need a second chain rule step?

No. y4y^4 is a plain power of the variable itself, so the power rule finishes it in one step. You would chain a second time only if the inner function were itself a composition, as in ln(1+x2+sin(y)4)\ln(1 + x^2 + \sin(y)^4).