1 Introduction

1.1 Evolution algebras and its derivations

The evolution algebras are non-associative algebras introduced by Tian and Vojtechovsky [16], who established the theoretical foundations of these structures. In addition to emerging to model non-Mendelian genetic, in Tian [15] identified a whole series of connections with other areas such as graph theory, group theory and discrete-time Markov chains, among others. For a recent review of the advances in this type of algebras, we refer the reader to Ceballos et al. [10].

In this work, we are interested in studying the space of derivations of some evolution algebras. We point out that although there are many works describing partially such a space, by using different approaches, a complete characterization is still an unfinished task. For any evolution algebra, Tian [15] described the derivations in terms of a system of equations which becomes the starting point for the characterization of the derivations for different families of evolution algebras. The study of the derivations of evolution algebras with non-singular structure matrices was done in [8] for complex algebras and extended in [12] for algebras over a field with any characteristic. While [9] gave a complete characterization for the space of derivations of two-dimensional evolution algebras, Alsarayreh et al. [1] studied the derivations of certain three-dimensional evolution algebras (solvable and nilpotent). Later, Qaralleh and Mukhamedov [13] provided a description of the derivations of three-dimensional Volterra evolution algebras. In [7] the authors provided a characterization for the case of evolution algebras associated to graphs over a field of zero characteristic, which was generalized later for fields of any characteristic in [14]. The novelty in the approach developed in [7, 14] rely on the connection between the set of equation mentioned above and the structural properties of the considered graph. Such an approach was explored in [3], where the authors studied the space of derivations of some non-degenerate irreducible evolution algebras depending on the twin partition of an associated directed graph.

One of the contributions of our work is to provide a characterization, in a sense to be defined later, of the space of derivations of non-degenerate evolution algebras. We improve some results obtained recently in the literature and, as a consequence, we advance in the description of the derivations for n-dimensional Volterra evolution algebras.

1.2 Loops of an evolution algebra

Our approach to dealing with derivations is inspired by a combination of arguments developed by [3, 4]. While the former explores the structure of a directed graph associated to an evolution algebra, the last relies on a partition of the considered basis. One of the peculiarities of evolution algebras is that they are not defined by identities, so their study usually follows a different strategy than the one associated to other non-associative algebras like Jordan, Lie or power-associative algebras. A usual approach to deal with an evolution algebra is to fix its natural basis. However, many properties are not invariant through the chosen basis. Some examples of this are the connectedness of the associated direct graph (see [11, Example 2.5]) or the skew-symmetry of the structure matrix (see Example 2.1). Therefore an interesting task is to know which properties are invariant under the chosen basis. Motivated by this question we study the phenomenon showed in Example 2.1, where we change the basis of a Volterra evolution algebra and as a consequence, we verify that each element of the diagonal of the structure matrix remains equal to zero. We prove that this is true in general for Volterra evolution algebras. Moreover, it was trying to answer this question that we solve a more general problem; namely, when the number of zeros in the diagonal of a structure matrix of an evolution algebra is invariant under the change of natural basis. We point out that this problem has been addressed previously in [4, Proposition 2.13] for the case where the algebra is perfect.

The nonzero elements belonging to the diagonal of the structure matrix are what we call the loops of an evolution algebra. Although our results related to this part of the paper are of independent interest, we observe that knowing the loops of an evolution algebra was useful to the study of its derivations in [3].

1.3 Organization of the paper

Now, we will show how this paper is organized. In Sect. 2 we introduce the preliminary definitions and notations. Taking into account [2, Theorem 2.11] we define a natural decomposition of a natural basis of an evolution algebra which will be an important tool for later results.

We begin Sect. 3 by establishing a characterization of space of derivations for a non-degenerate evolution algebra in Proposition 3.1. As a consequence, the Corollary 3.4 proves that the derivation is a block matrix, up to reordering. The Proposition 3.5 gives a connection between the set of derivations and the fact of having a unique natural basis (in the sense that whatever other natural basis can obtain by permutations or product by scalars). This fact generalizes the results of [8, Theorem 2.1], [12, Theorem 4.1 item (1)] and [3, Theorem 1]. In the particular case of \(\textrm{dim}({\mathcal {A}}^2)=1\) and the product of any two square elements of basis is different from zero, we provide necessary and sufficient conditions for a linear operator to be a derivation (Proposition 3.8). In fact, we show in Corollary 3.9 that, up to reordering, the derivation is a skew-symmetric matrix. One of the requirements is related to the fact that the matrix of derivation is a diagonal matrix. For this reason, we ask, on the one hand when the derivation will have, under suitable conditions, some of the entries of the main diagonal equals and, on the other hand, the main diagonal null. Proposition 3.12 and Theorem 3.13 answer these questions, respectively.

The Sect. 4 is devoted to studying of derivations in the case of Volterra evolution algebras. In the same way as before, we show a characterization of the space of derivations for this specific case. Fixed a Volterra evolution algebra and verifying that the product of any two square of elements of basis is different from zero, the main result of this section (Theorem 4.4) provides a way of finding another Volterra evolution algebra with structure matrix diagonal and space of derivations the same as the Volterra evolution algebra original. As the structure matrix is diagonal, calculating the set of derivations is equivalent to calculating the set of derivations over certain evolution ideals of the algebra (Corollary 3.2). In fact, what we need is to find conditions that ensure that the main diagonal of derivations is null. In Proposition 4.6 we claim that the requirement imposed on the elements of the natural basis in the Theorem 4.4 can be replaced by other properties related to the structure constants. Particularly, Propositions 4.9 and 4.11 give conditions under which there exists a derivation of a non-degenerate Volterra evolution algebra is not a diagonal matrix.

In Sect. 5 we start by defining the loops of an evolution algebra and study when this set is invariant under change of natural basis. First, we will consider the set of no loops and we prove in Theorem 5.3 that if an element of a natural decomposition is contained within the set of no-loops then its corresponding element in another natural decomposition is also contained within it. Next, we will focus on the set of loops and we have that if an evolution algebra has no loops relative to a natural basis then it has no loops relative to any natural basis (Corollary 5.5), as we have said before. Moreover, the Theorem 5.7 and Proposition 5.9 provide convenient criteria in terms of the elements of the natural decomposition for the number of loops to be invariant. By contrast, we also give in Theorem 5.8 some conditions to find a new natural basis such that the number of loops does not stay constant. A summarizing of conditions for invariability of the number of loops can be seen in Corollary 5.12.

2 Preliminaries

In what follows \({{\mathbb {K}}}\) will denote, unless we state otherwise, a field such that \(\textrm{char}({\mathbb {K}})=0\). In order to state the first definitions let \(\Lambda :=\{1,\ldots ,n\}\). An n-dimensional \({{\mathbb {K}}}\)-algebra \({\mathcal {A}}\) is called evolution algebra if it admits a basis \(B=\{e_i \}_{i \in \Lambda }\) such that \(e_{i}e_{j}=0\) whenever \(i \ne j\). A basis with this property is known as natural basis. The scalars \(\omega _{ij} \in {{\mathbb {K}}}\) such that

$$\begin{aligned} e_i^2=\displaystyle \sum _{k \in \Lambda } \omega _{ik} e_k \end{aligned}$$

are called the structure constants of \({\mathcal {A}}\) relative to B and the matrix \(M_{B}=(\omega _{ik})\) is called the structure matrix of \({\mathcal {A}}\) relative to B. When \({\mathcal {A}}={\mathcal {A}}^2\) or equivalently when \(M_B\) is invertible, it is said that \({\mathcal {A}}\) is perfect.

If \(u=\sum _{i\in \Lambda }\alpha _ie_i\) is an element of \({\mathcal {A}}\) then the support of u relative to B is defined as \(\mathop {\textrm{supp}}\nolimits _B(u):=\{i\in \Lambda {:}\, \alpha _i \ne 0\}\). In general, if \(X \subseteq {\mathcal {A}}\), we have that \(\mathop {\textrm{supp}}\nolimits _B (X)= \cup _{x \in X} \; \mathop {\textrm{supp}}\nolimits _B (x)\). For \(u=e_i^2\) support of \(e_i^2\) is called the first-generation descendents of i relative to the natural basis B, i.e., \(D^{1}(i)=\left\{ k\in \Lambda , {:}\,\, \omega _{ik}\ne 0\right\} .\) By analogy, given a subset \(U\subseteq \Lambda \), we let \(D^{1}(U):=\mathop {\textrm{supp}}\nolimits _B(W)\) where \(W=\{e_i \in B {:}\,i \in U\}\). Similarly, we say that j is a second-generation descendent of i whenever \(j \in D^1(D^1(i))\). Therefore

$$\begin{aligned} D^2(i)=\bigcup _{k \in D^1(i)} D^1(k). \end{aligned}$$

By recurrence, we define the set of m th-generation descendents of i as

$$\begin{aligned} D^m(i)=\bigcup _{k \in D^{m-1}(i)} D^1(k). \end{aligned}$$

Finally, the set of descendents of i is defined as

$$\begin{aligned} D(i)=\bigcup _{m \in {\mathbb {N}}} D^m(i). \end{aligned}$$

An evolution algebra \({\mathcal {A}}\) is non-degenerate if there is a natural basis B such that \(e_i^2 \ne 0\) for all \(e_i \in B\). We remark that \({\mathcal {A}}\) is a non-degenerate evolution algebra if and only if \(D^{1}(i)\ne \emptyset \) for all \(i\in \Lambda \). By [11, Lemma 2.7] this definition does not depend on the chosen natural basis since \(\textrm{ann}({\mathcal {A}})=\textrm{span}(\{e_i: e_i^2=0\})\) where \(\textrm{ann}({\mathcal {A}}):=\{x\in {\mathcal {A}}{:}\,x{\mathcal {A}}=0 \}\). Therefore \({\mathcal {A}}\) is non-degenerate if and only if \(\textrm{ann}({\mathcal {A}})=0\).

On the other hand, an evolution algebra \({\mathcal {A}}\) is reducible if there exist two nonzero ideals I and J of \({\mathcal {A}}\) such that \({\mathcal {A}}=I \oplus J\). In another case, it is called irreducible.

We follow Definitions 2.1 and 2.8 in [2]. An evolution algebra \({\mathcal {A}}\) has an unique natural basis if the subgroup of \(\mathop {\textrm{Aut}}\nolimits _{\mathbb {K}}({\mathcal {A}})\) such that map natural basis into natural basis is precisely \(S_n\rtimes ({\mathbb {K}}^\times )^n\). This group was depicted in [6] for \(n=3\). On the other hand, it is said that \({\mathcal {A}}\) has Property (2LI) if for any two different vectors \(e_i, e_j\) of a natural basis, \(\{e_i^2, e_j^2\}\) is linearly independent. Note that any perfect evolution algebra has the Property (2LI) but the reciprocal is not true (see [2, Example 2.9]).

Let V be a \({\mathbb {K}}\)-vector space and S be a subset of V. We denote by \(\textrm{span}(S)\) the vector subspace generated by S and \(\textrm{rk}(S)\) the rank of S, that is, the dimension of \(\textrm{span}(S)\) as vector space.

We recall that \({\mathcal {A}}\) is a Volterra evolution algebra if there exists a natural basis B of \({\mathcal {A}}\) such that \(M_B\) is a skew-symmetric matrix. In this case, we say that \({\mathcal {A}}\) is a Volterra evolution algebra relative to B. Since we are considering algebras over a field of zero characteristic, the matrix \(M_B\) has null diagonal. This family of algebras was introduced in [13] where the authors give a connection between this kind of algebras with the ergodicities of Volterra quadratic stochastic operators and, among other things, they show that these algebras are not nilpotent and they calculate its derivations for some cases.

Note that if \({\mathcal {A}}\) is a Volterra evolution algebra then is not true that for any natural basis B the structure matrix \(M_{B}\) is skew-symmetric.

Example 2.1

Let \({\mathcal {A}}\) be an evolution algebra, and let \(B=\{e_1, e_2,e_3\}\) be a natural basis such that

$$\begin{aligned} M_{B}=\left( \begin{array}{rrr} 0 &{}\quad 1 &{}\quad 0\\ -1 &{}\quad 0 &{}\quad 1\\ 0&{}\quad -1 &{}\quad 0 \\ \end{array} \right) . \end{aligned}$$

Therefore \({\mathcal {A}}\) is a Volterra evolution algebra. On the other hand, if \(B^{\prime }=\{f_1,f_2,f_3\}\) is such that \(f_1=2e_1+e_3\), \(f_2=\frac{1}{2}e_1 + e_3\) and \(f_3=e_2\), then \(B^{\prime }\) is a natural basis of \({\mathcal {A}}\) such that

$$\begin{aligned} M_{B^{\prime }}=\left( \begin{array}{rrr} 0 &{}\quad 0 &{}\quad 3\\ 0 &{}\quad 0 &{}\quad -\frac{3}{4}\\ -1 &{}\quad 2 &{}\quad 0 \\ \end{array} \right) \end{aligned}$$

is non skew-symmetric.

