ComputerAlgebra/24_apr.md

General info

prof: usualy at IM 223

Excersise Classes: Julian Danner (IM 207)

What is Computer Algebra

abelian group

An abelian group is a set $( G )$ equipped with a binary operation $( + )$ (often called addition) that satisfies the following properties:

  1. Closure: For all $( a, b \in G ), ( a + b \in G )$.
  2. Associativity: For all $( a, b, c \in G )$, $( (a + b) + c = a + (b + c) )$.
  3. Identity element: There exists an element $( 0 \in G )$ such that for all $( a \in G )$, $( a + 0 = a )$.
  4. Inverse element: For every $( a \in G )$, there exists an element $( -a \in G )$ such that $( a + (-a) = 0 )$.
  5. Commutativity: For all $( a, b \in G ), ( a + b = b + a )$.

Commutative Group

A commutative group (also known as an abelian group) is a group $( G, + )$ where the group operation $( + )$ satisfies the commutative property:

This means that the order in which elements are combined does not affect the result.

Ring

A ring is a set $( R )$ equipped with two binary operations, typically called addition $( + )$ and multiplication $( \cdot )$, such that:

  1. Additive abelian group: $( R, + )$ is an abelian group. This means:

    • Closure: For all $( a, b \in R )$, $( a + b \in R )$.
    • Associativity: For all $( a, b, c \in R )$, $( (a + b) + c = a + (b + c) )$.
    • Identity element: There exists an element $( 0 \in R )$ such that for all $( a \in R )$, $( a + 0 = a )$.
    • Inverse element: For every $( a \in R )$, there exists an element $( -a \in R )$ such that $( a + (-a) = 0 )$.
    • Commutativity: For all $( a, b \in R )$, $( a + b = b + a )$.
  2. Multiplicative closure and associativity:

    • Closure: For all $( a, b \in R )$, $( a \cdot b \in R )$.
    • Associativity: For all $( a, b, c \in R )$, $( (a \cdot b) \cdot c = a \cdot (b \cdot c) )$.
  3. Distributive properties:

    • For all $( a, b, c \in R )$, $( a \cdot (b + c) = (a \cdot b) + (a \cdot c) )$.
    • For all $( a, b, c \in R )$, $( (a + b) \cdot c = (a \cdot c) + (b \cdot c) )$.

A ring may or may not have a multiplicative identity (an element $( 1 \in R )$ such that for all $( a \in R )$, $( a \cdot 1 = a )$). If it does, the ring is called a unital ring or ring with unity.

Commutative Field

A commutative field (or simply a field) is a set $( F )$ equipped with two binary operations, addition $( + )$ and multiplication $( \cdot )$, such that:

  1. Additive abelian group: $( F, + )$ is an abelian group. This means:

    • Closure: For all $( a, b \in F )$, $( a + b \in F )$.
    • Associativity: For all $( a, b, c \in F )$, $( (a + b) + c = a + (b + c) )$.
    • Identity element: There exists an element $( 0 \in F )$ such that for all $( a \in F )$, $( a + 0 = a )$.
    • Inverse element: For every $( a \in F )$, there exists an element $( -a \in F )$ such that $( a + (-a) = 0 )$.
    • Commutativity: For all $( a, b \in F )$, $( a + b = b + a )$.
  2. Multiplicative abelian group: $( F \setminus {0}, \cdot )$ is an abelian group. This means:

    • Closure: For all $( a, b \in F \setminus {0} )$, $( a \cdot b \in F \setminus {0} )$.
    • Associativity: For all $( a, b, c \in F \setminus {0} )$, $( (a \cdot b) \cdot c = a \cdot (b \cdot c) )$.
    • Identity element: There exists an element $( 1 \in F )$ such that for all $( a \in F )$, $( a \cdot 1 = a )$.
    • Inverse element: For every $( a \in F \setminus {0} )$, there exists an element $( a^{-1} \in F )$ such that $( a \cdot a^{-1} = 1 )$.
    • Commutativity: For all $( a, b \in F \setminus {0} )$, $( a \cdot b = b \cdot a )$.
  3. Distributive property:

    • For all $( a, b, c \in F )$, $( a \cdot (b + c) = (a \cdot b) + (a \cdot c) )$.

A field is essentially a commutative ring with unity where every nonzero element has a multiplicative inverse.

Polynomial Ring

A polynomial ring is a ring $( R[x] )$ formed by the set of all polynomials with coefficients in a ring $( R )$ and indeterminate $( x )$. The elements of $( R[x] )$ are expressions of the form:

$ f(x) = a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + a_0 $

where $( a_0, a_1, \dots, a_n \in R )$, $( n \geq 0 )$, and $( x )$ is an indeterminate.

The operations of addition and multiplication in $( R[x] )$ are defined as follows:

  1. Addition: Polynomials are added by combining like terms. For two polynomials:

$ f(x) = a_n x^n + \dots + a_0, \quad g(x) = b_m x^m + \dots + b_0 $

their sum is:

$ f(x) + g(x) = (a_n + b_n)x^n + \dots + (a_0 + b_0) $

  1. Multiplication: Polynomials are multiplied using the distributive property. For two polynomials:

$ f(x) = a_n x^n + \dots + a_0, \quad g(x) = b_m x^m + \dots + b_0 $

their product is:

$ f(x) \cdot g(x) = \sum_{i=0}^{n+m} \left( \sum_{j+k=i} a_j b_k \right) x^i $

where the coefficients are obtained by summing the products of terms with matching degrees.

The polynomial ring $( R[x] )$ inherits the properties of the coefficient ring $( R )$. If $( R )$ is commutative, then $( R[x] )$ is also commutative. If $( R )$ has a unity, then $( R[x] )$ also has a unity, which is the constant polynomial $( 1 )$.

The ring $Z/nZ$ is a field if and only if $( n )$ is prime. This is because the elements of $Z/nZ$ are the equivalence classes of integers modulo $( n )$, and the multiplicative inverses exist only when $( n )$ is prime. In this case, every nonzero element has a multiplicative inverse in the field.

__In this lectures main fields are $Q$ and $Fp$ fields__

Symbols

$x_1$, $x_2$, $x_3$, ..., $x_n$ - some indeterminate variables

$x_1^{\alpha_1}$, $x_2^{\alpha_2}$, ..., $x_n^{\alpha_n}$ - terms or monomials

Commutative Ring

A commutative ring is a ring $( R )$ in which the multiplication operation $( \cdot )$ is commutative. This means that for all $( a, b \in R )$, the following property holds:

In other words, the order in which two elements are multiplied does not affect the result. A commutative ring still satisfies all the other properties of a ring, including the distributive properties and the existence of an additive identity and additive inverses.

When is a Commutative Ring Called a Polynomial Ring?

A commutative ring is called a polynomial ring when it consists of polynomials with coefficients in a commutative ring $( R )$ and one or more indeterminates $( x_1, x_2, \dots, x_n )$.

For example, the polynomial ring $( R[x] )$ is formed by the set of all polynomials with coefficients in $( R )$ and a single indeterminate $( x )$. Similarly, $( R[x_1, x_2, \dots, x_n] )$ represents the polynomial ring with multiple indeterminates.

The key properties of a polynomial ring are:

  1. Addition and multiplication: Defined as the usual operations on polynomials, respecting the distributive, associative, and commutative properties.
  2. Inheritance of properties: The polynomial ring inherits the commutativity, associativity, and distributive properties of the coefficient ring $( R )$.

A commutative ring becomes a polynomial ring when its elements can be expressed as polynomials over a base ring $( R )$ with specified indeterminates.

Examples

Eigenvalues and minimal polynomial

let K be a field and $A\in Mat_n(K)$. The minimal polynomial of $A$ is the monic polynomial of least degree such that $p(A)=0$. The minimal polynomial is unique and divides any polynomial that annihilates $A$. The roots of the minimal polynomial are the eigenvalues of $A$.

Solution:

Calculate $K_A(z) = det(zI-A)$, where $I$ is the identity matrix. The roots of $K_A(z)$ are the eigenvalues of $A$. The minimal polynomial is the monic polynomial of least degree that divides $K_A(z)$ and has the same roots as $K_A(z)$.

And its prome factorization is $K_A(z) = $p_1(z)^x_1$ ... $p_k(z)^x_k$

Remove vectors until we dont get a zero vector.

Number theory

a = $\sqrt{2}$ + $^3\sqrt{3}$ + $i \in C$. Find the minimal polynomial of $a$ over $Q$, such that $p(a)=0$.

Solution:

Haven't write down

Graph theory

3-coloring of a graph

A graph $G = (V, E)$ consists of a set of vertices V and a set of edges E. A 3-coloring of G is an assignment of colors to the vertices such that no two adjacent vertices have the same color. The chromatic polynomial $P(G, k)$ counts the number of ways to color the graph with k colors.

$E <= V*V$

lets call colors $\overline{0},$ $ \overline{1}$, $\overline{2}$

Model the task using polinomials.

$V = {v_1, v_2, \dots, v_n}$ $< - >$ elements $x_1, x_2, \dots, x_n$ colors $< - >$ elements $\overline{0},$ $ \overline{1}$, $\overline{2}$ $\in$ $F_3$

Look at P = $F_3[x_1, x_2, \dots, x_n]$.

(1) each $v_i$ gets one color: $x_i(x_i - \overline{0})(x_i - \overline{1})(x_i - \overline{2}) = 0$ -> $x_i^3 - x_i$

a 3-coloring is a 0 of $< x_1^3 - x_1, \dots, x_n^3 - x_n >$

(2) if ($v_i, v_j$) is an edge, then $x_i \neq x_j$ -> $< x_i - x_j >$

$x_i^2 + x_i * x_j + x_j^2 = 0$ for all $(v_i, v_j) \in E$.

Goal: find a common zero $(a_1, a_2, \dots, a_n)$ of all polynomials.

Back to root