Conservative Vector Fields and Potential Functions | 保守场的势能函数求解

📚 Conservative Vector Fields and Potential Functions | 保守场的势能函数求解

In IB Mathematics, especially in the Higher Level calculus option, you will often meet vector fields and be asked to decide whether a given field is conservative. If it is, you must find its potential function. In this article, we explain the core ideas and give a step-by-step method for solving such problems.

在IB数学,尤其是高等水平(HL)的微积分选修部分,我们经常会遇到向量场,并需要判断给定场是否为保守场。如果是保守场,还必须求出它的势能函数。本文将解释核心概念,并给出求解这类问题的逐步方法。


1. What Is a Conservative Vector Field? | 什么是保守向量场?

A vector field F(x, y) can be written in two dimensions as F = P(x, y) i + Q(x, y) j, where P and Q are scalar functions. We call F conservative if there exists a differentiable scalar function f(x, y) such that F = ∇f. This function f is called a potential function (or scalar potential).

在二维情况下,向量场 F(x, y) 可写作 F = P(x, y) i + Q(x, y) j,其中 P 和 Q 是标量函数。如果存在一个可微的标量函数 f(x, y) 使得 F = ∇f,则称 F 为保守场,这个 f 称为势能函数(或标量势)。

Equivalently, for a three-dimensional field F = P i + Q j + R k, we require a scalar function f(x, y, z) such that ∂f/∂x = P, ∂f/∂y = Q, and ∂f/∂z = R.

等价地,对于三维场 F = P i + Q j + R k,我们要求存在标量函数 f(x, y, z) 使得 ∂f/∂x = P,∂f/∂y = Q,∂f/∂z = R。

F = ∇f ⟺ F is conservative; f is the potential function.

F = ∇f ⟺ F 是保守场;f 是势能函数。


2. The Condition for Conservativeness | 保守场的判定条件

For a smooth vector field defined on a simply connected domain, F is conservative if and only if its curl is zero: ∇ × F = 0. In two dimensions, this condition reduces to comparing partial derivatives.

对于定义在单连通区域上的光滑向量场,F 是保守场当且仅当其旋度为零:∇ × F = 0。在二维情形,该条件简化为比较偏导数。

For F = P(x, y) i + Q(x, y) j, the condition is:

对于 F = P(x, y) i + Q(x, y) j,条件为:

∂P/∂y = ∂Q/∂x

∂P/∂y = ∂Q/∂x

In three dimensions, the curl components must all vanish:

在三维情形,旋度的所有分量必须为零:

∇ × F = (∂R/∂y − ∂Q/∂z, ∂P/∂z − ∂R/∂x, ∂Q/∂x − ∂P/∂y) = (0, 0, 0)

∇ × F = (∂R/∂y − ∂Q/∂z, ∂P/∂z − ∂R/∂x, ∂Q/∂x − ∂P/∂y) = (0, 0, 0)

If this condition fails, no potential function exists, and the field is not conservative.

如果该条件不成立,则不存在势能函数,该场不是保守场。


3. Path Independence | 路径无关性

A conservative field has a fundamental property: the line integral of F between two points A and B is independent of the path taken. It depends only on the endpoints.

保守场有一个基本性质:向量场 F 在两点 A 和 B 之间的线积分与路径无关,只取决于起点和终点。

If f is a potential function, then the fundamental theorem for line integrals says:

如果 f 是势能函数,那么线积分的基本定理表明:

∫_A^B F · dr = f(B) − f(A)

∫_A^B F · dr = f(B) − f(A)

In particular, the integral around any closed loop is zero:

特别地,沿任何闭合回路的积分等于零:

∮ F · dr = 0

∮ F · dr = 0

This property is often used to evaluate complicated line integrals by simply computing the potential at the endpoints.

这一性质常用于简化线积分的计算:只需计算出端点处的势能函数值。


4. Method 1: Finding f by Component-wise Integration | 方法一:逐项积分求出 f

