Physics Forums Insights
  • Physics
    • Physics Articles
    • Physics Tutorials
    • Physics Guides
    • Physics FAQs
  • Math
    • Math Articles
    • Math Tutorials
    • Math Guides
    • Math FAQs
  • Bio/Chem/Tech
    • Bio/Chem Articles
    • Computer Science Tutorials
    • Technology Guides
  • Education
    • Education Articles
    • Education Guides
  • Interviews
  • Quizzes
  • Forums
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
calculus

How to Solve Second-Order Partial Derivatives

May 19, 2020/1 Comment/in Mathematics Tutorials/by PeroK
📖Read Time: 6 minutes
📊Readability: Advanced 📐 (Technical knowledge needed)
🔖Core Topics: rulechainderivativesfunctionspartial

Table of Contents

  • Introduction
  • The General Case
  • Example
  • The Inverse Case
  • Some Technical Points
    • More Related Articles

Introduction

A frequent concern among students is how to carry out higher order partial derivatives where a change of variables and the chain rule are involved.  There is often uncertainty about exactly what the “rules” are.  This tutorial aims to clarify how the higher-order partial derivatives are formed in this case.

Note that in general second-order partial derivatives are more complicated than you might expect.  It’s important, therefore, to keep calm and pay attention to the details.

The General Case

Imagine we have a function ##f(u, v)## and we want to compute the partial derivatives with respect to ##x## and ##y## in terms of those with respect to ##u## and ##v##.  Here we assume that ##u, v## may be expressed as functions of ##x, y##.  The first derivative usually cause no problems.  We simply apply the chain rule:

$$\frac{\partial f}{\partial x} = \frac{\partial f}{\partial u}\frac{\partial u}{\partial x} + \frac{\partial f}{\partial v}\frac{\partial v}{\partial x} \ \ \ \text{(Chain Rule)}$$

$$\frac{\partial f}{\partial y} = \frac{\partial f}{\partial u}\frac{\partial u}{\partial y} + \frac{\partial f}{\partial v}\frac{\partial v}{\partial y} \ \ \ \text{(Chain Rule)}$$

A key point is that partial derivatives are regular functions.  The same rules of differentiation apply to them as to the function ##f## itself.  If we look closely at the chain rule here we see that we have something of the form:

$$\frac{\partial f}{\partial x} = g_1(u, v)\frac{\partial u}{\partial x} + g_2(u, v)\frac{\partial v}{\partial x}$$

Where ##g_1(u, v) = \frac{\partial f}{\partial u}, \ g_2(u, v) = \frac{\partial f}{\partial v}## are functions of ##u## and ##v##.

Note also that ##\frac{\partial u}{\partial x}## and ##\frac{\partial v}{\partial x}## are simply functions of ##x## and ##y##.

Writing it like this hopefully gives an insight into what is going to happen when we take the second derivative.   The first step is to apply the product rule:

$$\frac{\partial^2 f}{\partial x^2} = \frac{\partial}{\partial x} \frac{\partial f}{\partial x} =g_1\frac{\partial^2 u}{\partial x^2} +  \frac{\partial g_1}{\partial x}\frac{\partial u}{\partial x} + g_2\frac{\partial^2 v}{\partial x^2} + \frac{\partial g_2}{\partial x} \frac{\partial v}{\partial x}\ \ \ \text{(Product Rule)} \ \ \ (1)$$

For the partial derivatives of ##g_1## and ##g_2## we have the chain rule again:

$$\frac{\partial g_1}{\partial x} = \frac{\partial g_1}{\partial u}\frac{\partial u}{\partial x} + \frac{\partial g_1}{\partial v}\frac{\partial v}{\partial x} \ \ \ \text{(Chain Rule)}$$

And, plugging in ##g_1 = \frac{\partial f}{\partial u}## we see that:

$$\frac{\partial}{\partial x}\frac{\partial f}{\partial u} =\frac{\partial g_1}{\partial x} = \frac{\partial^2 f}{\partial u^2}\frac{\partial u}{\partial x} + \frac{\partial^2 f}{\partial v \partial u}\frac{\partial v}{\partial x} \ \ \ (2)$$

Likewise:

$$\frac{\partial g_2}{\partial x} = \frac{\partial g_2}{\partial u}\frac{\partial u}{\partial x} + \frac{\partial g_2}{\partial v}\frac{\partial v}{\partial x} \ \ \ \text{(Chain Rule)}$$

And:

$$\frac{\partial}{\partial x}\frac{\partial f}{\partial v} =\frac{\partial g_2}{\partial x} = \frac{\partial^2 f}{\partial u \partial v}\frac{\partial u}{\partial x} + \frac{\partial^2 f}{\partial v^2}\frac{\partial v}{\partial x} \ \ \ (3)$$

Combing equations ##(1), (2)## and ##(3)## we have:

$$\frac{\partial^2 f}{\partial x^2} = \frac{\partial f}{\partial u}\frac{\partial^2 u}{\partial x^2} + (\frac{\partial^2 f}{\partial u^2}\frac{\partial u}{\partial x} + \frac{\partial^2 f}{\partial v \partial u}\frac{\partial v}{\partial x})\frac{\partial u}{\partial x} + \frac{\partial f}{\partial v}\frac{\partial^2 v}{\partial x^2} + (\frac{\partial^2 f}{\partial u \partial v}\frac{\partial u}{\partial x} + \frac{\partial^2 f}{\partial v^2}\frac{\partial v}{\partial x})\frac{\partial v}{\partial x} \ \ \ (4)$$

This equation seems to be difficult for the student to derive, and often arises with one or more terms missing!  As we have seen, the key to obtaining all the terms is to treat the partial derivatives (##\frac{\partial f}{\partial u}## and ##\frac{\partial f}{\partial v}##) as functions themselves and to apply the chain rule properly.

We can tidy up equation ##(4)## to get:

$$\frac{\partial^2 f}{\partial x^2} = \frac{\partial f}{\partial u}\frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 f}{\partial u^2}(\frac{\partial u}{\partial x})^2 + 2\frac{\partial^2 f}{\partial u \partial v}\frac{\partial u}{\partial x}\frac{\partial v}{\partial x} + \frac{\partial f}{\partial v}\frac{\partial^2 v}{\partial x^2} + \frac{\partial^2 f}{\partial v^2}(\frac{\partial v}{\partial x})^2 \ \ \ (5)$$

We can see immediately by symmetry that:

$$\frac{\partial^2 f}{\partial y^2} = \frac{\partial f}{\partial u}\frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 f}{\partial u^2}(\frac{\partial u}{\partial y})^2 + 2\frac{\partial^2 f}{\partial u \partial v}\frac{\partial u}{\partial y}\frac{\partial v}{\partial y} + \frac{\partial f}{\partial v}\frac{\partial^2 v}{\partial y^2} + \frac{\partial^2 f}{\partial v^2}(\frac{\partial v}{\partial y})^2 \ \ \ (6)$$

The mixed term I leave as an exercise.  The result is:

$$\frac{\partial^2 f}{\partial x \partial y} = \frac{\partial f}{\partial u}\frac{\partial^2 u}{\partial x \partial y} + \frac{\partial^2 f}{\partial u^2}\frac{\partial u}{\partial x}\frac{\partial u}{\partial y} + \frac{\partial^2 f}{\partial u \partial v}(\frac{\partial u}{\partial x}\frac{\partial v}{\partial y} + \frac{\partial u}{\partial y}\frac{\partial v}{\partial x})  + \frac{\partial f}{\partial v}\frac{\partial^2 v}{\partial x \partial y} + \frac{\partial^2 f}{\partial v^2}\frac{\partial v}{\partial x}\frac{\partial v}{\partial y} \ \ \ (7)$$

Which, as promised, is more complicated than we may have expected.

Example

We now look at the simple but common case:

$$u = ax + by, \ \ v = cx + dy$$

Where ##a, b, c, d## are constants.

We have:

$$\frac{\partial u}{\partial x} = a, \ \ \frac{\partial u}{\partial y} = b, \ \ \frac{\partial v}{\partial x} = c, \ \ \frac{\partial v}{\partial y} = d$$

And the second derivatives of ##u## and ##v## vanish.  Equations ##(5), (6)## and ##(7)## reduce to:

$$\frac{\partial^2 f}{\partial x^2} = a^2 \frac{\partial^2 f}{\partial u^2} + 2ac \frac{\partial^2 f}{\partial u \partial v} + c^2\frac{\partial^2 f}{\partial v^2} \ \ \ (5a)$$

$$\frac{\partial^2 f}{\partial y^2} = b^2 \frac{\partial^2 f}{\partial u^2} + 2bd \frac{\partial^2 f}{\partial u \partial v} + d^2\frac{\partial^2 f}{\partial v^2} \ \ \ (6a)$$

$$\frac{\partial^2 f}{\partial x \partial y} = ab \frac{\partial^2 f}{\partial u^2} + (ad + bc) \frac{\partial^2 f}{\partial u \partial v} + cd\frac{\partial^2 f}{\partial v^2} \ \ \ (7a)$$

The Inverse Case

If we have ##x## and ##y## expressed as functions of ##u## and ##v##, then we can invert the above equations simply by exchanging the roles of ##x, y## and ##u, v##.  By inverting equation ##(5)##, for example, we get:

$$\frac{\partial^2 f}{\partial u^2} = \frac{\partial f}{\partial x}\frac{\partial^2 x}{\partial u^2} + \frac{\partial^2 f}{\partial x^2}(\frac{\partial x}{\partial u})^2 + 2\frac{\partial^2 f}{\partial x \partial y}\frac{\partial x}{\partial u}\frac{\partial y}{\partial u} + \frac{\partial f}{\partial y}\frac{\partial^2 y}{\partial u^2} + \frac{\partial^2 f}{\partial y^2}(\frac{\partial y}{\partial u})^2 \ \ \ (8)$$

