|
v* 13:49:59
鱼* 14:02:03
对,数归说不定可以搞定
列项
v* 14:03:03
我怎么有取对数,求导,积分之类的冲动 一般地:设 `x_i` 互不相同,则存在与 `x` 无关的 `A_i` 使
\[\frac1{(x-x_1)(x-x_2)\cdots(x-x_n)}=\frac{A_1}{x-x_1}+\frac{A_2}{x-x_2}+\cdots+\frac{A_n}{x-x_n}.\]数归当然可以,比如说,假设 `n` 项的时候成立,则 `n+1` 项时
\begin{align*}
&\frac1{(x-x_1)(x-x_2)\cdots(x-x_n)(x-x_{n+1})}\\
={}&\frac{A_1}{(x-x_1)(x-x_{n+1})}+\frac{A_2}{(x-x_2)(x-x_{n+1})}+\cdots+\frac{A_n}{(x-x_n)(x-x_{n+1})}\\
={}&\frac{B_1}{x-x_1}-\frac{B_1}{x-x_{n+1}}+\frac{B_2}{x-x_2}-\frac{B_2}{x-x_{n+1}}+\cdots+\frac{B_n}{x-x_n}-\frac{B_n}{x-x_{n+1}}\\
={}&\frac{B_1}{x-x_1}+\frac{B_2}{x-x_2}+\cdots+\frac{B_{n+1}}{x-x_{n+1}},
\end{align*}这样就 OK 了。当然,也可以这样裂:
\begin{align*}
&\frac1{(x-x_1)(x-x_2)\cdots(x-x_n)(x-x_{n+1})}\\
={}&\frac1{x_1-x_{n+1}}\left( \frac1{(x-x_1)(x-x_2)\cdots(x-x_n)}-\frac1{(x-x_2)\cdots(x-x_n)(x-x_{n+1})} \right),
\end{align*}括号里的两项继续裂下去,最终得到结论。
其实,用拉格朗,可以得出具体的表达式:
设常数函数 `f(x)=1`,由拉格朗日插值公式,`f(x)` 可以表示成
\begin{align*}
f(x)={}&\frac{(x-x_2)(x-x_3)\cdots(x-x_n)}{(x_1-x_2)(x_1-x_3)\cdots(x_1-x_n)}f(x_1)\\
&+\frac{(x-x_1)(x-x_3)\cdots(x-x_n)}{(x_2-x_1)(x_2-x_3)\cdots(x_2-x_n)}f(x_2)\\
&+\cdots+\frac{(x-x_1)(x-x_2)\cdots(x-x_{n-1})}{(x_n-x_1)(x_n-x_2)\cdots(x_n-x_{n-1})}f(x_n),
\end{align*}故此有恒等式
\begin{align*}
1={}&\frac{(x-x_2)(x-x_3)\cdots(x-x_n)}{(x_1-x_2)(x_1-x_3)\cdots(x_1-x_n)}\\
&+\frac{(x-x_1)(x-x_3)\cdots(x-x_n)}{(x_2-x_1)(x_2-x_3)\cdots(x_2-x_n)}\\
&+\cdots+\frac{(x-x_1)(x-x_2)\cdots(x-x_{n-1})}{(x_n-x_1)(x_n-x_2)\cdots(x_n-x_{n-1})},
\end{align*}两边除以 `(x-x_1)(x-x_2)\cdots(x-x_n)` 就是
\[\bbox[#CFF,15px]{\begin{aligned}
\frac1{(x-x_1)(x-x_2)\cdots(x-x_n)}={}&\frac1{(x-x_1)(x_1-x_2)(x_1-x_3)\cdots(x_1-x_n)}\\
&+\frac1{(x-x_2)(x_2-x_1)(x_2-x_3)\cdots(x_2-x_n)}\\
&+\cdots+\frac1{(x-x_n)(x_n-x_1)(x_n-x_2)\cdots(x_n-x_{n-1})}.
\end{aligned}}\] |
|