This is the most direct method. Suppose F = P i + Q j and we know ∂f/∂x = P and ∂f/∂y = Q. We first integrate P with respect to x, treating y as a constant.

这是最直接的方法。假设 F = P i + Q j,且已知 ∂f/∂x = P,∂f/∂y = Q。首先将 y 视为常数,对 P 关于 x 积分。

Write:

写出:

f(x, y) = ∫ P dx + g(y)

f(x, y) = ∫ P dx + g(y)

Here g(y) is an arbitrary function of y only, because differentiating with respect to x makes it vanish. Next differentiate this expression with respect to y and set it equal to Q:

这里 g(y) 只是 y 的任意函数,因为对 x 求导时它会消失。接下来对这个表达式关于 y 求导,并令其等于 Q:

∂f/∂y = ∂/∂y (∫ P dx) + g'(y) = Q

∂f/∂y = ∂/∂y (∫ P dx) + g'(y) = Q

Solve for g'(y), then integrate to find g(y). Add a constant C if desired.

解出 g'(y),然后积分得到 g(y)。如有需要可加上常数 C。

For a three-dimensional field, after integrating P with respect to x, you get f = ∫P dx + h(y, z), and then use the ∂f/∂y and ∂f/∂z equations to find h(y, z).

对于三维场,先对 P 关于 x 积分,得到 f = ∫P dx + h(y, z),然后利用 ∂f/∂y 和 ∂f/∂z 的方程来确定 h(y, z)。


5. Method 2: Finding f by a Line Integral | 方法二:通过线积分求出 f

Another way to find the potential is to compute the line integral from a reference point (x₀, y₀) to (x, y). Because the integral is path-independent, we can choose a convenient path, usually made of horizontal and vertical segments.

另一种求势能函数的方法是计算从参考点 (x₀, y₀) 到 (x, y) 的线积分。由于积分与路径无关,我们可以选择方便的路径,通常由水平和垂直线段组成。

Choose the path from (x₀, y₀) to (x, y₀) and then to (x, y). The first segment has dy = 0, and the second has dx = 0:

选择从 (x₀, y₀) 到 (x, y₀) 再到 (x, y) 的路径。第一段满足 dy = 0,第二段满足 dx = 0:

f(x, y) = ∫_{x₀}^{x} P(t, y₀) dt + ∫_{y₀}^{y} Q(x, t) dt + C

f(x, y) = ∫_{x₀}^{x} P(t, y₀) dt + ∫_{y₀}^{y} Q(x, t) dt + C

This method is useful when direct integration is messy, but the resulting integrals are not always simple either. In IB problems, method 1 is usually preferred.

这种方法在直接积分比较麻烦时有用,但所得的积分有时也不简单。在IB题目中,通常更推荐方法一。


6. Worked Example 1: Polynomial Field | 例题一:多项式场

Let F = (2xy + 3) i + (x² − 2y) j. First check whether it is conservative. Here P = 2xy + 3 and Q = x² − 2y.

F = (2xy + 3) i + (x² − 2y) j。首先判断它是否为保守场。这里 P = 2xy + 3,Q = x² − 2y。

Compute ∂P/∂y = 2x and ∂Q/∂x = 2x. They are equal, so the field is conservative.

计算 ∂P/∂y = 2x,∂Q/∂x = 2x。两者相等,因此该场是保守场。

Now integrate P with respect to x:

现在对 P 关于 x 积分:

f = ∫ (2xy + 3) dx = x²y + 3x + g(y)

f = ∫ (2xy + 3) dx = x²y + 3x + g(y)

Differentiate with respect to y:

关于 y 求导:

∂f/∂y = x² + g'(y) = x² − 2y

∂f/∂y = x² + g'(y) = x² − 2y

Thus g'(y) = −2y, so g(y) = −y² + C. Therefore:

于是 g'(y) = −2y,所以 g(y) = −y² + C。因此:

f(x, y) = x²y + 3x − y² + C

