BREAKING NEWS
Formal derivative

## Summary

In mathematics, the formal derivative is an operation on elements of a polynomial ring or a ring of formal power series that mimics the form of the derivative from calculus. Though they appear similar, the algebraic advantage of a formal derivative is that it does not rely on the notion of a limit, which is in general impossible to define for a ring. Many of the properties of the derivative are true of the formal derivative, but some, especially those that make numerical statements, are not.

Formal differentiation is used in algebra to test for multiple roots of a polynomial.

## Definition

Fix a ring ${\displaystyle R}$  (not necessarily commutative) and let ${\displaystyle A=R[x]}$  be the ring of polynomials over ${\displaystyle R}$ . (If ${\displaystyle R}$  is not commutative, this is the free algebra over a single indeterminate variable.)

Then the formal derivative is an operation on elements of ${\displaystyle A}$ , where if

${\displaystyle f(x)\,=\,a_{n}x^{n}+\cdots +a_{1}x+a_{0},}$

then its formal derivative is

${\displaystyle f'(x)\,=\,Df(x)=na_{n}x^{n-1}+\cdots +ia_{i}x^{i-1}+\cdots +a_{1}.}$

In the above definition, for any nonnegative integer ${\displaystyle i}$  and ${\displaystyle r\in R}$ , ${\displaystyle ir}$  is defined as usual in a ring: ${\displaystyle ir=\underbrace {r+r+\cdots +r} _{i{\text{ times}}}}$  (with ${\displaystyle ir=0}$  if ${\displaystyle i=0}$ ).[1]

This definition also works even if ${\displaystyle R}$  does not have a multiplicative identity (that is, ${\displaystyle R}$  is a rng).

### Alternative axiomatic definition

One may also define the formal derivative axiomatically as the map ${\displaystyle (\ast )^{\prime }\colon R[x]\to R[x]}$  satisfying the following properties.

1. ${\displaystyle r'=0}$  for all ${\displaystyle r\in R\subset R[x].}$
2. The normalization axiom, ${\displaystyle x'=1.}$
3. The map commutes with the addition operation in the polynomial ring, ${\displaystyle (a+b)'=a'+b'.}$
4. The map satisfies Leibniz's law with respect to the polynomial ring's multiplication operation, ${\displaystyle (a\cdot b)'=a'\cdot b+a\cdot b'.}$

One may prove that this axiomatic definition yields a well-defined map respecting all of the usual ring axioms.

The formula above (i.e. the definition of the formal derivative when the coefficient ring is commutative) is a direct consequence of the aforementioned axioms:

{\displaystyle {\begin{aligned}\left(\sum _{i}a_{i}x^{i}\right)'&=\sum _{i}\left(a_{i}x^{i}\right)'\\&=\sum _{i}\left((a_{i})'x^{i}+a_{i}\left(x^{i}\right)'\right)\\&=\sum _{i}\left(0x^{i}+a_{i}\left(\sum _{j=1}^{i}x^{j-1}(x')x^{i-j}\right)\right)\\&=\sum _{i}\sum _{j=1}^{i}a_{i}x^{i-1}\\&=\sum _{i}ia_{i}x^{i-1}.\end{aligned}}}

## Properties

It can be verified that:

• Formal differentiation is linear: for any two polynomials f(x),g(x) in R[x] and elements r,s of R we have
${\displaystyle (r\cdot f+s\cdot g)'(x)=r\cdot f'(x)+s\cdot g'(x).}$
${\displaystyle (f\cdot g)'(x)=f'(x)\cdot g(x)+f(x)\cdot g'(x).}$
Note the order of the factors; when R is not commutative this is important.

These two properties make D a derivation on A (see module of relative differential forms for a discussion of a generalization).

Note that the formal derivative is not a ring homomorphism, because the product rule is different from saying (and it is not the case) that ${\displaystyle (f\cdot g)'=f'\cdot g'}$ . However, it is a homomorphism (linear map) of R-modules, by the above rules.

## Application to finding repeated factors

As in calculus, the derivative detects multiple roots. If R is a field then R[x] is a Euclidean domain, and in this situation we can define multiplicity of roots; for every polynomial f(x) in R[x] and every element r of R, there exists a nonnegative integer mr and a polynomial g(x) such that

${\displaystyle f(x)=(x-r)^{m_{r}}g(x)}$

where g(r)0. mr is the multiplicity of r as a root of f. It follows from the Leibniz rule that in this situation, mr is also the number of differentiations that must be performed on f(x) before r is no longer a root of the resulting polynomial. The utility of this observation is that although in general not every polynomial of degree n in R[x] has n roots counting multiplicity (this is the maximum, by the above theorem), we may pass to field extensions in which this is true (namely, algebraic closures). Once we do, we may uncover a multiple root that was not a root at all simply over R. For example, if R is the finite field with three elements, the polynomial

${\displaystyle f(x)\,=\,x^{6}+1}$

has no roots in R; however, its formal derivative (${\displaystyle f'(x)\,=\,6x^{5}}$ ) is zero since 3 = 0 in R and in any extension of R, so when we pass to the algebraic closure it has a multiple root that could not have been detected by factorization in R itself. Thus, formal differentiation allows an effective notion of multiplicity. This is important in Galois theory, where the distinction is made between separable field extensions (defined by polynomials with no multiple roots) and inseparable ones.

## Correspondence to analytic derivative

When the ring R of scalars is commutative, there is an alternative and equivalent definition of the formal derivative, which resembles the one seen in differential calculus. The element Y–X of the ring R[X,Y] divides Yn – Xn for any nonnegative integer n, and therefore divides f(Y) – f(X) for any polynomial f in one indeterminate. If the quotient in R[X,Y] is denoted by g, then

${\displaystyle g(X,Y)={\frac {f(Y)-f(X)}{Y-X}}.}$

It is then not hard to verify that g(X,X) (in R[X]) coincides with the formal derivative of f as it was defined above.

This formulation of the derivative works equally well for a formal power series, as long as the ring of coefficients is commutative.

Actually, if the division in this definition is carried out in the class of functions of ${\displaystyle Y}$  continuous at ${\displaystyle X}$ , it will recapture the classical definition of the derivative. If it is carried out in the class of functions continuous in both ${\displaystyle X}$  and ${\displaystyle Y}$ , we get uniform differentiability, and the function ${\displaystyle f}$  will be continuously differentiable. Likewise, by choosing different classes of functions (say, the Lipschitz class), we get different flavors of differentiability. In this way, differentiation becomes a part of algebra of functions.