偏导数计算器


说明: 使用这个偏导数计算器,求您提供的多元函数关于某个特定变量的导数,并显示所有计算步骤。请在下方框中输入您要求导的函数。

输入你想要计算偏导数的函数(例如:f(x, y) = x^2 + y^2, 等等)

输入要对其求导的变量(例如:x 或 y 等)

在仪表板中打开此计算器 →

关于偏导数

该计算器将允许您计算您提供的任何有效可微函数的偏导数,相对于给定的变量。

您提供的函数需要附带函数定义,例如 f(x, y) = x^3 + y^2。如果您写的是像 xy+x^2 这样没有完整定义的内容,则将默认提供的是关于两个变量 x 和 y 的函数。

一旦您提供了有效的可微函数和有效的变量,下一步就是点击"Calculate"按钮以显示该过程的所有步骤,以及所有 使用的导数规则 , 明确陈述的。

导数 , 以及它们自然扩展到多变量的偏导数是数学中最重要的研究课题之一,毫无疑问。这是因为它们处理了许多在应用中频繁出现的模型的变化率和流量。

什么是偏导数?

简而言之,偏导数就是对其中一个变量进行与普通微分相同的操作,同时假设其余变量保持不变。

如果我们正式定义一个偏导数,让我们简化一点,以两个变量 \(x\) 和 \(y\) 的函数为例。关于 \(x\) 在点 \((x_0, y_0)\) 处的偏导数是

\[\frac{\partial f}{\partial x}(x_0, y_0) = \displaystyle \lim_{h \to 0} \frac{f(x_0 + h, y_0) - f(x_0, y_0)}{h} \]

所以,正如我们所见,它与普通导数的定义本质上是相同的,只是多了一个变量,但在计算过程中该变量保持不变。

类似地,关于 \(y\) 的偏导数在点 \((x_0, y_0)\) 处是

\[\frac{\partial f}{\partial y}(x_0, y_0) = \displaystyle \lim_{h \to 0} \frac{f(x_0, y_0 + h) - f(x_0, y_0)}{h} \]

所有偏导数组成的向量称为梯度。如果你需要实际求出所有偏导数,你可以使用这个 梯度计算器 .

计算偏导数的步骤

  • 步骤1: 确定要计算偏导数的函数。确保先对其进行简化。
  • 步骤2: 注意到并非所有函数都是可导的,因此你需要确保所涉及的函数确实是可导的。
  • 步骤3: 对函数使用所有适用的导数规则,并按照通常的方式对可微变量进行求导,将任何其他变量视为常数

这样一来,当我们对诸如 'x^2+y^2' 这样的表达式求关于 x 的偏导数时,在关于 x 的偏微分过程中,变量 y 被视为常数。因此我们会得到

\[\frac{\partial (x^2+y^2)}{\partial x} = \frac{\partial (x^2)}{\partial x} + \frac{\partial (y^2)}{\partial x} = 2x \]

且在这种情况下 \(\frac{\partial (y^2)}{\partial x} = 0\) 因为 y 被假设为相对于 x 是常数

为什么使用偏导数计算器

计算偏导数可能是一个相对简单直接的练习,但这并不意味着它必然轻松。在应用相应法则时,保持高度的系统性至关重要。 导数法则 .

使用带有步骤的偏导数计算器可以帮助你至少检查你的结果,并能够准确看到正确的步骤以及需要使用哪些导数规则。

特别是在复杂问题中,对于代数上复杂的表达式,计算器真的能派上用场

偏导数的求导法则是什么?

它们与常规导数的那些完全相同。对于偏导数,我们有线性性,该 乘积法则 , 这 链式法则 和 商法则 . 通常,你最终会结合使用所有这些规则,来处理更复杂的导数例题

什么是隐函数求导

存在一种涉及多个变量的情形,其中我们不假设,例如,y 随 x 变化(就像我们在偏导数中那样)。在某些情况下,当存在一个连接变量的方程时,我们假设 y 和 x 之间存在隐式关系,并记作 y = y(x)。

这是……的上下文 隐函数求导 , 这有点像偏微分和普通微分之间的混合体

而且有一件事怎么强调都不为过:偏导数确实是工程,物理和经济学中使用的主要工具之一。

偏导数计算器

示例:偏导数计算

计算 \(\frac{\partial f}{\partial y}\) 的偏导数,对于: \(f(x,y) = \sin(xy)\)