f(x, y) = x²y + 3x − y² + C

You can verify: ∇f = (2xy + 3, x² − 2y), exactly the original field.

可以验证:∇f = (2xy + 3, x² − 2y),正好是原向量场。


7. Worked Example 2: Trigonometric Field | 例题二:含三角函数的场

Consider F = (eˣ sin y) i + (eˣ cos y + 1) j. Check conservative: ∂P/∂y = eˣ cos y, ∂Q/∂x = eˣ cos y. They match.

考虑 F = (eˣ sin y) i + (eˣ cos y + 1) j。检查保守性:∂P/∂y = eˣ cos y,∂Q/∂x = eˣ cos y。它们相等。

Integrate P with respect to x:

对 P 关于 x 积分:

f = ∫ eˣ sin y dx = eˣ sin y + g(y)

f = ∫ eˣ sin y dx = eˣ sin y + g(y)

Differentiate with respect to y:

关于 y 求导:

∂f/∂y = eˣ cos y + g'(y) = eˣ cos y + 1

∂f/∂y = eˣ cos y + g'(y) = eˣ cos y + 1

Hence g'(y) = 1, so g(y) = y + C. The potential is:

因此 g'(y) = 1,所以 g(y) = y + C。势能函数为:

f(x, y) = eˣ sin y + y + C

f(x, y) = eˣ sin y + y + C

Notice that the constant C is often omitted because it does not affect the gradient.

注意常数 C 通常可以省略,因为它不影响梯度。


8. Three-Dimensional Conservative Fields | 三维保守场

For a vector field in three dimensions, the same idea applies: find f such that ∂f/∂x = P, ∂f/∂y = Q, ∂f/∂z = R. Start by integrating P with respect to x, adding a function h(y, z).

对于三维向量场,思想相同:求 f 使得 ∂f/∂x = P,∂f/∂y = Q,∂f/∂z = R。先对 P 关于 x 积分,加上一个函数 h(y, z)。

Example: F = (y + z) i + (x + z) j + (x + y) k. First check curl: ∂R/∂y = 1, ∂Q/∂z = 1; ∂P/∂z = 1, ∂R/∂x = 1; ∂Q/∂x = 1, ∂P/∂y = 1. All match, so it is conservative.

例如:F = (y + z) i + (x + z) j + (x + y) k。先检查旋度:∂R/∂y = 1,∂Q/∂z = 1;∂P/∂z = 1,∂R/∂x = 1;∂Q/∂x = 1,∂P/∂y = 1。全部相等,因此是保守场。

Integrate P with respect to x:

对 P 关于 x 积分:

f = ∫ (y + z) dx = xy + xz + h(y, z)

f = ∫ (y + z) dx = xy + xz + h(y, z)

Now ∂f/∂y = x + ∂h/∂y = x + z, so ∂h/∂y = z. Integrate with respect to y:

现在 ∂f/∂y = x + ∂h/∂y = x + z,所以 ∂h/∂y = z。关于 y 积分:

h(y, z) = yz + k(z)

h(y, z) = yz + k(z)

Finally ∂f/∂z = x + y + k'(z) = x + y, so k'(z) = 0 and k(z) = C. Hence:

最后 ∂f/∂z = x + y + k'(z) = x + y,所以 k'(z) = 0,k(z) = C。因此:

f(x, y, z) = xy + xz + yz + C

f(x, y, z) = xy + xz + yz + C