Now, we recall some basic definitions and notations for directed graphs. A directed graph is a 4-tuple \(E=(E^0, E^1, s_E, r_E)\) where \(E^0\), \(E^1\) are sets and \(s_E, r_E{:}\,E^1 \rightarrow E^0\) are maps. The elements of \(E^0\) are called the vertices of E and the elements of \(E^1\) are the arrows or directed edges of E. For \(f\in E^1\) the vertices r(f) and s(f) are called the range and the source of f, respectively. If \(E^0\) and \(E^1\) are both finite we say that E is finite. A vertex \(v\in E^{0}\) is called sink if it verifies that \(s(f) \ne v\), for every \(f\in E^1\). A path or a path from \(s(f_1)\) to \(r(f_m)\) in E, \(\mu \), is a finite sequence of arrows \(\mu =f_1\dots f_m\) such that \(r(f_i)=s(f_{i+1})\) for \(i\in \{1,\dots ,(m-1)\}\). In this case, we say that m is the length of the path \(\mu \) and denote it by \(\vert \mu \vert =m\). Let \(\mu = f_1 \dots f_m\) be a path in E with \( \vert \mu \vert =m\ge 1\). If \(v=s(f_1)=r(f_n)\), then \(\mu \) is called a closed path based at v. If \(\mu = f_1 \dots f_m\) is a closed path based at v and \(s(f_i)\ne s(f_j)\) for every \(i\ne j\), then \(\mu \) is called a cycle based at v or simply a cycle. A cycle of length 1 will be said to be a loop. Given a finite graph E, its adjacency matrix is the matrix \(A_{E}=(a_{ij})\) where \(a_{ij}\) is the number of arrows from i to j. A graph E is said to satisfy Condition (Sing) if among two vertices of \(E^0\) there is at most one arrow. If exist a path from i to j in E, then we define the distance from i to j as \(\delta (i,j)=\min \{|\mu |, \mu \text { is a path from }i \text { to } j\}\).

There are several ways to associate a graph to an evolution algebra (see [5, 11]). We consider the directed graph described in [5] as follows. Given a natural basis \(B=\{e_i \}_{i\in \Lambda }\) of an evolution algebra \({\mathcal {A}}\) and its structure matrix \(M_B=(\omega _{ij})\in {M}_\Lambda ({\mathbb {K}})\), consider the matrix \(P=(a_{ij})\in {M}_\Lambda ({\mathbb {K}})\) such that \(a_{ij}=0\) if \(\omega _{ij}=0\) and \(a_{ij}=1\) if \(\omega _{ij}\ne 0\). The graph associated to the evolution algebra \({\mathcal {A}}\) (relative to the basis B), denoted by \(E_{\mathcal {A}}^{B}\) (or simply by E if the algebra \({\mathcal {A}}\) and the basis B are understood) is the directed graph whose adjacency matrix is given by \(P=(a_{ij})\). In this way, we only consider graphs satisfying Condition Sing.

By analogy with graph theory, we define the following notions. Let \({\mathcal {A}}\) be an evolution algebra with natural basis B and let \(i,j \in \Lambda \). We say that i and j are twins relative to B if \(D^1(i)=D^1(j)\). We notice that by defining the relation \(\sim _{t_B}\) on the set of indices \(\Lambda \) by \(i\sim _{t_B} j\) whether i and j are twins relative to B, then \(\sim _{t_B}\) is an equivalence relation. An equivalence class of the twin relation \(\sim _{t_B}\) is referred to as a twin class relative to B. In other words, the twin class of an index i, that we will denote by \({\mathcal {T}}(i)\), is the set \({\mathcal {T}}(i):=\{j\in \Lambda {:}\,i \sim _{t_B} j\}\). The set of all twin classes relative to B of \(\Lambda \) is denoted by \(\Pi _B(\Lambda )\) and it is referred to as the twin partition relative to B of \(\Lambda \). If \({\mathcal {A}}\) has no twins relative to B, that is, if \( \text { for all } \, i,j \in \Lambda , \,i\ne j,\, D^1(i) \ne D^1(j), \) then we say that \({\mathcal {A}}\) is twin-free relative to B. These definitions depend on the chosen natural basis (see [3, Example 2]).

One of our main purposes is to study the derivations of Volterra evolution algebras. Given an (evolution) \({\mathbb {K}}\)-algebra \({\mathcal {A}}\), a derivation of \({\mathcal {A}}\) is a linear map \(d: {\mathcal {A}}\rightarrow {\mathcal {A}}\) such that

$$\begin{aligned} d(u \cdot v)= d(u) \cdot v + u \cdot d(v), \end{aligned}$$

for all \(u,v \in {\mathcal {A}}\). The space of all derivations of \({\mathcal {A}}\) is denoted by \(\mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). In [15, Section 3.2.6], it was proved that, if \({\mathcal {A}}\) is an evolution \({\mathbb {K}}\)-algebra with a natural basis \(B=\{e_i \}_{i \in \Lambda }\) then a linear map d such that \(d(e_i)=\sum _{k\in \Lambda } d_{ki}e_k\) is a derivation of the evolution algebra \({\mathcal {A}}\) if, and only if, it satisfies the following conditions:

$$\begin{aligned} \omega _{jk}d_{ij}+ \omega _{ik}d_{ji}=0,&\,\,\, \text {for}\quad i,j,k\in \Lambda \text { such that }i\ne j, \end{aligned}$$
(1)
$$\begin{aligned} \sum _{k\in \Lambda } \omega _{ik}d_{kj}=2\omega _{ij}d_{ii},&\,\,\, \text {for}\quad i,j\in \Lambda , \end{aligned}$$
(2)

From now on, we identify the linear map d with the matrix \((d_{ij})\) relative to the basis B.

Remark 2.2

According to [2, Theorem 2.11] if \({\mathcal {A}}\) is an evolution algebra with a natural basis \(B=\{e_i\}_{i \in \Lambda }\) then we can write B as a disjoint union of subsets as follows:

$$\begin{aligned} B=B_0 \cup B_1 \cup \cdots \cup B_r, \end{aligned}$$
(3)

where \(\textrm{ann}({\mathcal {A}})= \textrm{span}(B_0)\), \(\textrm{rk}(\{e_i^2: e_i \in B_t\})=1\) for \(1\le t \le r\) and \(\textrm{rk}(\{u^2, v^2\})=2\) if \(u\in B_t\) and \(v \in B_s\) with \(t\not = s\). Therefore, if we define \(\Lambda _t:=\{ k \in \Lambda {:}\, \, e_k \in B_t\}\), (3) implies that \(\Lambda \) can be also expressed as disjoint union of subsets:

$$\begin{aligned} \Lambda =\Lambda _0 \cup \Lambda _1 \cup \cdots \cup \Lambda _r, \end{aligned}$$
(4)

where \(\textrm{rk}(\{e_i^2, e_j^2\})=1\) if \(i \in \Lambda _t, j \in \Lambda _{s}\) and \(t \ne s\) and \(\textrm{rk}(\{e_i^2,e_j^2\})=2\), if \(i, j \in \Lambda _t\), for some \( t \in \{1,\dots , r \}\). So, in this last case,

$$\begin{aligned} e_i^2=\alpha _{ji} e_j^2 \end{aligned}$$
(5)

for some \(\alpha _{ji} \in {\mathbb {K}}^{\times }\).

This observation leads us to the following definition.

Definition 2.3

In the same conditions of Remark 2.2, the partitions \(B=B_0 \cup B_1 \cup \cdots \cup B_r\) and \(\Lambda =\Lambda _0 \cup \Lambda _1 \cup \cdots \cup \Lambda _r\) are called a natural decomposition of B and a natural decomposition of \(\Lambda \) relative to B, respectively.

Definition 2.4

Let \({\mathcal {A}}\) an evolution algebra. We define

$$\begin{aligned} \Lambda (j)=\{ k \in \Lambda {\setminus }\Lambda _0;\, \, e_k^2 \text { and }e_j^2\text { are linearly dependent}\}. \end{aligned}$$

Moreover, we can write \(e_k^2=\alpha _{jk} e_j^2\), for some \(\alpha _{jk} \in {\mathbb {K}}^\times \) and \(j,k \in \Lambda (j)\).

Remark 2.5

Under the conditions of Remark 2.2, if \(B'\) is another natural basis of \({\mathcal {A}}\) with a natural decomposition \(B'=B'_0 \cup B'_1 \cup \cdots \cup B'_s\) then by [2, Remark 2.14] we know that \(r=s\) and that it is possible to reorder \(B'\) in such a way that \(\textrm{span}(B_0)= \textrm{span}(B'_0)\) and \(B'_t \subseteq \textrm{span}(B_0 \cup B_t)\). In addition, it is easy to check that \(\vert B_t \vert = \vert B_t' \vert \) for every \(t \in \{1, \ldots , r\}\).

From now on, when we have natural decompositions of two natural bases B and \(B'\) of an evolution algebra \({\mathcal {A}}\) we suppose that both decompositions are written taking into account this reordering.

3 Derivations of a non-degenerate evolution algebra

In this section, we will investigate when a linear operator of a non-degenerate evolution algebra is a derivation. In particular, we will study the derivations of an evolution algebra with \(\dim ({\mathcal {A}}^2)=1\).

The following proposition improves [3, Proposition 1] in the sense that it provides a condition necessary and sufficient under which a linear operator \(d{:}\,{\mathcal {A}}\rightarrow {\mathcal {A}}\) is a derivation of a non-degenerate evolution algebra \({\mathcal {A}}\).

Proposition 3.1

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra with a natural basis \(B=\{e_i \}_{i \in \Lambda }\), structure matrix \(M_B=(\omega _{ij})\) and let \(d{:}\,{\mathcal {A}}\rightarrow {\mathcal {A}}\) be a linear map, \(d=(d_{ij})\). Then \(d\in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) if and only if d satisfies the following conditions:

  1. (i)

    If \(i,j \in \Lambda , i \ne j\), and \(i \sim _{t_B} j\) then \(d_{ji}=-\frac{\omega _{jk}}{\omega _{ik}}d_{ij}\), for all \(k \in D^1(i)\).

  2. (ii)

    If \(i,j \in \Lambda \) and \(i \not \sim _{t_B} j\) then \(d_{ji}=d_{ij}=0.\)

  3. (iii)

    For any \(i\in \Lambda \)

    $$\begin{aligned} \sum _{k\in D^1(i)} \omega _{ik}d_{kj}=\left\{ \begin{array}{ll} 0,&{}\quad \text { if }j\notin D^1(i),\\ 2\omega _{ij}d_{ii},&{}\quad \text {if}j\in D^1(i). \end{array}\right. \end{aligned}$$

Proof

If \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) then d satisfies conditions (i) to (iii) by [3, Proposition 1]. Conversely, let \(d{:}\,{\mathcal {A}}\rightarrow {\mathcal {A}}\) be a linear map satisfying conditions (i) to (iii). In order to prove that \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\), it will be necessary to check that d verifies (1) and (2). Let \(i,j, k \in \Lambda \), \(i\ne j\). If \(i \sim _{t_B} j \), by (i), we have

$$\begin{aligned} \omega _{jk}d_{ij}+ \omega _{ik}d_{ji}=\omega _{jk}d_{ij}+\omega _{ik}\Big (-\frac{\omega _{jk}}{ \omega _{ik}}d_{ij}\Big )= 0, \quad \text { for all }k\in D^1(i). \end{aligned}$$

Furthermore, if \(k\not \in D^1(i)\) then \(w_{jk}=w_{ik}=0\), which implies that \(\omega _{jk}d_{ij}+ \omega _{ik}d_{ji}=0\). Otherwise if \(i \not \sim _{t_B} j \), by (ii), we have that \(d_{ij}=d_{ji}=0\). Therefore d satisfies (1).

Now note that for all \(i,j \in \Lambda \) we have

$$\begin{aligned} \sum _{k=1} ^{n} \omega _{ik}d_{kj}=\sum _{k \in D^1(i)} \omega _{ik}d_{kj}=\left\{ \begin{array}{cl} 0,&{}\quad \text { if }j\notin D^1(i),\\ 2\omega _{ij}d_{ii},&{}\quad \text { if }j\in D^1(i). \end{array}\right. =2\omega _{ij}d_{ii}. \end{aligned}$$

This proves that d satisfies (2). \(\square \)

Corollary 3.2

Let \({\mathcal {A}}\) be a non-degenerate reducible evolution algebra with \({\mathcal {A}}=I_1 \oplus \ldots \oplus I_t\) where \(I_t\) is an ideal of \({\mathcal {A}}\) for every \(t \in \{1,\ldots ,m\}\). Then \(d=(d_{ij})\in \mathop {\textrm{Der}}\nolimits {{\mathcal {A}}}\) is a block matrix. Moreover, d restricted to subspace \(I_t\) (up to reordering) is a derivation over \(I_t\) and its matrix is one of the blocks of \(d=(d_{ij})\).

Proof

Let B be a natural basis of \({\mathcal {A}}\). By [5, Theorem 5.6] we know that the ideals \(I_1, \ldots ,I_m\) can be taken as evolution ideals. Concretely, by [5, Theorem 5.6] we get a partition of \(B=B^{1}\cup \cdots \cup B^{m}\) such that \(I_t=\textrm{span}(\{e_i {:}\,e_i\in B^{t}\})\) or equivalently the structure matrix relative to B is a block diagonal matrix. Since \(i \not \sim _{t_B} j\) for \(e_i \in B^k\) and \(e_j \in B^\ell \) with \(k \ne \ell \) then by Proposition 3.1 (ii) we have that \(d_{ij}=d_{ji}=0\). It is easy to check that for every \(t\in \{1,\ldots ,m\}\), d restricted to \(I_t\) is a derivation and moreover, if \(d^t\) is the matrix of \(d\vert _{I_t}\) relative to the natural basis \(B^t\) then

$$\begin{aligned} d={\textrm{diag}}{(d^1,\ldots ,d^m)}. \end{aligned}$$

\(\square \)

Corollary 3.3

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra with a natural basis \(B=\{e_i \}_{i \in \Lambda }\) and structure matrix \(M_B=(\omega _{ij})\). If \(d=(d_{ij}) \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}}) \) then

  1. (i)

    If \(i,j \in \Lambda \), \(i \not =j\) and \(d_{ij}\ne 0\) then \(e_j^2=\alpha _{ij} e_i^2\), for some \(\alpha _{ij} \in {\mathbb {K}}^\times \).

  2. (ii)

    If \(i,j \in \Lambda \) and \(j \in D^1(i)\) then

    $$\begin{aligned} \displaystyle \sum _{k\in {\mathcal {T}}(j)} \omega _{ik} d_{kj}=2\omega _{ij}d_{ii}. \end{aligned}$$

