如果你已经熟悉微积分/微分,可以跳过本节和“微分技术”节。
在微积分中,微分是对实数函数进行的一种非常重要的运算。要微分一个函数 f(x),我们只需计算极限

其中
表示让h 趋近于 0。但是,现在我们可以简单地将其视为将h 设为 0,即在适当的时候让h = 0。微分的运算结果(称为导数)有各种不同的表示方法,例如

和

意思相同。我们说,f'(x) 是 f(x) 的导数。微分在很多方面都很有用,但我们不讨论为什么要发明微积分,而是讨论如何将微积分应用于生成函数的研究。
应该清楚的是,如果
那么
以上定律很重要。如果 g(x) 是 f(x) 的闭合形式,那么对等式两边进行微分以获得新的生成函数是有效的。
同样,如果
那么

可以通过查看极限的性质来验证这一点。
从第一原理微分 f(x),其中

首先,我们形成差商

此时我们不能将h设置为0来计算极限。你能看到为什么吗?我们需要先展开二次方程。


现在我们可以将h分解得到

从这里我们可以安全地让h趋向于零来得到导数,2x。因此

或者等效地

从基本原理开始,对 p(x) = xn 求导。
我们从差商开始

根据二项式定理,我们有

第一个xn 与最后一个抵消,得到

现在,我们将常数1/h 放入括号中

结果就出来了

重要结果
如果

那么

正如您所见,从第一原理微分涉及通过代数操作计算函数的导数,因此本节在代数上非常困难。
假设如果

那么

微分 
解答 令 

证明如果


解答

从第一原理微分

解答

1. 求导数

2. 求导数

3. 用第一性原理求导数

4. 求导数

5. 证明上例3中假设的结果,即如果
- f(x)=g(x)+h(x)
那么
- f′(x)=g′(x)+h′(x).
提示:使用极限.
本节的目的是推导出一个重要结果,即推导出

的导数,其中n ≥ 1 且n为整数。我们将展示多种方法来得到结果。
让我们继续

使用二项式展开式展开等式右侧

对等式两边求导数

现在我们使用 

并且有一些抵消

取出一个公因子 -n,并且回想 1! = 0! = 1,我们得到

令 j = i - 1,我们得到

但这只是 (1 - z)n-1 的展开式

类似于推导 1,我们改为使用导数的定义

使用二项式定理展开

分解因子

将极限符号移入 (回想一下 [Af(x)]' = Af'(x) )

内部表达式正好是 zi 的导数

正如推导 1,我们得到

例子 求 (1 - z)2 的导数
解法 1
- f(z) = (1 - z)2 = 1 - 2z + z2
- f'(z) = - 2 + 2z
- f'(z) = - 2(1 - z)
解法 2 利用上面的推导结果,我们有
- f'(z) = -2(1 - z)2 - 1 = -2(1 - z)
模仿以上方法或其他方法,求下列函数的导数
1. (1 - z)3
2. (1 + z)2
3. (1 + z)3
4. (较难) 1/(1 - z)3 (提示: 使用导数定义)
我们将讲解如何对这种形式的函数进行微分

即,其倒数也是函数的函数。我们根据微分的定义进行推导



由

其中 *g* 是 *z* 的函数,我们可以得到

这证实了使用计数方法推导出的结果。
对以下函数求导:
1. 1/(1-z)2
2. 1/(1-z)3
3. 1/(1+z)3
4. 证明 (1/(1 - z)n)' = n/(1-z)n+1
现在我们已经熟悉了从第一原理推导的微分,我们应该考虑

我们知道

对等式两边求导数


因此,我们可以得出结论

请注意,我们也可以通过替换法得到上述结果,

令 z = x2,就可以得到所需的结果。
以上示例表明,我们不需要关心复杂的微分。相反,为了以简单的方式获得结果,我们只需要对基本形式进行微分并应用替换方法。基本形式是指以下形式的生成函数

对于 n ≥ 1。
让我们考虑以下方程的解的个数

对于 i = 1, 2, ... n,ai ≥ 0。
我们知道,对于任何 *m*,解的个数是以下式子的系数

如前所述。
我们从

对两边求导(注意 1 = 1!)

再次求导

以此类推,重复 (n-1) 次

将两边除以 (n-1)!

以上结果验证了使用计数方法推导出的结果。