Multivariable calculus
Partial Derivatives of ln(x^2 + y^2 + 1)
For f(x, y) = ln(x^2 + y^2 + 1), the partial with respect to x is 2x/(x^2 + y^2 + 1) and the partial with respect to y is 2y/(x^2 + y^2 + 1). Each is the inside derivative over the inside, and the plus 1 keeps the argument positive, so both hold on the whole plane.
Use the inside derivative over the inside
For a logarithm of anything, . Here . Holding fixed makes both and constants, so .
At the inside is , so the partials are and . The denominator is shared, which makes the ratio of the two slopes just the ratio .
The mistake: splitting the logarithm of a sum
- is not . Logarithms split across products and quotients, never across sums, so there is no shortcut past the chain rule here.
- Writing forgets the inside derivative . That version would be nonzero on the whole -axis, where the true slope in is .
- Writing differentiates the frozen variable as well.
Test any candidate at the origin. The surface has its lowest point there, , so both partials must be . The correct formulas give ; the version missing the inside derivative gives .
Domain and the radial picture
The argument is at least , so it is never zero or negative and no domain restriction is needed. This is why courses use the plus 1 version: has partials of the same shape, and , but both of those blow up at the origin, and is undefined on half the plane.
The gradient is a positive multiple of the position vector, so steepest ascent is straight away from the origin and the level curves are circles. The gradient length is , which is largest on the unit circle , where it equals exactly .
Frequently asked questions
Can I split ln(x^2 + y^2 + 1) into separate logarithms first?
No. The logarithm of a sum does not split; only products and quotients do. Differentiate it as ln(u) with u = x^2 + y^2 + 1 and use the inside derivative over the inside.
Does this formula need a domain restriction?
No. The argument x^2 + y^2 + 1 is at least 1 for every point, so the function and both partials are defined everywhere in the plane, with no excluded points.