解答:

从而完成计算。

示例:偏微分

计算关于 \(x\) 的偏导数: \(f(x, y) = x^2 + y^2\)

解答: 所提供的函数是:\(\displaystyle f(x,y)=x^2+y^2\),我们需要计算其关于变量\(x\)的偏导数。

该函数不需要进一步简化,因此我们可以直接计算其偏导数。:

\( \displaystyle \frac{\partial }{\partial x}\left(x^2+y^2\right)\)
By linearity, we know \(\frac{\partial }{\partial x}\left( x^2+y^2 \right) = \frac{\partial }{\partial x}\left(x^2\right)+\frac{\partial }{\partial x}\left(y^2\right)\), so plugging that in:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial x}\left(x^2\right)+\frac{\partial }{\partial x}\left(y^2\right)\)
The derivative of a constant with respect to \(x\) is 0, so then:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\partial }{\partial x}\left(x^2\right)\)
Using the Power Rule for polynomial terms: \(\frac{\partial }{\partial x}\left( x^2 \right) = 2x\)
\( \displaystyle = \,\,\)
\(\displaystyle 2x\)

示例:另一个偏导数例子

考虑函数 \(f(x, y) = \frac{xy}{x^2+y^2}\),求其偏导数 \(\frac{\partial f}{\partial x}\) 和 \(\frac{\partial f}{\partial y}\)

解答: 在这种情况下,函数为:\(\displaystyle f(x,y)=\frac{xy}{x^2+y^2}\),我们需要计算其偏导数。

该函数已经简化完成,因此我们可以直接进行:

\( \displaystyle \frac{\partial f}{\partial x} = \frac{\partial }{\partial x}\left(\frac{xy}{x^2+y^2}\right)\)
Directly applying Quotient Rule: \(\frac{\partial }{\partial x}\left( \frac{xy}{x^2+y^2} \right) = \frac{\left(x^2+y^2\right) \cdot \frac{\partial }{\partial x}\left(xy\right)-xy\cdot \frac{\partial }{\partial x}\left(x^2+y^2\right)}{\left(x^2+y^2\right)^2}\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x^2+y^2\right) \cdot \frac{\partial }{\partial x}\left(xy\right)-xy\cdot \frac{\partial }{\partial x}\left(x^2+y^2\right)}{\left(x^2+y^2\right)^2}\)
The linearity property indicates that \(\frac{\partial }{\partial x}\left( x^2+y^2 \right) = \frac{\partial }{\partial x}\left(x^2\right)+\frac{\partial }{\partial x}\left(y^2\right)\), so plugging that in:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x^2+y^2\right) \cdot \frac{\partial }{\partial x}\left(xy\right)-xy\left(\frac{\partial }{\partial x}\left(x^2\right)+\frac{\partial }{\partial x}\left(y^2\right)\right)}{\left(x^2+y^2\right)^2}\)
But we know that the derivative of a constant with respect to \(x\) is equal to 0, so then we get that:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x^2+y^2\right) \cdot \frac{\partial }{\partial x}\left(xy\right)-xy\left(\frac{\partial }{\partial x}\left(x^2\right)\right)}{\left(x^2+y^2\right)^2}\)
Applying the Power Rule for polynomial terms: \(\frac{\partial }{\partial x}\left( x^2 \right) = 2x\) and directly we get: \(\frac{\partial }{\partial x}\left( xy \right) = y\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x^2+y^2\right) \cdot y-xy\left(2x\right)}{\left(x^2+y^2\right)^2}\)
and consequently
\( \displaystyle = \,\,\)
\(\displaystyle \frac{y\left(x^2+y^2\right)-xy\cdot 2x}{\left(x^2+y^2\right)^2}\)
We can put the integers together and then we can group the terms with \(x\) in the term \(\left(-1\right)xy\cdot 2x\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{y\left(x^2+y^2\right)+2\cdot \left(-1\right)x^2y}{\left(x^2+y^2\right)^2}\)
Simplifying: \(\displaystyle 2\times(-1) = -2\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{y\left(x^2+y^2\right)-2x^2y}{\left(x^2+y^2\right)^2}\)
Observe the following: \(y \cdot (x^2+y^2) = yx^2+yy^2 = x^2y+y^3\), by using the distributive property on each term of the expression on the left, with respect to the terms on the right
\( \displaystyle = \,\,\)
\(\displaystyle \frac{x^2y+y^3-2x^2y}{\left(x^2+y^2\right)^2}\)
Hence, we find
\( \displaystyle = \,\,\)
\(\displaystyle \frac{-\left(x+y\right)\left(x-y\right)y}{\left(x^2+y^2\right)^2}\)