9. Common Mistakes and Pitfalls | 常见错误与陷阱

  • Forgetting the integration constant function: In 2D, the constant of integration is a function of y, not just a number. If you write a number, you will not be able to satisfy both equations.

    忘记积分常数函数:在二维中,积分常数是 y 的函数,而不仅仅是一个数。如果写成数字,则无法同时满足两个方程。

  • Checking the wrong derivative: The condition is ∂P/∂y = ∂Q/∂x, not ∂P/∂x = ∂Q/∂y. Be careful about the order of the variables.

    检查了错误的偏导数:条件是 ∂P/∂y = ∂Q/∂x,而不是 ∂P/∂x = ∂Q/∂y。注意变量的顺序。

  • Domain issues: If the vector field is not defined on a simply connected region (for example, it has a singularity at the origin), even curl = 0 may not guarantee conservativeness. In IB, most fields are given on the whole plane or a simple region, but always read the question carefully.

    定义域问题:如果向量场不是定义在单连通区域上(例如在原点有奇点),即使旋度为零也可能不保证是保守场。在IB中,大多数场定义在整个平面或简单区域,但务必仔细阅读题目。

  • Sign errors: When computing curl in 3D, watch the minus signs: ∂P/∂z − ∂R/∂x is the y-component, not ∂R/∂x − ∂P/∂z.

    符号错误:计算三维旋度时,注意负号:y 分量是 ∂P/∂z − ∂R/∂x,而不是 ∂R/∂x − ∂P/∂z。


10. Typical IB Exam Questions | 典型IB考题

In IB exams, you might be asked to:

在IB考试中,你可能会被要求:

  • Determine whether a given vector field is conservative by using the curl test.

    利用旋度检验判断给定向量场是否为保守场。

  • Find the potential function f for a conservative field F.

    求保守场 F 的势能函数 f。

  • Use the potential function to evaluate a line integral between two points.

    利用势能函数计算两点间的线积分。

  • Show that a line integral is path-independent and find its value.

    证明线积分与路径无关并求出其值。

A typical question: Given F = (y cos x + sin y) i + (sin x + x cos y) j, show that F is conservative and find f such that ∇f = F. Then evaluate ∫_A^B F·dr from A(0,0) to B(π, π).

一个典型问题:给定 F = (y cos x + sin y) i + (sin x + x cos y) j,证明 F 是保守场并求 f 使 ∇f = F。然后计算从 A(0,0) 到 B(π, π) 的线积分 ∫_A^B F·dr。

Solution: ∂P/∂y = cos x + cos y, ∂Q/∂x = cos x + cos y, so conservative. Integrate P with respect to x: f = y sin x + x sin y + g(y). Then ∂f/∂y = sin x + x cos y + g'(y) = sin x + x cos y, so g'(y)=0. Hence f = y sin x + x sin y. The integral equals f(B) − f(A) = π sin π + π sin π − 0 = 0.

解:∂P/∂y = cos x + cos y,∂Q/∂x = cos x + cos y,因此是保守场。对 P 关于 x 积分:f = y sin x + x sin y + g(y)。然后 ∂f/∂y = sin x + x cos y + g'(y) = sin x + x cos y,所以 g'(y)=0。因此 f = y sin x + x sin y。积分等于 f(B) − f(A) = π sin π + π sin π − 0 = 0。


11. Summary and Final Tips | 总结与建议

A conservative vector field has a scalar potential, and its line integrals are path-independent. To find the potential, check the curl condition first, then integrate each component and identify the “constant” functions carefully.

保守向量场具有标量势,其线积分与路径无关。要求势能函数,先检查旋度条件,然后对各分量积分,并仔细确定“常数”函数。

Always verify your answer by computing ∇f and comparing it to the original field. This simple check will catch most mistakes.

始终通过计算 ∇f 并与原场比较来验证答案。这个简单检查能发现大多数错误。

Practice with polynomial, exponential, and trigonometric fields to become confident with the integration technique. In the IB exam, marks are often awarded for the curl test and the setup of the integrals, so show all your steps clearly.

多练习多项式、指数和三角函数的场,以熟练掌握积分技巧。在IB考试中,旋度检验和积分式的建立常常是得分点,因此务必清晰展示所有步骤。


Published by TutorHao | IB Mathematics Revision Series | aleveler.com

更多咨询请联系16621398022(同微信)

Comments

屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from aleveler.com

Subscribe now to keep reading and get access to the full archive.

Continue reading