在數學上,韦达定理(英語:Vieta's formulas),又称根與係數的关系,給出了多項式方程的根與係數的关系。該定理由法國數學家弗朗索瓦·韋達發現,並因此得名。
韋達定理常用於代數領域。它的實用之處在於,能够不用把根直接解出來就能计算根之間的關係。
设
是一个一元 n 次實(或複)係數多項式,首項系數
,令 P 的 n 個根為
,则根
和係數
之間滿足關係式

等價的說,對任何 k = 1, 2, ..., n,係數比
是所有任取 k 個根的乘積的和的
倍,即

- 或:

其中
是要讓所有的根的組合都恰好出現一次。
事實上,等號的左邊被稱作是初等對稱多項式。
因為
是一元 n 次多項式
的 n 个根。於是有

根據乘法原理展開右式,比較等號兩邊的各項係數可得

上式等同於韋達定理的敘述。
设
是一元二次多項式
的两根,則由
有

這個特殊情況除之前提到的证明方法,也可以直接用求根公式即
,
證明:


在這個情況下,韦达定理的逆定理同样成立:給定一個一元二次多項式
,如果有两个数
,滿足
和
,則
就是多項式
的兩根。
设
是一元三次多項式
的三根,則

韋達定理經常使用在討論整環 R 上多項式,換言之多項式係數都落在 R 上。此時,分數
在 R 中不見得有定義,除非
本身是可逆元。但
在 R 的分式環 K 中有定義,而根
則在 K 的代數閉包
中有定義。特別的,如果 R 是整數環
,則 K 是有理數體
,
是複數體
。
如果多項式 P(x) 定義在一般非整環的交換環上,則韋達定理可能在兩個地方出錯。第一,
可能不是零因子,因此不能出現在分母。第二 P(x) 可能不等於
。第一點算是顯而易見,以下給出一個第二點的例子。在環
中,多項式
有四個根 1、3、5、7,根數比多項式的次數還多。此外,如果隨便取兩根出來,例如
,
,會發現
,但是有時候如果根取的剛好,卻又可能會有
和
。
在 16 世紀,韋達發現了所有根都是正整數的版本,至於一般的版本 (根是實數),可能首次由法國數學家 Albert Girard 提出。Funkhouser 引用了18 世紀英國數學家查爾斯·赫頓的話寫道[1]
...[Girard 是] 理解關於各次方項係數的和與積公式的一般性學說的第一人。他是找到關於將任意方程式的根的次方加總的規則的第一人。
- Hazewinkel, Michiel (编), Viète theorem, 数学百科全书, Springer, 2001, ISBN 978-1-55608-010-4
- Funkhouser, H. Gray, A short account of the history of symmetric functions of roots of equations, American Mathematical Monthly (Mathematical Association of America), 1930, 37 (7): 357–365, JSTOR 2299273, doi:10.2307/2299273
- Vinberg, E. B., A course in algebra, American Mathematical Society, Providence, R.I, 2003, ISBN 0-8218-3413-4
- Djukić, Dušan; et al, The IMO compendium: a collection of problems suggested for the International Mathematical Olympiads, 1959–2004, Springer, New York, NY, 2006, ISBN 0-387-24299-6