那么另一方面:

\( \displaystyle \frac{\partial f}{\partial y} = \frac{\partial }{\partial y}\left(\frac{xy}{x^2+y^2}\right)\)
Using the Quotient Rule: \(\frac{\partial }{\partial y}\left( \frac{xy}{x^2+y^2} \right) = \frac{\left(x^2+y^2\right) \cdot \frac{\partial }{\partial y}\left(xy\right)-xy\cdot \frac{\partial }{\partial y}\left(x^2+y^2\right)}{\left(x^2+y^2\right)^2}\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x^2+y^2\right) \cdot \frac{\partial }{\partial y}\left(xy\right)-xy\cdot \frac{\partial }{\partial y}\left(x^2+y^2\right)}{\left(x^2+y^2\right)^2}\)
By linearity, we know \(\frac{\partial }{\partial y}\left( x^2+y^2 \right) = \frac{\partial }{\partial y}\left(x^2\right)+\frac{\partial }{\partial y}\left(y^2\right)\), so plugging that in:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x^2+y^2\right) \cdot \frac{\partial }{\partial y}\left(xy\right)-xy\left(\frac{\partial }{\partial y}\left(x^2\right)+\frac{\partial }{\partial y}\left(y^2\right)\right)}{\left(x^2+y^2\right)^2}\)
Since the derivative of a constant with respect to \(y\) is 0, we find that:
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x^2+y^2\right) \cdot \frac{\partial }{\partial y}\left(xy\right)-xy\left(\frac{\partial }{\partial y}\left(y^2\right)\right)}{\left(x^2+y^2\right)^2}\)
Using the Power Rule for polynomial terms: \(\frac{\partial }{\partial y}\left( y^2 \right) = 2y\) and directly we get: \(\frac{\partial }{\partial y}\left( xy \right) = x\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x^2+y^2\right) \cdot x-xy\left(2y\right)}{\left(x^2+y^2\right)^2}\)
and then we find
\( \displaystyle = \,\,\)
\(\displaystyle \frac{x\left(x^2+y^2\right)-xy\cdot 2y}{\left(x^2+y^2\right)^2}\)
Putting together the numerical values and grouping the terms with \(y\) in the term \(\left(-1\right)xy\cdot 2y\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{x\left(x^2+y^2\right)+2\cdot \left(-1\right)y^2x}{\left(x^2+y^2\right)^2}\)
Reducing integers that can be multiplied: \(\displaystyle 2\times(-1) = -2\)
\( \displaystyle = \,\,\)
\(\displaystyle \frac{x\left(x^2+y^2\right)-2y^2x}{\left(x^2+y^2\right)^2}\)
We find that \((x) \cdot (x^2+y^2) = xx^2+xy^2 = x^3+xy^2\), due to the fact that we can use the distributive property on each term of the expression on the left, with respect to the terms on the right
\( \displaystyle = \,\,\)
\(\displaystyle \frac{x^3+xy^2-2y^2x}{\left(x^2+y^2\right)^2}\)
Reorganizing/simplifying/expanding the expression
\( \displaystyle = \,\,\)
\(\displaystyle \frac{\left(x+y\right)\left(x-y\right)x}{\left(x^2+y^2\right)^2}\)

更多微积分计算器

导数的概念是微积分的核心,以及使用一个 导数计算器 能在许多不同的微积分应用中极大地帮助你,包括优化,这可是其中的'重头戏'。

导数的概念自然地延拓到多元函数的情形,其中一 偏导数计算器 将执行与常规导数相同的操作,但此时假设只有一个变量变化,而其他变量被视为固定。

很多时候,你知道\(y\)依赖于\(x\),但不是显式地而是隐式地,通过一个连接方程,在这种情况下你可以使用 隐函数求导 使用导数法则得到一个表达式,然后可以求解导数 \(\frac{d f}{d x}\)

登录到您的帐户

没有会员帐户?
报名

重设密码

回到
登录

报名

Back to
登录