Proof

In order to prove (i) consider \(i,j \in \Lambda \) such that \(i \not =j\) and \(d_{ij}\ne 0\). By [3, Lemma 4] we have that \(i\sim _{t_B}j\). If \(|D^{1}(i)|=1\) the proof is straightforward. In other case, by Proposition 3.1 (i), we have that

$$\begin{aligned} d_{ji}=-\frac{\omega _{jk}}{\omega _{ik}}d_{ij}=-\frac{\omega _{j\ell }}{\omega _{i\ell }}d_{ij}, \text { for all } k, \ell \in D^1(i). \end{aligned}$$

Therefore \(\frac{\omega _{jk}}{\omega _{ik}}=\frac{\omega _{j\ell }}{\omega _{i\ell }}.\) Fix \(\ell \in D^1(i)\). Then

$$\begin{aligned} e_j^2=\sum _{k \in D^1(i)} \omega _{jk}e_k=\sum _{k \in D^1(i)} \frac{\omega _{j\ell }}{\omega _{i\ell }}\omega _{ik}e_k=\frac{\omega _{j\ell }}{\omega _{i\ell }}\sum _{k \in D^1(i)} \omega _{ik}e_k=\frac{\omega _{j\ell }}{\omega _{i\ell }}e_i^2. \end{aligned}$$

Taking \(\alpha _{ij}:=\frac{\omega _{j\ell }}{\omega _{i\ell }}\), we have that \(e_j^2=\alpha _{ij} e_i^2\), as required. For item (ii), we have that \(d_{kj}=0\) for all \(k \not \in {\mathcal {T}}(j)\) by Proposition 3.1(ii). Then, using Proposition 3.1 (iii), we get

$$\begin{aligned} 2\omega _{ij}d_{ii}=\sum _{k\in D^1(i)} \omega _{ik}d_{kj}=\sum _{k\in {\mathcal {T}}(j)} \omega _{ik}d_{kj}. \end{aligned}$$

\(\square \)

Corollary 3.4

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra. Then \(d=(d_{ij}) \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) can be written as a block matrix.

Proof

We consider a natural decomposition \(B=B_0\cup \cdots \cup B_r\). We know by Corollary 3.3 (i) that \(d_{ij}=d_{ji}=0\) for every \(e_i \in B_t\) and \(e_j \in B_s\) with \(t\ne s\). \(\square \)

Observe that \(\textrm{span}(B_t)\) for \(t\ne 0\) is not ideal in general, therefore d restricted to subspace \(\textrm{span}(B_t)\) is not necessarily a derivation.

Proposition 3.5

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra with \(\mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\ne 0\). Then \({\mathcal {A}}\) does not have a unique natural basis.

Proof

Let B be a natural basis of \({\mathcal {A}}\) and let \(d\in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\), with \(d\ne 0\). By [3, Lemma 1] there are \(i,j \in \Lambda \) such that \(i\ne j\) and \(d_{ij} \ne 0\). Therefore by Corollary 3.3 (i) we have that \(e_j^2=\alpha _{ij} e_i^2\), for some \(\alpha _{ij} \in {\mathbb {K}}^\times \). Thus \({\mathcal {A}}\) has not the Property (2LI) and by [2, Corollary 2.7] we get that \({\mathcal {A}}\) has not a unique natural basis. \(\square \)

Remark 3.6

Note that the Proposition 3.5 is equivalent to say that if \({\mathcal {A}}\) has Property (2LI) then \(\mathop {\textrm{Der}}\nolimits ({\mathcal {A}})=0\). Since all perfect evolution algebras and evolution algebras which are twin-free both have the Property (2LI), the Proposition 3.5 provides a generalization of the [8, Theorem 2.1], [12, Theorem 4.1 item (1)] and [3, Theorem 1].

However, the converse of Proposition 3.5 is not true as shown in the following example.

Example 3.7

Let \({\mathcal {A}}\) a non-degenerate two-dimensional evolution algebra with product \(e_1^2=e_2^2=e_1+e_2\). As \({\mathcal {A}}\) does not have Property (2LI), then does not have a unique natural basis. However, it is easy to check that \(\mathop {\textrm{Der}}\nolimits ({\mathcal {A}})=0\).

Proposition 3.8

Let \({\mathbb {K}}\) be an arbitrary field and let \({\mathcal {A}}\) be a non-degenerate evolution \({\mathbb {K}}\)-algebra with \(\dim ({\mathcal {A}}^2)=1\). Consider \(B=\{e_i\}_{i \in \Lambda }\) a natural basis and \(M_B=(\omega _{ij})\) the structure matrix. For \(i\in \Lambda \), let \(\alpha _{1i}\) be no null scalars such that \(e_i^2=\alpha _{1i} e_1^2\). Suppose that \(e_1^2e_1^2\ne 0\). Then \(d\in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) if and only if it verifies the following conditions:

  1. (i)

    \(d_{ii}=0\) for any \(i \in \Lambda \).

  2. (ii)

    \(d_{ij}= - \dfrac{\alpha _{1i}}{\alpha _{1j}} d_{ji}\) for any \(i,j \in \Lambda \), \(i \ne j\).

  3. (iii)

    \(\sum _{j\in \Lambda }\omega _{1j}d_{jk}=0\) for \(k \in \Lambda \).

Proof

Firstly, observe that \({\mathcal {A}}^2={{\mathbb {K}}}e_1^2\). We write \(e_1^2 e_1^2= \gamma e_1^2\) for some \(\gamma \in {{\mathbb {K}}}^{\times }\). Let \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). We get that \(d(e_i^2)=2e_id(e_i)=2d_{ii}e_i^2\) for any \(i \in \Lambda \). On the other hand, we have that \(d(e_1^2 e_1^2)=2e_1^2d(e_1^2) \), so \(\gamma d(e_1^2)=2e_1^2 d(e_1^2)\). Therefore, if \(\textrm{char}({{\mathbb {K}}}) =2\), then \(d(e_1^2)=0\). If \(\textrm{char}({{\mathbb {K}}}) \not =2\), we get that \(\gamma d_{11}e_1^2 =2d_{11}e_1^2 e_1^2\). This implies that \(\gamma d_{11}e_1^2 =2d_{11} \gamma e_1^2\). So, as \(\gamma \ne 0\) and \({\mathcal {A}}\) is non-degenerate, then \(d_{11}=0\). We conclude that \(d(e_1^2)=0\) in any case and therefore \(d(e_i^2)=0\) for any \(i \in \Lambda \). Then \(d_{ii}=0\) because \(d(e_i^2)=2d_{ii}\alpha _{1i} e_1^2\). Let \(i \ne j\) with \(i,j \in \Lambda \), then \(d(e_i e_j)=0\), which implies that \(d_{ij}e_j^2+d_{ji}e_i^2=0\). So \(e_1^2(d_{ij}\alpha _{1j}+d_{ji}\alpha _{1i})=0\) and by non-degeneracy of \({\mathcal {A}}\) \(d_{ij}=-\frac{\alpha _{1i}}{\alpha _{1j}}d_{ji}\). Finally, as \(d(e_1^2)=2d(e_1)e_1\) by (2) we have that \(\sum _{j}\omega _{1j}d_{jk}=2d_{11}\omega _{1k}\) for every \(k \in \Lambda \). The converse is straightforward. \(\square \)

Corollary 3.9

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra such that \(\dim ({\mathcal {A}}^2)=1\) and natural basis \(B=\{e_i\}_{i \in \Lambda }\). Suppose that \(e_i^2=e_1^2\) for any \(i \in \Lambda \) and \(e_1^2e_1^2 \ne 0\). Then if \(d\in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\), the matrix of d relative to B is skew-symmetric, up to reordering.

Remark 3.10

The converse of Corollary 3.9 is not true in general. Indeed, if we consider the 3-dimensional evolution algebra \({\mathcal {A}}\) with basis \(\{e_i\}\) and product \(e_i^2=e_1\) for any \(i=\{1,2,3\}\) then \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) if and only if \(d_{ii}=0\) for any i, \(d_{12}=d_{21}=d_{13}=d_{31}=0\) and \(d_{32}=-d_{23}\).

The condition \(e_1^2 e_1^2\ne 0\) can not be eliminated of the Proposition 3.8 as the following remark shows.

Remark 3.11

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra with \(\dim ({\mathcal {A}}^2)=1\), natural basis \(B=\{e_i \}_{i \in \Lambda }\) and structure matrix \(M_B=(\omega _{ij})\). We can write \(e_i^2=\alpha _{1i}e_1^2\) for every \(i \in \Lambda \). Suppose that \(e_1^2 e_1^2=0\). Since \(e_1^2\ne 0\) there exists k such that \(\omega _{1k} \ne 0\). Now, we will find a derivation such that \(d_{ii} \ne 0\) for every \(i \in \Lambda \). Indeed, it is enough to consider the derivation \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) defined by

$$\begin{aligned} d_{ij}=\left\{ \begin{array}{lcl} 1, &{}\quad if &{}\quad i =j,\\ -\dfrac{\alpha _{1i}\omega _{1i}}{\alpha _{1k}\omega _{1k}}, &{}\quad if &{}\quad j=k \, \,\, \textrm{and} \, \, \, i \in \Lambda {\setminus } \{k\},\\ 0, &{}\quad if &{}\quad i \ne j \, \,\,\textrm{and} \, \,\, i,j \ne k,\\ \dfrac{\omega _{1j}}{\omega _{1k}}, &{}\quad if &{}\quad i \ne j \, \,\, \textrm{and} \, \, \, i =k.\\ \end{array} \right. \end{aligned}$$

Proposition 3.12

Let \({\mathcal {A}}\) be an evolution algebra with \(\{e_i\}_{i\in \Lambda }\) natural basis and \(d=(d_{ij})\in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). Let \(\{e_i^2\}_{i=1}^\ell \) be a basis of \({\mathcal {A}}^2\) and \(e_{j}^2=\sum _{k=1}^\ell \beta _{kj} e_k^2\). If \(\beta _{kj} \ne 0\) for certain \(k \in \Lambda \) then \(d_{jj}=d_{kk}\) for any \(j \in \Lambda \).

Proof

Let \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). If \(j\in \{1,\ldots ,\ell \}\) then the statement is trivially true. We study now if \(j\notin \{1,\ldots ,\ell \}\). Applying d in the equality \(e_{j}^2=\sum _{k=1}^\ell \beta _{kj} e_k^2\) we get that \(e_{j}^2d_{jj}=\sum _{k=1}^\ell \beta _{kj} e_k^2 d_{kk}\). So \(d_{jj}\sum _{k=1}^\ell \beta _{kj} e_k^2=\sum _{k=1}^\ell \beta _{kj} e_k^2 d_{kk} \). Then \(\sum _{k=1}^\ell \beta _{kj}(d_{jj}-d_{kk})e_{k}^2=0\). Since \(\{e_i^2\}_{i=1}^\ell \) is a basis of \({\mathcal {A}}^2\) then \(\beta _{kj}(d_{jj}-d_{kk})=0\) for every \(k \in \{1,\ldots ,\ell \}\). If there exists \(k \in \Lambda \) such that \(\beta _{kj} \ne 0\) then \(d_{jj}=d_{kk}\). \(\square \)

Theorem 3.13

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra with \(\{e_i\}_{i\in \Lambda }\) natural basis and \(d=(d_{ij})\in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). If \(\{e_i^2\}_{i=1}^\ell \) is a basis of \({\mathcal {A}}^2\) with \(e_i^2e_i^2 \ne 0\) for any \(i \in \Gamma _1:=\{1,\ldots , \ell \}\) then \(d_{jj}=0\) for any \(j\in \Lambda \).

Proof