Some Technical Points

Here we make a couple of technical observations.  We have assumed above that the function ##f## is sufficiently well-behaved that ##\frac{\partial^2 f}{\partial u \partial v} = \frac{\partial^2 f}{\partial v \partial u}##.  This is generally assumed to be the case for functions arising in applied mathematics and physics.

We blithely used the symbol ##f## as a function of both ##x, y## and ##u, v##.  Technically, if we have ##u = u(x, y)## and ##v = v(x, y)##, then we should actually write something like:

$$F(x, y) = f(u(x, y), v(x, y))$$

And we can see that we are actually differentiating the function ##F## with respect to ##x## and ##y## above, where ##F## is a composition of the functions ##f, u, v##. And, we could have written, for example:

$$\frac{\partial F}{\partial x} = \frac{\partial f}{\partial u}\frac{\partial u}{\partial x} + \frac{\partial f}{\partial v}\frac{\partial v}{\partial x} \ \ \ \text{(Chain Rule)}$$

Again, in general, this distinction is often suppressed.

Comment Thread

PeroK

BSc in pure mathematics (1984).  Retired from a career in Information Technology in 2014.  I divide my time between studying physics when I’m home in London and mountaineering.

Favourite area of physics is Quantum Mechanics.

More Related Articles

  • Some Conceptual Difficulties in the Roles of Variables and Constants
  • Demystifying the Chain Rule in Calculus
  • Learn Partial Differentiation Without Tears
  • The Pantheon of Derivatives – Part V
  • What is Integration By Parts? A 5 Minute Introduction
  • The Pantheon of Derivatives – Part II
Tags: mathematics self-study
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://www.physicsforums.com/insights/wp-content/uploads/2020/05/second-order-derivitive.png 135 240 PeroK https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png PeroK2020-05-19 14:09:302021-01-05 08:59:33How to Solve Second-Order Partial Derivatives
You might also like
highschoolmath College-Level Math Options for High School Students
Groups, The Path from a Simple Concept to Mysterious Results
lerch and zeta functions The Analytic Continuation of the Lerch and the Zeta Functions
selfstudy Why Self-Studying Math Often Fails: 5 Common Pitfalls
whatisatensor Tensors Explained: Scalars, Vectors, Matrices & Math
complex numbers Fixing Things Which Can Go Wrong With Complex Numbers
1 reply
  1. PeroK says:
    May 20, 2020 at 3:19 am

    ”
    How common is it to have to use the inverse case? That is, if we first have a function ##F(x,y) = f(u(x,y), v(x,y))##, is it sometimes useful to restate it in the form ##G(u,v) = g(x(u,v), y(u,v))##?
    ”
    It depends how the change of variables arises. For polar coordinates we generally start from:
    $$x = r\cos \phi, \ \ y = r\sin \phi$$
    Which is the “inverse” case in the tutorial.

    The important point is that, if you have a function of ##r, \phi##, then you must calculate the inverse functions:
    $$r = \sqrt{x^2 + y^2}, \ \ \ \phi = \arctan \frac y x$$

    Log in to Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

You must be logged in to post a comment.

Trending Articles

  • Explosion-Generated Collapsing Vacuum Bubbles Reach 20,000 Kelvin
  • Explore Some Sins in Physics Didactics
  • It’s Elemental! The Periodic Table Quiz
  • Do Black Holes Really Exist?
  • Grab Bag Science Quiz and Trivia

Physics Forums

  • Classical Physics
  • Atomic and Condensed Matter
  • Quantum Physics
  • Special and General Relativity
  • Beyond the Standard Model
  • High Energy, Nuclear, Particle Physics
  • Astronomy and Astrophysics
  • Cosmology
  • Other Physics Topics

Receive Insights Articles to Your Inbox

Enter your email address:

Blog Information

  • Become a Member!
  • Write for Us!
  • Table of Contents
  • Blog Author List

Popular Topics

astronomy (17) black holes (17) classical physics (35) cosmology (16) education (23) electromagnetism (19) general relativity (19) gravity (24) interview (21) mathematics (39) mathematics self-study (21) Physicist (26) programming (18) Quantum Field Theory (31) quantum mechanics (36) quantum physics (24) relativity (40) Special Relativity (16) technology (19) universe (21)
2026 © Physics Forums, ALL RIGHTS RESERVED - Contact Us - Privacy Policy - About PF Insights
  • Link to X
  • Link to Facebook
  • Link to LinkedIn
  • Link to Youtube
Link to: Is Pressure A Source Of Gravity? Link to: Is Pressure A Source Of Gravity? Is Pressure A Source Of Gravity?pressure is a source of gravityLink to: Are Electromagnetic Waves Always Transverse? Full Explanation Link to: Are Electromagnetic Waves Always Transverse? Full Explanation electromagentic waves traverseAre Electromagnetic Waves Always Transverse? Full Explanation
Scroll to top Scroll to top Scroll to top