Section 16.7 Finding Potential Functions
We describe here a variation of the usual procedure for determining whether a vector field is conservative and, if it is, for finding a potential function.
It is helpful to make a diagram of the structure underlying potential functions and conservative vector fields. For functions of two variables, this is shown in the first diagram in Figure 16.7.1. The potential function \(f\) is shown at the top. Slanted lines represent derivatives of \(f\text{;}\) derivatives with respect to \(x\) go to the left, while derivatives with respect to \(y\) go to the right. The second line thus gives the components of \(\grad f\text{.}\) The bottom line shows the mixed second derivatives, which can of course be computed in either order.
But what if we are not given \(f\text{?}\) Suppose we are given a vector field, such as
and need to determine whether it is conservative, that is, whether \(\FF\) is the gradient of some potential function \(f\text{.}\) This is the second line of the diagram! We could start by checking that the mixed derivatives agree. However, what we really want is the potential function; we should be moving up the diagram, not down. What happens if we simply integrate both components, as shown in the first diagram in Figure 16.7.2? The potential function is clearly contained in the results of these two integrals; it is just a question of combining them correctly.
Furthermore, there is enough information here to determine whether \(\FF\) is conservative in the first place; there is no need to check the derivatives. For example, had we been given the vector field
and integrated its components, we would obtain the second diagram in Figure 16.7.2. Simply by noticing that \(xy\text{,}\) a function of two variables, only occurs once, we see that \(\HHv\) is not conservative.
We describe this situation as a murder mystery. A crime has been committed by the unknown murderer \(f\text{;}\) your job is to find the identity of \(f\) by interviewing the witnesses. Who are the witnesses? The components of the vector field. What do they tell you? Well, you have to integrate (“interrogate”) them! Now for the fun part.
If two witnesses say they saw someone with red hair, that doesn't mean the suspect has two red hairs! So if you get the same clue more than once, you only count it once.
On the other hand, some clues require corroboration. These witnesses were situated in such a way that each could only look in one direction. Thus, one witness, the \(x\)-component, only sees terms involving \(x\text{,}\) etc. If a clue contains more than one variable, it should have been seen by more than one witness! In fact, functions of \(n\) variables should occur precisely \(n\) times. In the case of the vector field \(\HHv\text{,}\) the clue \(xy\) was only seen by one witness, not both; somebody is lying! In short, clues must be consistent.
Here is the Murder Mystery Method in a nutshell:
Integrate: Integrate the \(x\)-component with respect to \(x\text{,}\) etc.
Check consistency: Functions of \(n\) variables must occur exactly \(n\) times. 1 (If the consistency check fails, the vector field is not conservative.)
Combine clues: Use each clue once to determine the potential function.
The power of the murder mystery method is even more apparent in three dimensions. We encourage you to try to find a potential function for the vector field \(\GG\) defined by
using this method. The underlying structure is shown in the second diagram in Figure 16.7.1, where now \(y\) derivatives are shown going straight down, and \(z\) derivatives go to the right.
Consistency is traditionally checked by computing the last line of the appropriate diagram in Figure 16.7.1. We reiterate that this is not necessary with the Murder Mystery Method. We will however return to these diagrams later, when discussing the curl of a vector field.