Let \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). First, we can write \(e_i^2 e_i^2= \sum _{k=1}^\ell \lambda _{ik} e_k^2\) for any \(i \in \Lambda \). Let \(j \in \Lambda \) then if we apply the derivation d in both members of \(e_j^2 e_j^2= \sum _{k=1}^\ell \lambda _{jk} e_k^2\) we get \(2 e_j^2 d(e_j^2)= 2 \sum _{k=1}^\ell \lambda _{ji}e_k d(e_k)\), so \(2e_j^2e_j^2 d_{jj} = \sum _{k=1}^\ell \lambda _{jk}e_k^2 d_{kk} \). Therefore \(2 \sum _{k=1}^\ell \lambda _{jk} e_k^2 d_{jj} = \sum _{k=1}^\ell \lambda _{jk}e_k^2 d_{kk}\), which implies \(\sum _{k=1}^\ell \lambda _{jk}(2d_{jj}-d_{kk})e_k^2=0\). Since \(\{e_k^2\}_{k=1}^\ell \) is a basis of \({\mathcal {A}}^2\) then \(\lambda _{jk}(2d_{jj}-d_{kk})=0\) for any \(k \in \Gamma _1\). As \(e_j^2e_j^2 \ne 0\) and \({\mathcal {A}}\) is non-degenerate there exists some \(j_1 \in \Gamma _1\) such that \(\lambda _{jj_1}\ne 0\) and so \(2d_{jj}-d_{j_1j_1}=0\). Firstly, we consider the set \(R=\{j \in \Gamma _1 \, {:}\,\, 2d_{jj}-d_{jj}=0\}\), then \(d_{jj}=0\) for any \(j \in R\). Secondly, let \(j_0 \in \Gamma _1\) such that \(j_0 \notin R\). We can write the following chain of equalities:

$$\begin{aligned} \begin{array}{rcl} 2d_{j_0j_0}&{}=&{}d_{j_1j_1},\\ 2d_{j_1j_1}&{}=&{}d_{j_2j_2}, \\ &{} \vdots &{}\\ 2 d_{j_{s-1}j_{s-1}}&{}=&{}d_{j_sj_s}, \end{array} \end{aligned}$$

with \(j_1,\ldots ,j_s \in \Gamma _1\). Moreover either \(j_s \in R\) or \(j_s \notin R\) but as \(\ell \) is finite, \(j_s=j_{m}\) for certain \(j_m \in \{j_0,j_1,\ldots ,j_{s-2}\}\). In the first case we get that \(d_{j_0j_0}=d_{j_1j_1}=\ldots =d_{j_s j_s}=0\). In the second case, if we write \(s=m+t\) for \(t > 1\) then it is easy to check that \(2^td_{j_mj_m}=d_{j_{m+t}j_{m+t}}\) i.e., \(2^td_{j_mj_m}=d_{j_{m}j_{m}}\). Then \(d_{j_mj_m}=d_{j_0j_0}=\cdots =d_{j_{s-1}j_{s-1}}=0\). Therefore if \(j \in \Gamma _1\) we have proved that \(d_{jj}=0\). Let \(j \notin \Gamma _1\). Now, we know that \(2d_{jj}-d_{j_1j_1}=0\) for certain \(j_1 \in \Gamma _1\) so \(d_{jj}=0\). \(\square \)

Remark 3.14

In terms of matrices, for every \(i \in \Lambda \) we can compute the product \(e_i^2 e_i^2\) as \((M_B \circ M_B)\cdot M_B \cdot (e_1\ldots e_n)^t\) where \(\circ \) is the Hadamard product (element-wise multiplication).

The converse of Theorem 3.13 is not true in general as shown the following example.

Example 3.15

Let \({\mathcal {A}}\) an evolution algebra with \(B=\{e_i\}_{i\in \Lambda }\) (\(\Lambda =\{1,\ldots ,5\}\)) natural basis and multiplication table \(e_1^2=e_1+e_2+e_4+e_5\), \(e_2^2=e_1+e_2\), \(e_3^2=e_4+e_5\), \(e_4^2=-e_5^2=e_3\) and \(d=(d_{ij})\in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). Since \(\{e_1^2, e_2^2,e_4^2\}\) is a basis of \({\mathcal {A}}^2\) and \(e_i^2e_i^2 \ne 0\) for every \(i\in \{1,2,4\}\) then \(d_{ii}=0\) for every \(i\in \Lambda \). But if we consider \(\{e_1^2, e_3^2, e_4^2\}\) a basis of \({\mathcal {A}}^2\) then \(e_3^2e_3^2=0\) and clearly \(d_{ii}=0\) for every \(i \in \Lambda \).

4 Derivations of Volterra Evolution Algebras

Lemma 4.1

Let \({\mathcal {A}}\) be a non-degenerate Volterra evolution algebra with natural basis \(B=(\omega _{ij})\) and let \(i,j \in \Lambda \) such that \({\mathcal {T}}(i)=\{i,j\}\) and there exists \(\ell \in D^1(i)\) with \(\omega _{\ell i}^3 \ne \omega _{j\ell }^3\). Suppose that \(\ell \not \sim _{t_B} k\) for every \(k \in D^1(i){\setminus } \{ \ell \}\). Then \(d_{ij}=d_{ji}=d_{ii}=d_{jj}=d_{\ell \ell }=0\) for any \(d=(d_{ij}) \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\).

Proof

Let \(d=(d_{ij}) \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). Since \(\sum _{k\in D^1(i)}\omega _{ik}d_{k\ell }=2\omega _{i\ell }d_{ii}\) and \(\ell \not \sim _{t_B} k\) we get that \(d_{\ell \ell }=2d_{ii}\) by Proposition 3.1 (ii). Likewise, \(d_{\ell \ell }=2d_{jj}\). On the other hand by Proposition 3.1 (i), \(d_{ji}=-\frac{\omega _{j\ell }}{\omega _{i\ell }}d_{ij}\). Moreover, since \(\sum _{k\in D^1(\ell )}\omega _{\ell k}d_{ki}=2\omega _{\ell i}d_{\ell }\) and \({\mathcal {T}}(i)=\{i,j\}\) then \(\omega _{\ell i}d_{ii}+\omega _{\ell j}d_{ji}=2\omega _{\ell i}d_{\ell \ell }\). Similarly we have \(\omega _{\ell i}d_{ij}+\omega _{\ell j}d_{jj}=2\omega _{\ell j}d_{\ell \ell }\). So, we get the following homogeneous system of linear equations:

$$\begin{aligned}{} & {} -3\omega _{\ell i}\omega _{i\ell }d_{ii}- \omega _{\ell j}\omega _{j\ell }d_{ij}=0,\\{} & {} -3\omega _{\ell j}d_{ii}+\omega _{\ell i}d_{ij}=0. \end{aligned}$$

This system will have the trivial solution if and only if \(\omega _{\ell i}^3 \ne \omega _{j\ell }^3\). \(\square \)

Proposition 4.2

Let \({\mathcal {A}}\) a non-degenerate Volterra evolution algebra with a natural basis \(B=\{e_i\}_{i \in \Lambda }\) and structure matrix \(M_B=(\omega _{ij})\). Consider a natural decomposition \(\Lambda =\Lambda _1\cup \cdots \cup \Lambda _r\) relative to B and \(\alpha _{ij} \in {{\mathbb {K}}}^{\times }\) such that \(e_j^2=\alpha _{ij}e_i^2\) for \(i,j\in \Lambda (i)\). Then \(d=(d_{ij}) \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) if and only if d satisfies the following conditions:

  1. (i)

    If \(i, j \in \Lambda \), \(i \ne j\) and \(\{ i,j \}\not \subseteq \Lambda _{t}\) for any \({t} \in \{1,\dots , r\} \) then \(d_{ij}=d_{ji}=0\).

  2. (ii)

    If \( i,j \in \Lambda \), \(i \ne j\) and \(\{ i,j \}\subseteq \Lambda _{t}\) for some \(t \in \{1,\dots , r\} \) then \(d_{ij}=-\alpha _{ji}d_{ji}\).

  3. (iii)

    If \( i, j \in \Lambda \) and \( i \in D^1(j)\) then \( 2d_{ii}= \sum _{k \in \Lambda (j)} \alpha _{jk} d_{kj}\).

Proof

If \(i \ne j\) and \(\{i,j\} \not \subseteq \Lambda _{t}\) for any \({t} \in \{1,\dots , r\} \), then \(e_i^2\) and \(e_j^2\) are linearly independent. By Corollary 3.3 (i) we have \(d_{ij}=d_{ji}=0\), which proves item (i). Now, note that if \(i \ne j\) and \(\{i,j\} \subseteq \Lambda _{t}\) for some \({t} \in \{1,\dots , r\}\), then \(e_i^2=\alpha _{ji}e_j^2\) and \(w_{ik}=\alpha _{ji} w_{jk}\) for all \(k \in D^1(j)\). By Proposition 3.1 (i) we have

$$\begin{aligned} d_{ij}=-\frac{w_{ik}}{w_{jk}}d_{ji}=-\alpha _{ji}d_{ji}, \end{aligned}$$

which proves item (ii). Now, let \(i, j \in \Lambda \). By item (i), if \(k \not \in \Lambda (j)\) then \(d_{kj}=0\). We have

$$\begin{aligned} \sum _{k\in \Lambda } w_{ik}d_{kj}= & {} \sum _{k\in \Lambda (j)} w_{ik}d_{kj}=\sum _{k\in \Lambda (j)} -w_{ki}d_{kj}=\sum _{k\in \Lambda (j)}-\alpha _{jk} w_{ji}d_{kj}\nonumber \\= & {} -w_{ji}\sum _{k\in \Lambda (j)} \alpha _{jk} d_{kj}=w_{ij}\sum _{k\in \Lambda (j)} \alpha _{jk} d_{kj} \end{aligned}$$
(6)

for any \(i,j\in \Lambda \). On the other hand, using Eq. (2) we get \(2 w_{ij}d_{ii}=\sum _{k=1}^{n} w_{ik}d_{kj}\) then \(2 w_{ij}d_{ii}=w_{ij}\sum _{k\in \Lambda (j)} \alpha _{jk} d_{kj}\). Now, if \(i \in D^1(j)\) then \(2d_{ii}=\sum _{k\in \Lambda (j)} \alpha _{jk} d_{kj}\), which proves item (iii). Conversely, let \(d=(d_{ij})\) satisfying conditions (i)–(iii). We will prove that d satisfies conditions (i)–(iii) of Proposition 3.1.

Let \(i,j \in \Lambda \), \(i\ne j\) and \(i \sim _t j\).

Case 1 If \(\{ i,j \} \not \subseteq \Lambda _{t}\) for any \(t\in \{1,\dots ,r\}\). Then by item (i) \(d_{ij}=d_{ji}=0\).

Case 2 If \(\{ i,j \} \subseteq \Lambda _{t}\) for some \(t \in \{1,\dots ,r\}\). Then by item (ii) \(d_{ij}=-\alpha _{ji}d_{ji}\). Note that \(\alpha _{ji}=\frac{w_{ik}}{w_{jk}}\) for all \(k \in D^1(i)\).

Therefore, for both cases, we have that \(d_{ji}=-\frac{w_{jk}}{w_{ik}} d_{ij}\) for all \(k \in D^1(i)\).

Let \(i,j \in \Lambda \), \(i\ne j\) and \(i \not \sim _t j\). Then \(e_i^2\) and \(e_j^2\) are linearly independent and by Corollary 3.3 (i) we get that \(d_{ij}=d_{ji}=0.\)

Let \(i \in \Lambda \), by Eq. (6) and item (iii) we obtain that

$$\begin{aligned} \sum _{k\in \Lambda } \omega _{ik}d_{kj}=w_{ij}\sum _{k\in \Lambda (j)} \alpha _{jk} d_{kj}= \left\{ \begin{array}{cl} 0&{}\quad \text { if }j\notin D^1(i)\\ 2\omega _{ij}d_{ii}&{}\quad \text { if }j\in D^1(i). \end{array}\right. \end{aligned}$$

\(\square \)

Corollary 4.3

Let \({\mathcal {A}}\) be a non-degenerate Volterra evolution algebra and \(d=(d_{ij})\in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). If \(i,\ell \in D^1(j)\) for some \(j \in \Lambda \) then \(d_{ii}= d_{\ell \ell }\).

Proof

The result is a direct consequence of Proposition 4.2 (iii). \(\square \)

Theorem 4.4

Let \({\mathcal {A}}\) be a non-degenerate Volterra evolution algebra with a natural basis \(B=\{e_i\}_{i \in \Lambda }\) and structure matrix \(M_B=(\omega _{ij})\). Let \(\Lambda =\Lambda _1 \cup \cdots \cup \Lambda _r\) be a natural decomposition and \(\alpha _{ij} \in {{\mathbb {K}}}^{\times }\) such that \(e_j^2=\alpha _{ij}e_i^2\) for \(i,j\in \Lambda (j)\). Define \(\nu _t:=|\Lambda _t|\) for all \(t\in \{1,\dots , r\}\). If \(e_i^2e_i^2\ne 0\) for all \(i \in \Lambda \) then there exists a Volterra evolution algebra \({\mathcal {A}}'\) with a natural basis \(B'\) such that \(\mathop {\textrm{Der}}\nolimits ({\mathcal {A}})=\mathop {\textrm{Der}}\nolimits ({\mathcal {A}}')\). Moreover, the structure matrix \(M_{B'}\) is the following block diagonal matrix

$$\begin{aligned} {\textrm{diag}}({H_1,\ldots ,H_c}), \end{aligned}$$

where \(r=2c+q\), \(q\in \{0,1\}\) and \(H_t\) is given by:

  1. (i)

    If \(q=0\) then for \(t \in \{1,\dots , c\}\) we have that

    $$\begin{aligned} H_t=\left( \begin{matrix} 0 &{}\quad F_t \\ -F_t^T &{}\quad 0 \end{matrix}\right) ,\end{aligned}$$
    (7)

    where \(F_t \in M_{\nu _{t},\nu _{t+1}} ({{\mathbb {K}}})\) is a matrix without null entries.

  2. (ii)

    If \(q=1\) then for \(t \in \{1,\ldots ,c-1\}\) the matrix \(H_t\) is of the form (7) and

    $$\begin{aligned} H_c=\left( \begin{matrix} 0 &{}\quad F_c &{}\quad F_{c+1} \\ -F_c^T &{}\quad 0 &{}\quad 0 \\ -F_{c+1}^T &{}\quad 0 &{}\quad 0 \end{matrix}\right) \end{aligned}$$
    (8)

    where \(F_{c} \in M_{\nu _{r-2}, \nu _{r-1}} ({{\mathbb {K}}})\) and \(F_{c +1} \in M_{\nu _{r-2},\nu _{r}} ({{\mathbb {K}}})\) are matrices without null entries.

Proof

We define \(s_0=0\) and \(s_{h}=\sum _{k=1}^{h} \nu _{k}\) with \(h\in \{1,\ldots ,r\}\). Note that we can reorder \(\Lambda \) such that \(\Lambda _h=\{s_{h-1}+1,\ldots ,s_{h}\}\) for \(h\in \{1,\ldots ,r\}\). First, we assume that r is even. We are going to construct an evolution algebra \({\mathcal {A}}'\) with natural basis \(B'=\{f_j\}_{j \in \Lambda }\). To describe the product in \({\mathcal {A}}'\), we consider \(t \in \{1,\ldots ,c\}\) and denote by \(p=s_{2t-2}+1\) and \(q=s_{2t-1}+1\). Now, with this notation we define

$$\begin{aligned} f_{p}^2&:=\sum _{k \in \Lambda _{2t}} \alpha _{qk} f_k, \end{aligned}$$
(9)
$$\begin{aligned} f_{j}^2&:=\alpha _{pj}f_{p}^2, \text { for all } j \in \Lambda _{2t-1}{\setminus }\{ p\}, \end{aligned}$$
(10)
$$\begin{aligned} f_{q}^2&:=-\sum _{k \in \Lambda _{2t-1}} \alpha _{pk} f_k, \end{aligned}$$
(11)
$$\begin{aligned} f_{j}^2&:=\alpha _{qj}f_{q}^2, \text { for all j} \in \Lambda _{2t}{\setminus }\{ q\}. \end{aligned}$$
(12)

Note that \(D^1(\Lambda _{2t-1})=\Lambda _{2t}\) and \(D^1(\Lambda _{2t})=\Lambda _{2t-1}\) for \(t \in \{1,\dots , c\}\). So, we get that the structure matrix of \({\mathcal {A}}'\) relative to that basis is given by the diagonal matrix \({\textrm{diag}}{(H_1,\ldots ,H_c)}\) with

$$\begin{aligned} H_{t}=\left( \begin{matrix} 0 &{}\quad F_t \\ -F_t^T &{}\quad 0 \end{matrix}\right) \end{aligned}$$

and

$$\begin{aligned} F_t:= \begin{pmatrix} 1&{}\quad \alpha _{qq+1}&{}\quad \dots &{}\quad \alpha _{qs_{2t}} \\ \alpha _{pp+1} &{}\quad \alpha _{pp+1}\alpha _{qq+1}&{}\quad \dots &{}\quad \alpha _{pp+1}\alpha _{qs_{2t}} \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ \alpha _{ps_{2t-1}} &{}\quad \alpha _{ps_{2t-1}}\alpha _{qq+1}&{}\quad \dots &{}\quad \alpha _{ps_{2t-1}}\alpha _{qs_{2t}} \end{pmatrix}\end{aligned}$$
(13)

for every \(t\in \{1,\ldots ,c\}\). Consequently \({\mathcal {A}}'\) is a Volterra evolution algebra. Observe that for all \(i,j \in \Lambda (j)\) we have \(e_i^2=\alpha _{ji}e_j^2 \text { and } f_i^2=\alpha _{ji}f_j^2\). As \(e_i^2e_i^2\ne 0\) for all \(i \in \Lambda \), then by Theorem 3.13 we obtain that \(d_{ii}=0\) for all \(i \in \Lambda \). Thus, by Proposition 4.2 follows that \(\mathop {\textrm{Der}}\nolimits ({\mathcal {A}})=\mathop {\textrm{Der}}\nolimits ({\mathcal {A}}')\), as required.

Now, we assume that r is odd. In this case we consider an evolution algebra \({\mathcal {A}}'\) with natural basis \(B'=\{f_j\}_{j \in \Lambda }\). To define the product in \({\mathcal {A}}'\) we consider \(t \in \{1,\dots , c-1\}\) and we define \(f_j\) as in Eqs. (912) for \(j \in \Lambda _{2t-1}\cup \Lambda _{2t}\). We denote by \(p=s_{r-3}+1\), \(q=s_{r-2}+1\) and \(\ell =s_{r-1}+1\) and we define

$$\begin{aligned} f_{p}^2&:=\sum _{k \in \Lambda _{r-1}} \alpha _{qk} f_k+\sum _{k \in \Lambda _{r}} \alpha _{\ell k} f_k, \\ f_{j}^2&:=\alpha _{pj}f_{p}^2, \text { for all } j \in \Lambda _{r-2}{\setminus }\{p\}, \\ f_{q}^2&:=-\sum _{k \in \Lambda _{r-2}} \alpha _{pk} f_k, \\ f_{j}^2&:=\alpha _{qj}f_{q}^2, \text { for all } j \in \Lambda _{r-1}{\setminus }\{q\}, \\ f_{\ell }^2&:=-\sum _{k \in \Lambda _{r-2}} \alpha _{pk} f_k; \\ f_{j}^2&:=\alpha _{\ell j}f_{\ell }^2, \text { for all } j \in \Lambda _{r}{\setminus }\{ \ell \}. \end{aligned}$$

We have that \(D^1(\Lambda _{2t-1})=\Lambda _{2t}\) and \(D^1(\Lambda _{2t})=\Lambda _{2t-1}\) for \(t \in \{1,\ldots , c-1\}\), \(D^1(\Lambda _{r-2})=\Lambda _{r-1}\cup \Lambda _{r}\) and \(D^1(\Lambda _{r-1})=D^1(\Lambda _{r})=\Lambda _{r-2}\). Furthermore, as in the previous case, we can reorder \(B'\) such that the structure matrix of \({\mathcal {A}}'\) relative to that basis is a block diagonal matrix \({\textrm{diag}}{(H_1,\ldots ,H_c)}\) where \(H_t\) is a matrix of the form (7), \(F_t\) of the form (13) for \(t\in \{1, \ldots , c-1\}\), \(H_c\) is of the form (8) and

$$\begin{aligned} F_c= \begin{pmatrix} 1 &{}\quad \alpha _{qq+1}&{}\quad \dots &{}\quad \alpha _{qs_{r-1}} \\ \alpha _{pp+1} &{}\quad \alpha _{pp+1}\alpha _{qq+1}&{}\quad \dots &{}\quad \alpha _{pp+1}\alpha _{qs_{r-1}} \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ \alpha _{ps_{r-2}} &{}\quad \alpha _{ps_{r-2}}\alpha _{qq+1}&{}\quad \dots &{}\quad \alpha _{ps_{r-2}}\alpha _{qs_{r-1}} \end{pmatrix}, \\F_{c+1}= \begin{pmatrix} 1 &{}\quad \alpha _{\ell \ell +1}&{}\quad \dots &{}\quad \alpha _{\ell s_{r}} \\ \alpha _{pp+1} &{}\quad \alpha _{pp+1}\alpha _{\ell \ell +1}&{}\quad \dots &{}\quad \alpha _{pp+1}\alpha _{\ell s_{r}} \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ \alpha _{ps_{r-2}}&{}\quad \alpha _{ps_{r-2}}\alpha _{\ell \ell +1}&{}\quad \dots &{}\quad \alpha _{ps_{r-2}}\alpha _{\ell s_{r}} \end{pmatrix}. \end{aligned}$$

Analogously to other case, if \(i,j \in \Lambda (j)\), we have \(e_i^2=\alpha _{ji}e_j^2 \text { and } f_i^2=\alpha _{ji}f_j^2\) and \(d_{ii}=0\) for every \(i \in \Lambda \). Consequently, \(\mathop {\textrm{Der}}\nolimits ({\mathcal {A}})=\mathop {\textrm{Der}}\nolimits ({\mathcal {A}}')\). \(\square \)

Remark 4.5

Thanks to the Corollary 3.2 since \({\mathcal {A}}'\) is a non-degenerate reducible evolution algebra, to compute the set of derivations of \({\mathcal {A}}\) is equivalent to compute the set of derivations over the evolution ideals \(I_{i}=\textrm{span}(\{e_j {:}\,j \in \Lambda _i \cup \Lambda _{i+s}\})\) for any \(i\in \{1,\ldots ,s-1\}\), \(I_{s}=\textrm{span}(\{e_j {:}\,j \in \Lambda _s \cup \Lambda _{2s}\})\) if \(r=2\,s\) and \(I_{s}=\textrm{span}(\{e_j {:}\,j \in \Lambda _s \cup \Lambda _{2\,s} \cup \Lambda _{2\,s+1}\})\) if \(r=2\,s+1\). So, we can reduce the dimension of evolution algebras whose space of derivations will be studied.

Proposition 4.6

Let \({\mathcal {A}}\) be a non-degenerate Volterra evolution algebra with a natural basis \(B=\{e_i\}_{i \in \Lambda }\) and \(\Lambda =\Lambda _1\cup \cdots \cup \Lambda _r\) a natural decomposition of \(\Lambda \) relative to B. Let \(\alpha _{ij} \in {{\mathbb {K}}}^{\times }\) such that \(e_j^2=\alpha _{ij}e_i^2\) for \(i,j\in \Lambda (j)\). Suppose that there exists \(i \in \Lambda \) such that for any \(j\in D^1(i)\) it is verifies that \( \sum _{k \in \Lambda (j)} \alpha _{jk}^3=0\) then \(e_i^2e_i^2=0\).

Proof

Let \(M_B=(\omega _{ij})\) be the structure matrix of \({\mathcal {A}}\) relative to B and \(i \in \Lambda \) such that for any \(j\in D^1(i)\) we have that \( \sum _{k \in \Lambda (j)} \alpha _{jk}^3=0\). Note that there exists \(\{\ell _1,\ldots ,\ell _t\} \subseteq D^1(i)\) such that \(D^1(i)=\Lambda ({\ell _1})\cup \ldots \cup \Lambda ({\ell _t})\) with \(\Lambda (\ell _h)\cap \Lambda (\ell _g)=\emptyset \) for \(h\ne g\). Then

$$\begin{aligned} \begin{array}{rclcl} \displaystyle e_i^2e_i^2 &{}=&{} \displaystyle \sum _{k \in \Lambda ({\ell _1})} w_{ik}^2 e_k^2+\ldots + \sum _{k \in \Lambda ({\ell _t})} w_{ik}^2 e_k^2\\ &{}=&{}\displaystyle \sum _{k \in \Lambda ({\ell _1})} w_{ki}^2\alpha _{\ell _1k} e_{\ell _1}^2+\ldots + \sum _{k \in \Lambda ({\ell _t})} w_{ki}^2\alpha _{\ell _tk} e_{\ell _t}^2 \\ &{}=&{} \displaystyle w_{\ell _1i}^2e_{\ell _1}^2\sum _{k \in \Lambda ({\ell _1})} \alpha _{\ell _1k}^3+\ldots + w_{\ell _ti}^2 e_{\ell _t}^2\sum _{k \in \Lambda ({\ell _t})} \alpha _{\ell _tk}^3. \end{array} \end{aligned}$$

Since \(\ell _{h}\in D^1(i)\) for \(h \in \{1,\ldots , t\}\) then by hypothesis \(\sum _{k \in \Lambda ({\ell _{1}})} \alpha _{\ell _1k}^3=\cdots =\sum _{k \in \Lambda ({\ell _{t}})} \alpha _{\ell _tk}^3=0.\) Therefore \(e_i^2e_i^2=0\). \(\square \)

Remark 4.7

Theorem 3.13 presents conditions for a non-degenerate evolution algebra to have only derivations with zero diagonal. If \({\mathcal {A}}\) is degenerate, then there always exists \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) with non-zero diagonal entries. Indeed, let \({\mathcal {A}}\) be a degenerate evolution algebra with a natural basis \(B=\{e_i\}_{i \in \Lambda }\) and \(\ell \in \Lambda \) such that \(e_{\ell }^2=0\). Consider the linear operator \(d=(d_{ij})\) defined by

$$\begin{aligned} d_{ij}=\left\{ \begin{array}{ll} 1, &{}\quad \text { if } i=j=\ell ,\\ 0, &{}\quad \text { if }i \ne \ell \text { or } j \ne \ell . \end{array} \right. \end{aligned}$$

Then the Eqs. (1) and (2) shows that \(d \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\). The next two results show conditions for a non-degenerate Volterra evolution algebra to have derivations with non-zero diagonal entries

Remark 4.8

Let \({\mathcal {A}}\) be a Volterra evolution algebra with a natural basis \(B=\{ e_i\}_{i \in \Lambda }\) and let \(\Lambda =\Lambda _1 \cup \ldots \cup \Lambda _r\) be a natural decomposition of \(\Lambda \) relative to B. Note that if there exists a path from i to j then \(\delta (i,\ell )=\delta (i,j)\) for all \(\ell \in \Lambda (j)\). Therefore, \(\delta (i,\Lambda (j))=\delta (i,j)\). Analogously, we have that \(\delta (\Lambda (i),\Lambda (j))=\delta (i,j)\).

Proposition 4.9

Let \({\mathcal {A}}\) be a non-degenerate Volterra evolution algebra with a natural basis \(B=\{e_i\}_{i \in \Lambda }\) and \(\Lambda =\Lambda _1\cup \cdots \cup \Lambda _r\) a natural decomposition of \(\Lambda \) relative to B. Assume that the associated graph \(E^B_{{\mathcal {A}}}\) does not have odd-length cycles. Moreover, suppose that there is \(i \in \Lambda \) such that \(\sum _{k \in \Lambda (j)} \alpha _{j k}^3=0\) for all \(j \in \Lambda \) with \(\delta (i,j)\) even. Then there exists \(d=(d_{ij}) \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) verifying \(d_{kk}\ne 0\) for any \(k \in D(i)\).

Proof

Firstly, we observe that if \(i \in \Lambda \) then either \(\Lambda _h \subseteq D(i)\) or \(\Lambda _h \cap D(i) =\emptyset \) for every \(h \in \{1,\ldots ,r\}\). Now, we can suppose without loss of generality that there exists a reordering of the natural decomposition in such a way that \(\Lambda =\Lambda _1 \cup \cdots \cup \Lambda _t\cup \Lambda _{t+1} \cup \cdots \cup \Lambda _{r}\) where \(i \in \Lambda _1\), \(\Lambda _h \subseteq D(i)\) for all \(h \in \{1,\dots , t\}\) and \(\Lambda _h \cap D(i)=\emptyset \) for all \(h \in \{t+1, \dots , r\}\). Let d be the linear map with diagonal matrix \(d={\textrm{diag}}({C_1,\ldots ,C_r})\) where \(C_k \in M_{|\Lambda _k|} ({{\mathbb {K}}})\) is defined as follows:

  • If \(k \in \{t+1,\dots , r\} \) then \(C_k:=0\).

  • If \(k \in \{1,\dots , t\}\) and \(\delta (i,\Lambda _k)\) is odd then \(C_k=:2 I_{|\Lambda _k|}\).

  • If \(k \in \{1,\dots , t\}\), \(\delta (i,\Lambda _k)\) is even and \(\Lambda _k=\{k_1, \dots , k_s\}\) then

    $$\begin{aligned} C_k:=\left( \begin{array}{ccccc} 1&{}\quad 0&{}\quad \dots &{}\quad 0&{}\quad -3\alpha _{k_sk_1}^2 \\ 0&{}\quad 1&{}\quad \dots &{}\quad 0&{}\quad -3\alpha _{k_sk_2}^2 \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots &{}\quad \vdots \\ 0&{}\quad 0&{}\quad \dots &{}\quad 1&{}\quad -3\alpha _{k_sk_{s-1}}^2 \\ 3\alpha _{k_sk_1}&{}\quad 3\alpha _{k_sk_2}&{}\quad \dots &{}\quad 3\alpha _{k_sk_{s-1}}&{}\quad 1 \end{array} \right) . \end{aligned}$$

To prove that \(d=(d_{ij}) \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) it is sufficient to verify that d satisfies the conditions of the Proposition 4.2. It is clear that the condition (i) of Proposition 4.2 holds.

Now we are going to verify that d satisfies the condition (ii) of Proposition 4.2. Let \(\ell ,j \in \Lambda \), \(\ell \ne j\) and \( \{\ell , j\} \subseteq \Lambda _k\). If \(k \in \{t+1,\dots ,r \}\) or \(k \in \{1,\dots ,t \}\) and \(\delta (i,\Lambda _k)\) is odd, then \(d_{\ell j}=d_{j \ell }=0\) by the definition of d. Now, observe that if \(\{ \ell ,j \} \subseteq \Lambda _k{{\setminus }} \{k_s\}\) where \(\Lambda _k=\{k_1, \dots , k_s \}\) and \(\delta (i,\Lambda _k)\) is even then \(d_{\ell j}=d_{j\ell }=0\). Finally, if \(\{ \ell ,j \}\cap \{k_s\}\ne \emptyset \) we can assume without loss of generality that \(\ell =k_s\). Then,

$$\begin{aligned} d_{\ell j}=d_{k_sj}=3\alpha _{k_sj}=3\alpha _{k_sj}\alpha _{k_sj}\alpha _{jk_s}=\alpha _{jk_s} 3\alpha _{k_sj}^2=-\alpha _{j\ell }d_{j\ell }. \end{aligned}$$

Next, we will show that d verifies the condition (iii) of Proposition 4.2. First, note that if \(k \in \{1,\dots , t\}\) and \(\delta (i,\Lambda _k)\) is odd, then \(\delta (i, \Lambda _{h})\) is even, for all \(\Lambda _{h}\) satisfying \(\delta (\Lambda _{h},\Lambda _k)=1\). Indeed, if we suppose that \(\delta (i, \Lambda _{k})\) and \(\delta (i,\Lambda _{h})\) are odd for some \(\Lambda _{h}\) with \(\delta (\Lambda _{h},\Lambda _k)=1\) then there are paths \(\mu \) from i to \(j_1\) and \(\sigma \) from i to \(j_2\), where \(j_1\in \Lambda _k\) and \(j_2 \in \Lambda _{h}\) such that \(|\mu |\) and \(|\sigma |\) are odd. As \(\delta (j_1, j_2)=1\) then we have a cycle of length \(|\mu |+|\sigma |+1\) which is odd, a contradiction. Analogously, if \(k \in \{1,\dots , t\}\) and \(\delta (i,\Lambda _k)\) is even, then \(\delta (i, \Lambda _{h})\) is odd for all \(\Lambda _{h}\) verifying \(\delta (\Lambda _{h},\Lambda _k)=1\). Now, let \(\ell , j \in \Lambda \) with \(\ell \in D^1(j)\). Observe that \(\Lambda (\ell )\cap \Lambda (j)=\emptyset \) because \({\mathcal {A}}\) is a Volterra evolution algebra and so \(\omega _{jj}=0\). We will distinguish several cases:

Case 1 If \( \ell \in \Lambda _1\cup \ldots \cup \Lambda _t \) and \(j \in \Lambda _{t+1} \cup \cdots \cup \Lambda _{r}\) then \(\ell \not \in D^1(j)\), which is a contradiction.

Case 2 If \(\ell , j \in \Lambda _{t+1} \cup \cdots \cup \Lambda _{r}\) then \(d_{\ell \ell }=d_{\ell j}=d_{j\ell }=0\) by definition and we get what we wanted.

Case 3 In this case we suppose that \(\delta (i, \Lambda (\ell ))\) is even. Necessarily \(\delta (i,\Lambda (j))\) is odd since \(\delta (\Lambda (j),\Lambda (\ell ))=1\). Thus \(d_{\ell \ell }=1\), \(d_{jj}=2\) and \(d_{kj}=0\) for all \(k \in \Lambda {\setminus } \{j\}\). Therefore

$$\begin{aligned} 2d_{\ell \ell }=2=\alpha _{jj}d_{jj}=\sum _{k \in \Lambda (j)} \alpha _{jk}d_{kj}. \end{aligned}$$

Case 4 Assume that \(\delta (i, \Lambda (\ell ))\) odd. As in the previous case, observe that \(\delta (i,\Lambda (j))\) is even. Thus, we have that \(d_{\ell \ell }=2\). Let \(\Lambda (j)=\{k_1, \dots , k_s\}\). We are going to consider two cases:

Case 4.1 If \(j\ne k_s\) then \(d_{jj}=1\), \(d_{k_sj}=3\alpha _{k_sj}\) and \(d_{kj}=0\) for \(k\in \Lambda {{\setminus }} \{j,k_s\}\). Then

$$\begin{aligned} \sum _{k \in \Lambda (j)} \alpha _{jk}d_{kj}=\alpha _{jj}d_{jj}+\alpha _{jk_s}d_{k_sj}=1+\alpha _{jk_s}3\alpha _{k_sj}=4=2d_{\ell \ell }. \end{aligned}$$

Case 4.2 If \(j=k_s\) then \(d_{k_sk_s}=1\) and \(d_{kk_s}=-3\alpha _{k_sk}^2\) for \(k\in \{k_1, \dots , k_{s-1}\}\). Then

$$\begin{aligned} \displaystyle \sum _{k \in \Lambda (j)} \alpha _{k_sk}d_{kk_s}= \alpha _{k_sk_s}d_{k_sk_s} - \sum _{\begin{array}{c} k \in \Lambda (j) \\ k\ne k_s \end{array}}\alpha _{k_sk}3\alpha _{k_sk}^2=1 -3 \sum _{\begin{array}{c} k \in \Lambda (j) \\ k\ne k_s \end{array}}\alpha _{k_sk}^3. \end{aligned}$$

Since \(\sum _{k \in \Lambda (j)} \alpha _{k_s k}^3=0\) we get that \( \sum _{\begin{array}{c} k \in \Lambda (j) \\ k\ne k_s \end{array}} \alpha _{k_sk}^3=-1\). Therefore,

$$\begin{aligned} \sum _{k \in \Lambda (j)} \alpha _{k_sk}d_{kk_s}=1-3\sum _{\begin{array}{c} k \in \Lambda (j) \\ k\ne k_s \end{array}}\alpha _{k_sk}^3=4=2d_{\ell \ell }. \end{aligned}$$

\(\square \)

The condition of having odd-length cycles can not be eliminated as shown the following example.

Example 4.10

Let \({\mathcal {A}}\) an evolution algebra with \(B=\{e_i\}_{i\in \Lambda }\) (\(\Lambda =\{1,\ldots ,7\}\)) natural basis and multiplication table \(e_1^2=e_2-e_3+e_4-e_5+e_6-e_7\), \(e_2^2=-e_3^2=-e_1+e_4-e_5\), \(e_4^2=-e_5^2=-e_1-e_2+e_3\) and \(e_6^2=-e_7^2=-e_1\). Since that \(M_B\) is skew-symmetric, then \({\mathcal {A}}\) is a Volterra evolution algebra. Consider a natural decomposition of \(\Lambda =\Lambda _1\cup \Lambda _2\cup \Lambda _3\cup \Lambda _4\) relative to B, where \(\Lambda _1=\{1\}\), \(\Lambda _2=\{2,3\}\), \(\Lambda _3=\{4,5\}\) and \(\Lambda _4=\{6,7\}\). Note that \(7\in \Lambda \) is such that \(\sum _{k \in \Lambda _g}\alpha ^3_{jk}=0\) for all \(j \in \Lambda (j \in \Lambda _g)\) with \(\delta (7,j)\) even. Therefore all hypotheses of Theorem 4.9 are verified, except that \(E_{{\mathcal {A}}}^B\) has odd length cycles. Furthermore, an easy computation shows that \(\mathop {\textrm{Der}}\nolimits ({\mathcal {A}})=\{0 \}\).

Proposition 4.11

Let \({\mathcal {A}}\) be a non-degenerate Volterra evolution algebra with a natural basis \(B=\{e_i\}_{i \in \Lambda }\), \(\Lambda =\Lambda _1\cup \cdots \cup \Lambda _r\) a natural decomposition of \(\Lambda \) relative to B and structure matrix \(M_B=(\omega _{ij})\). If there is \(i \in \Lambda \) such that \( \sum _{k \in \Lambda _{g}} \alpha _{jk}^3=0\) for all \(j \in D(i)\) where \(i\in \Lambda _{g},\) then there exists \(d=(d_{ij}) \in \mathop {\textrm{Der}}\nolimits ({\mathcal {A}})\) such that \(d_{kk}\ne 0\) for all \(k \in D(i)\).

Proof

First, we can reorder the natural decomposition in such a way that \(\Lambda =\Lambda _1 \cup \cdots \cup \Lambda _t\cup \Lambda _{t+1} \cup \cdots \cup \Lambda _{r}\), with \(D(i)=\Lambda _1 \cup \cdots \cup \Lambda _t\). Define \(d=(d_{ij})\) as the diagonal matrix \({\textrm{diag}}(C_1,\ldots ,C_r)\) where \(C_k \in M_{|\Lambda _k|} ({{\mathbb {K}}})\) is defined as below:

  • If \(k \in \{t+1, \dots , r\}\) then \(C_k:=0\).

  • If \(k \in \{1, \dots , t\}\) and \(\Lambda _k=\{k_1, \dots , k_s\}\) then

    $$\begin{aligned} C_k:=\left( \begin{array}{ccccc} 1&{}\quad 0&{}\quad \dots &{}\quad 0&{}\quad -\alpha _{k_sk_1}^2 \\ 0&{}\quad 1&{}\quad \dots &{}\quad 0&{}\quad -\alpha _{k_sk_2}^2 \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots &{}\quad \vdots \\ 0&{}\quad 0&{}\quad \dots &{}\quad 1&{}\quad -\alpha _{k_sk_{s-1}}^2 \\ \alpha _{k_sk_1}&{}\quad \alpha _{k_sk_2}&{}\quad \dots &{}\quad \alpha _{k_sk_{s-1}}&{}\quad 1 \end{array} \right) . \end{aligned}$$

In order to see that d is a derivation, we will prove that it satisfies the conditions (i)–(iii) of Proposition 4.2. Note that d verifies Proposition 4.2(i) by definition.

Let \(p,q \in \Lambda \), \(p \ne q\) and \(\{p,q\} \subseteq \Lambda _{h}\) for \(h \in \{1,\dots , r\}\). If \(h > t\) then \(d_{p q}=d_{q p }=0\). If \(h \le t \), we consider two cases.

Case 1 If \(\{p,q \} \subseteq \Lambda _{h}{{\setminus }} \{k_s\}\) then \(d_{p q}=d_{qp}=0\).

Case 2 If \(\{p,q \} \cap \{k_s\} \ne \emptyset \), assume, without loss of generality, that \(p=k_s\). Then

$$\begin{aligned} d_{p q}=d_{k_sq}=\alpha _{k_sq}=\alpha _{k_sq}(\alpha _{k_sq}\alpha _{qk_s})=\alpha _{qk_s} (\alpha _{k_sq}^2)=\alpha _{qk_s} (-d_{qk_s})=-\alpha _{qp}d_{qp}. \end{aligned}$$

Now, let \(p,q \in \Lambda \), \(q \in \Lambda (q)=\Lambda _{h}\) for some \(h \in \{1,\ldots , r\}\) and \(p \in D^1(q)\).

If \(h > t\), then \(d_{p p }=d_{kq}=0\) for all \(k \in \Lambda _{h}\) since \(p\notin D(i)\) otherwise \(q \in D(i)\) contradiction. So the condition (ii) of Proposition 4.2 is verified.

If \(h \le t\) therefore \(d_{qq}=1\). Moreover, \(p\in D(i)\) then \(d_{pp}=1\). Writing \(\Lambda _{h} =\{k_1,k_2,\dots , k_s\}\), we will distinguish two cases.

Case 1 If \(q\ne k_s\) then

$$\begin{aligned} \sum _{k \in \Lambda _{h}} \alpha _{qk}d_{kq}=d_{qq}+\alpha _{qk_s}d_{k_sq}=d_{qq}+\alpha _{qk_s}\alpha _{k_sq}=2. \end{aligned}$$

Case 2 If \(q = k_s\) then

$$\begin{aligned} \sum _{k \in \Lambda _{h}} \alpha _{k_sk}d_{kk_s}= 1+\sum _{\begin{array}{c} k \in \Lambda _{h} \\ k \ne k_s \end{array}} \alpha _{k_sk}(-\alpha _{k_sk}^2)= 1-\sum _{\begin{array}{c} k \in \Lambda _{h} \\ k \ne k_s \end{array}} \alpha _{k_sk}^3=2. \end{aligned}$$

In both cases, we have that \( 2d_{pp}=\sum _{k \in \Lambda _{h}} \alpha _{qk}d_{kq}.\) \(\square \)

5 The loops of an evolution algebra

By analogy with graph theory, we define when an element of a natural basis is called loop and then we start by studying what properties of this set is invariant under change of natural basis.

Definition 5.1

Let \({\mathcal {A}}\) be an evolution algebra with a natural basis \(B=\{e_i\}_{i\in \Lambda }\) and structure matrix \(M_B=(\omega _{ij})\). We say that \(e_i\) is a loop relative to the basis B if \(\omega _{ii}\not =0\). Otherwise, we say that \(e_i\) is a no-loop. We denote by \(\textrm{L}({\mathcal {A}},B)\) the set of loops and by \(\textrm{NL}({\mathcal {A}},B):=B{\setminus } \textrm{L}({\mathcal {A}},B)\) the set of no-loops.

Remark 5.2

If \({\mathcal {A}}\) is an evolution algebra with a natural basis \(B=\{e_i\}_{i\in \Lambda }\) then the following conditions are equivalent:

  • \(\textrm{L}({\mathcal {A}},B)=\emptyset .\)

  • \(i \notin \mathop {\textrm{supp}}\nolimits (e^{2}_i)\) for all \(i \in \Lambda \).

  • \(e_ie^{2}_i=0\) for all \(i\in \Lambda \).

Theorem 5.3

Let \({\mathcal {A}}\) be an evolution algebra with natural basis B and \(B'\). Let \(B=B_0\cup \cdots \cup B_r\) and \(B'=B'_0\cup \cdots \cup B'_r\) be natural decomposition of B and \(B'\) where \(B'\) is reordered in such a way that \(B'_0=B_0\) and \(B'_t \subseteq \textrm{span}( B_0 \cup B_t)\). Then \(B_t \subseteq \textrm{NL}({\mathcal {A}},B)\) if and only if \(B'_t \subseteq \textrm{NL}({\mathcal {A}},B')\).

Proof

Let \(B=\{e_i\}_{i\in \Lambda }\) and \(B'=\{f_i\}_{i\in \Lambda }\) and \(M_B=(\omega _{ij})\) and \(M_{B'}=(\omega '_{ij})\) the corresponding structure matrices. For \(B_0\) the affirmation is trivial. Let \(B_t\) with \(t\not =0\) such that \(B_t \subseteq \textrm{NL}({\mathcal {A}},B)\). Suppose, contrary to our claim, that there exists \(f_{j}\in B'_t \cap \textrm{L}({\mathcal {A}},B')\). Then according to Remark 5.2 we have that \(f_{j}^2f_{j}=\omega _{jj}'f_{j}^2\ne 0.\) Let \(e_{\ell }\in B_t\) and \(\alpha _{{{\ell }}k} \in {\mathbb {K}}^{\times }\) for \(k\in \Lambda _t\) such that \(e_{k}^2=\alpha _{{{\ell }}k}e_{{\ell }}^2\). Then \(D^1(k)=D^1({\ell })\), for \(k\in \Lambda _t\). On the other hand, using Remarks 2.2 and 2.5 we can write \(f_{j}=\sum _{k \in \Lambda _t}x_ke_k+\sum _{k \in \Lambda _0}x_ke_k\). Then

$$\begin{aligned} f_{j}^2=\sum _{k \in \Lambda _t}x_k^2e_k^2 =\sum _{k \in \Lambda _t}x_k^2\alpha _{{\ell }k}e_{{\ell }}^2=\beta \sum _{p \in D^1({\ell })} \omega _{{\ell }p}e_p, \end{aligned}$$

where \(\beta =\sum _{k \in \Lambda _t}x_k^2\alpha _{{\ell }k}\). Therefore

$$\begin{aligned} 0\ne f_{j}^2f_{j}= & {} f_{j}^2\left( \sum _{k \in \Lambda _t}x_ke_k+\sum _{k \in \Lambda _0}x_ke_k \right) =f_{j}^2\sum _{k \in \Lambda _t}x_ke_k \\= & {} \beta \left( \sum _{p \in D^1({\ell })} \omega _{{\ell }p}e_p\right) \left( \sum _{k \in \Lambda _t}x_ke_k \right) . \end{aligned}$$

Thus there exists \(e_{q} \in B_t\) such that \(q \in D^1(\ell )=D^1(q)\), that is, \(e_{q} \in \textrm{L}({\mathcal {A}},B)\), contrary to our assumption. The proof of the reciprocal statement is analogous. \(\square \)

Corollary 5.4

Let \({\mathcal {A}}\) be an evolution algebra. Assume that there exists a natural basis B of \({\mathcal {A}}\) satisfying some of the following conditions:

  1. (i)

    \({\mathcal {A}}\) has Property \(\mathrm{(2LI)}\).

  2. (ii)

    \(\textrm{L}({\mathcal {A}},B)=\emptyset \).

  3. (iii)

    \({\mathcal {A}}^2={\mathcal {A}}\).

  4. (iv)

    \({\mathcal {A}}\) is twin-free relative to B.

  5. (v)

    \({\mathcal {A}}\) is a Volterra evolution algebra relative to B.

Then \(|\textrm{L}({\mathcal {A}},B)|=|\textrm{L}({\mathcal {A}},B')|\) for all natural basis \(B'\).

Corollary 5.5

Let \({\mathcal {A}}\) be an evolution algebra with natural basis B and \(B'\). Then \(\textrm{L}({\mathcal {A}},B)=\emptyset \) if and only if \(\textrm{L}({\mathcal {A}},B')=\emptyset \).

However, the number of loops is not invariant under the natural base change as the following example shows.

Example 5.6

Consider the evolution algebra \({\mathcal {A}}\) with natural basis \(\{e_i\}_{i=1}^3\) such that \(e_1^2=e_2^2=e_2+e_3\) and \(e_3^2=e_1-e_2+e_3\). Observe that \(\textrm{L}({\mathcal {A}},B)= \{ e_2,e_3\}\). If we take another natural basis \(B'=\{f_i\}_{i=1}^3\) with \(f_1=e_1+e_2\), \(f_2=e_3\) and \(f_3=e_1-e_2\) then \(\textrm{L}({\mathcal {A}},B')=B'\).

Theorem 5.7

Let \({\mathcal {A}}\) be an evolution algebra with a natural basis \(B=\{e_i\}_{i\in \Lambda }\) and \(\Lambda =\Lambda _0\cup \Lambda _1\cup \ldots \cup \Lambda _r\) be a natural decomposition of \(\Lambda \) relative to B. If for all \(t\in \{1,\ldots ,r\}\) such that \(|\Lambda _t|>1\) we have that \(B_t \subseteq \textrm{NL}({\mathcal {A}},B)\) then \(\vert \textrm{L}({\mathcal {A}},B)\vert = \vert \textrm{L}({\mathcal {A}},B') \vert \) for any natural basis \(B'\) of \({\mathcal {A}}\).

Proof

Let \(B'=\{f_i\}_{i\in \Lambda }\) be a natural basis of \({\mathcal {A}}\). We define \(\Lambda ^1:= \bigcup _{\vert \Lambda _t \vert =1} \Lambda _t\). By our assumption, \(\textrm{L}({\mathcal {A}},B) \subseteq \{e_i {:}\,i \in \Lambda ^1\}\). Note that if \(i \in \Lambda ^1\) then, by Theorem 5.3, up to reordering, \(e_i \in \textrm{L}({\mathcal {A}},B)\) if and only if \(f_i \in \textrm{L}({\mathcal {A}},B')\). Therefore \(\vert \textrm{L}({\mathcal {A}},B) \vert =\vert \textrm{L}({\mathcal {A}},B') \vert \). \(\square \)

Theorem 5.8

Let \({\mathcal {A}}\) be an evolution algebra with a natural basis \(B=\{e_i\}_{i\in \Lambda }\). Consider a natural decomposition \(B=B_0\cup B_1\cup \cdots \cup B_r\) and suppose that there exists \(t \in \{1,\dots , r\}\) such that \(|B_t|>1\) and satisfies some of the following conditions

  1. (i)

    \(B_t\cap \textrm{L}({\mathcal {A}},B)\ne \emptyset \) and \(B_t\cap \textrm{NL}({\mathcal {A}},B)\ne \emptyset \).

  2. (ii)

    \(B_t \subseteq \textrm{L}({\mathcal {A}},B)\) and there exist \(e_{q},e_{p}\in B_t\) such that \(\alpha _{qp}\ne - \left( \frac{\omega _{qq}}{\omega _{qp}}\right) ^2\) where \(e_p^2=\alpha _{qp}e_q^2\).

  3. (iii)

    \(B_t \subseteq \textrm{L}({\mathcal {A}},B)\) and \(|B_t|>2\).

Then there is a natural basis \(B'\) such that \(|\textrm{L}({\mathcal {A}},B)|\ne |\textrm{L}({\mathcal {A}},B')|\).

Proof

First, assume that \(B_t\) satisfies (i). Let \(e_{i} \in B_t\cap \textrm{L}({\mathcal {A}},B) \) and \(e_{j} \in B_t\cap \textrm{NL}({\mathcal {A}},B)\). Let \(\alpha _{ij}\in {\mathbb {K}}^{\times }\) such that \(e_{j}^2=\alpha _{ij}e_{i}^2\) and \(\gamma \in {\mathbb {K}}{{\setminus }}\{0,1\}\) such that \(\gamma ^2\ne \frac{-1}{\alpha _{ij}}\). Then \(\omega _{i j}=\frac{1}{\alpha _{ij}}\omega _{jj}=0\). Consider the basis \(B'=\{f_k\}_{k\in \Lambda }\) where

$$\begin{aligned} f_k=\left\{ \begin{array}{ll} e_k,&{}\quad \text {if } k \ne i, j, \\ e_{i}+\gamma e_{j},&{}\quad \text {if } k=i, \\ -\gamma \alpha _{ij} e_{i}+e_{j},&{}\quad \text {if } k=j. \end{array}\right. \end{aligned}$$

Note that \(f_{i}f_{j}=-\gamma \alpha _{ij}e_{i}^2+\gamma e_{j}^2=-\gamma \alpha _{ij}e_{i}^2+\gamma \alpha _{ij}e_{i}^2=0.\) So, \(B'\) is a natural basis for \({\mathcal {A}}\). Observe now that \(f_kf_k^2=0\) if and only if \(e_ke_k^2=0\) for all \(k \in \Lambda {{\setminus }}\{i, j\}\). Now we will prove that \(f_i f_i^2 \ne 0\) and \(f_jf_j^2 \ne 0\). Indeed,

$$\begin{aligned} e_{i}e_{i}^2=\omega _{ii}e^{2}_{i},\, e_{j}e_{j}^2=e_{j}e_{i}^2=0, f_{i}^2=(1+\alpha _{ij}\gamma ^2)e^{2}_{i}\text { and } f_{j}^2=(\alpha _{ij}+\alpha _{ij}^2\gamma ^2)e^{2}_{i}. \end{aligned}$$

Then

$$\begin{aligned} \begin{array}{lclclcl} f_{i}f_{i}^2&{}=&{}(e_{i}+\gamma e_{j})(1+\alpha _{ij}\gamma ^2)e_{i}^2 =(1+\alpha _{ij}\gamma ^2)\omega _{i i}e_{i}^2 \not = 0\\ f_{j}f_{j}^2 &{}=&{}(-\gamma \alpha _{ij} e_{i}+e_{j})(\alpha _{ij}+\alpha _{ij}^2\gamma ^2)e^{2}_{i}={-\gamma \alpha _{ij}}(\alpha _{ij}+\alpha _{ij}^2\gamma ^2) \omega _{i i}e^{2}_{i}\not =0 \end{array} \end{aligned}$$

Therefore \(|\textrm{L}({\mathcal {A}},B)|=|\textrm{L}({\mathcal {A}},B')|+1.\)

Now, assume that \(B_t\) satisfies (ii). Define \(\gamma := -\alpha _{qp}\frac{\omega _{qp}}{\omega _{qq}}\) and \(\beta :=\frac{\omega _{qp}}{\omega _{qq}}\). Consider the set \(B'=\{f_k\}_{k\in \Lambda }\) where

$$\begin{aligned} f_k=\left\{ \begin{array}{ll} e_k,&{}\quad \text {if } k \ne q,p, \\ \gamma e_{q}+ e_{p},&{}\quad \text {if } k=q, \\ e_{q}+\beta e_{p},&{}\quad \text {if } k=p. \end{array}\right. \end{aligned}$$

By hypotheses \(\gamma \beta \ne 1\) then \(B'\) is a basis for \({\mathcal {A}}\). Similarly to item (i), \(f_kf_k^2=0\) if and only if \(e_ke_k^2=0\) for all \(k \in \Lambda {{\setminus }} \{q,p\}\). Therefore

$$\begin{aligned} f_{q}f_{q}^2= & {} (\gamma e_{q}+ e_{p})(\gamma ^2+\alpha _{qp})e_{q}^2 =(\gamma ^2+\alpha _{qp})(\gamma \omega _{qq} e_{q}^2+\omega _{qp}e_{p}^2) \\= & {} (\gamma ^2+\alpha _{qp})(\gamma \omega _{qq}+\omega _{qp}\alpha _{qp})e_{q}^2=0. \end{aligned}$$

So \(|\textrm{L}({\mathcal {A}},B')|<|\textrm{L}({\mathcal {A}},B)|\).

Finally, assume that \(B_t\) satisfies (iii). Suppose that \(\alpha _{ji}=-\left( \frac{\omega _{jj}}{\omega _{ji}}\right) ^2\) for all \(j, i \in \Lambda _t\). Then we will get a contradiction. Indeed, let \(q,p,\ell \in \Lambda _t\). Since \(\alpha _{qp}=-\frac{\omega _{qq}^2}{\omega _{qp}^2}\) then \(\omega _{pq}=-\frac{\omega _{qq}^3}{\omega _{qp}^2}\) and analogously \(\omega _{\ell q}=-\frac{\omega _{qq}^3}{\omega _{qt}^2}\). Consequently \(\omega _{pp}=-\frac{\omega _{qq}^2}{\omega _{qp}}\) and \(\omega _{p\ell }=-\omega _{q\ell }\frac{\omega _{qq}^2}{\omega _{qp}^2}\). Moreover, using that \(\alpha _{p\ell }=-\frac{\omega _{pp}^2}{\omega _{p\ell }^2}\) we get that \(\omega _{tq}=\alpha _{pt}\omega _{pq}=\frac{\omega _{qq}^3}{\omega _{q\ell }^2}\), which is a contradiction. Therefore there exist \(q,p \in \Lambda _t\) such that \(\alpha _{qp}\ne - \frac{\omega _{qq}^2}{\omega _{qp}^2}\) and the affirmation follows from item (ii). \(\square \)

Proposition 5.9

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra and \(B=\{e_i\}_{i\in \Lambda }\) a natural basis of \({\mathcal {A}}\). Consider a natural decomposition \(B=B_1\cup \cdots \cup B_r\) and suppose that \(|B_s|\le 2\) for all \(s \in \{1,\dots , r \}\) such that \(B_s\cap L({\mathcal {A}},B)\ne \emptyset \). If for every \(B_t\), with \(|B_t|=2\), some of the following conditions is satisfied:

  1. (i)

    \(B_t \subseteq \textrm{NL}({\mathcal {A}},B)\),

  2. (ii)

    \(B_t \subseteq \textrm{L}({\mathcal {A}},B)\) and \(\alpha _{jk}=-\left( \frac{\omega _{jj}}{\omega _{jk}}\right) ^2\) for all \(j, k \in \Lambda _t\) where \(e_k^2=\alpha _{jk}e_j^2\),

then \(|\textrm{L}({\mathcal {A}},B)|=|\textrm{L}({\mathcal {A}},B')|\) for all natural basis \(B'\) of \({\mathcal {A}}\).

Proof

Let \(\Lambda = \Lambda _1\cup \ldots \cup \Lambda _r\) be a natural decomposition of \(\Lambda \) relative to B. Let us define

$$\begin{aligned} \Lambda ^1:= \bigcup _{\vert \Lambda _t \vert =1}\Lambda _t, \, \Lambda ^2:= \bigcup _{\begin{array}{c} | \Lambda _t | =2 \\ B_t \subseteq \textrm{L}({\mathcal {A}},B) \end{array}} \Lambda _t \, \text { and } \,\Lambda ^3:= \bigcup _{\begin{array}{c} | \Lambda _t | \ge 2 \\ B_t \subseteq \textrm{NL}({\mathcal {A}},B) \end{array}} \Lambda _t. \end{aligned}$$

Suppose, contrary to our claim, that there is a natural basis \(B'=\{f_k\}_{k \in \Lambda }\) of \({\mathcal {A}}\) such that \(|\textrm{L}({\mathcal {A}},B')|\ne |\textrm{L}({\mathcal {A}},B)|\). Let \(B'=B'_1\cup \cdots \cup B'_r\) be a natural decomposition, ordered in such a way that \(B'_t \subseteq \textrm{span}(B_t)\) for any t and let \(M_{B'}=(\omega _{kj}')\) be the structure matrix of \({\mathcal {A}}\) relative to \(B'\). By Theorem 5.3 we have that \(\big |\{ k \in \Lambda ^1{:}\,\omega _{kk}'\ne 0\} \big |= \big |\{ k \in \Lambda ^1{:}\,\omega _{kk}\ne 0\} \big |\) and \(\omega _{jj}'=0\) for all \(j \in \Lambda ^3\). Therefore there exists \(h\in \{1,\dots , r\} \) such that \(B_h=\{e_{i},e_{\ell }\}\subseteq \textrm{L}({\mathcal {A}},B)\) and \(B_h'=\{f_{k},f_{j}\}\not \subseteq \textrm{L}({\mathcal {A}},B')\). Without loss of generality, we assume that \(f_{k}f_{k}^2= 0\). Then we have that

$$\begin{aligned} f_{k}=x_{11}e_{i}+x_{12}e_{\ell } \text { and } f_{j}=x_{21}e_{i}+x_{22}e_{\ell }, \end{aligned}$$

where \(x_{ij} \in {{\mathbb {K}}}\). Consequently, using that \(e_{\ell }^2=\alpha _{i\ell }e^2_{i}\), \(e_{i}e_{i}^2=\omega _{ii}e^2_{i}\) and \(e^{2}_{i}e_{\ell }=\omega _{i\ell }e_{\ell }^2\) it follows that

$$\begin{aligned} f_{k}f_{k}^2= & {} (x_{11}e_{i}+x_{12}e_{\ell })(x_{11}^2+x_{12}^2\alpha _{i\ell })e_{i}^2 \nonumber \\= & {} (x_{11}^2+x_{12}^2\alpha _{i\ell })(x_{11}\omega _{ii}e_{i}^2+x_{12}\omega _{i\ell }e_{\ell }^2)\nonumber \\= & {} (x_{11}^2+x_{12}^2\alpha _{i\ell })(x_{11}\omega _{ii}+x_{12}\omega _{i\ell }\alpha _{i\ell })e_{i}^2=0. \end{aligned}$$
(14)

As \(f_{k}^2\ne 0\) then \(x_{11}^2+x_{12}^2\alpha _{i\ell }\ne 0 \). Thus

$$\begin{aligned} x_{11}\omega _{ii}-x_{12}\omega _{i\ell }\frac{\omega _{ii}^2}{\omega _{i\ell }^2}=\omega _{ii}\left( x_{11}-x_{12}\frac{\omega _{ii}}{\omega _{i\ell }}\right) =0, \end{aligned}$$

where we use that, by hypotheses, \(\alpha _{i\ell }=-\frac{\omega _{ii}^2}{\omega _{i\ell }^2}\). The fact that \(\omega _{ii} \ne 0\) implies \(x_{11}=\frac{\omega _{ii}}{\omega _{i\ell }}x_{12}\). Therefore \(x_{11}x_{12} \ne 0\) because \(f_k \in B^{\prime }\). On the other hand, since \(B'\) is a natural basis

$$\begin{aligned} f_{k}f_{j} =x_{11}x_{21}e_{i}^2+x_{12}x_{22}e_{\ell }^2=(x_{11}x_{21}+x_{12}x_{22}\alpha _{i\ell })e_{i}^2=0. \end{aligned}$$
(15)

Now, by Eq. (15) we obtain that

$$\begin{aligned} x_{21}=\frac{x_{12}x_{22}}{x_{11}}\frac{\omega _{ii}^2}{\omega _{i\ell }^2}=x_{12}x_{22}\frac{\omega _{ii}^2}{\omega _{i\ell }^2}\frac{\omega _{i\ell }}{x_{12}\omega _{ii}}=\frac{\omega _{ii}}{\omega _{i\ell }}x_{22}. \end{aligned}$$

Finally, we conclude that

$$\begin{aligned} x_{11}x_{22}-x_{12}x_{21}=x_{12}\frac{\omega _{ii}}{\omega _{i\ell }}x_{22}-x_{12}\frac{\omega _{ii}}{\omega _{i\ell }}x_{22}=0. \end{aligned}$$

Therefore \(f_{k}\) and \(f_{j}\) are linearly dependent, which is a contradiction. \(\square \)

Proposition 5.10

Let \({\mathcal {A}}\) be an evolution algebra with a natural basis \(B=\{e_i\}_{i \in \Lambda }\) such that the structure matrix \(M_B=(\omega _{ij})\) satisfies \(\omega _{ij}=0\) if and only if \(\omega _{ji}=0\), for all \(i,j \in \Lambda \), \(i\not =j\). Consider the natural decomposition \(\Lambda =\Lambda _0\cup \cdots \cup \Lambda _r\) relative to B. Suppose that \(e_i \in \textrm{NL}({\mathcal {A}},B)\). Then \(e_j \in \textrm{NL}({\mathcal {A}},B)\) for every \(j \in \Lambda {(i)}\).

Proof

Since \(\omega _{ii}=0\) and \(\textrm{rk}(\{e_i^2,e_j^2\})=1\) we get that \(\omega _{ji}=0\). By symmetry \(\omega _{ij}=0\). Again, as \(\textrm{rk}(\{e_i^2,e_j^2\})=1\) then \(\omega _{jj}=0\). \(\square \)

Remark 5.11

If A is an evolution algebra and B is a natural basis satisfying the assumptions of the previous proposition and \(B=B_0 \cup \cdots \cup B_r \) is a natural decomposition then either \(B_t \subseteq \textrm{L}({\mathcal {A}},B)\) or \(B_t \subseteq \textrm{NL}({\mathcal {A}},B)\) for every \(t \in \{0,1,\ldots ,r\}\).

Corollary 5.12

Let \({\mathcal {A}}\) be a non-degenerate evolution algebra with a natural basis \(B=\{e_i\}_{i\in \Lambda }\). Consider a natural decomposition \(B= B_1\cup \cdots \cup B_r\). Then the number of loops in \({\mathcal {A}}\) is invariant by change of natural basis if \(|B_t|\le 2\) for all \(t \in \{1,\dots ,r \}\) such that \(B_t\cap \textrm{L}({\mathcal {A}},B)\ne \emptyset \) and for every s such that \(|B_s|=2\), some of the following conditions is satisfied:

  1. (i)

    \(B_s \subseteq \textrm{NL}({\mathcal {A}},B),\)

  2. (ii)

    \(B_s \subseteq \textrm{L}({\mathcal {A}},B)\) and \(\alpha _{jk}=-\left( \omega _{jj} /\omega _{jk}\right) ^2\) for all \(j, k \in \Lambda _s\) where \(e_k^2=\alpha _{jk}e_j^2\).

Otherwise the number of loops of \({\mathcal {A}}\) depend of the natural basis.

Proof

The statement that the number of loops is invariant by the change of base follows from Proposition 5.9. On the other hand, by Theorem 5.8, in any other case the number of loops in \({\mathcal {A}}\) depends on the natural basis. \(\square \)