1 Introduction and Preliminaries

Let \({\mathcal {A}}\) and \({\mathcal {B}}\) be complex Banach algebras and \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) be a linear map. Then, \(\varphi \) is called an n-homomorphism if for all \(a_1, a_2, \ldots , a_n\in {\mathcal {A}}\),

$$\begin{aligned} \varphi (a_1a_2\ldots a_n)=\varphi (a_1)\varphi (a_2)\ldots \varphi (a_n). \end{aligned}$$

The concept of an n-homomorphism was studied for complex algebras in Bračič and Moslehian (2007) and Hejazian et al. (2005). A linear map \(\varphi \) between Banach algebras \({\mathcal {A}}\) and \({\mathcal {B}}\) is called an n-Jordan homomorphism if \(\varphi (a^n)=\varphi (a)^n\), for all \(a\in {\mathcal {A}}\). This notion was introduced by Herstein (1956).

A 2-homomorphism (2-Jordan homomorphism) is called simply a homomorphism (Jordan homomorphism). It is clear that every n-homomorphism is an n-Jordan homomorphism, but in general the converse is false. The connection of Jordan homomorphisms and homomorphisms was firstly studied in Jacobson and Rickart (1950). There are plenty of known examples of n-Jordan homomorphism which are not n-homomorphism. For \(n=2\), it is proved in Jacobson and Rickart (1950) that some Jordan homomorphism on the polynomial rings cannot be homomorphism.

It is shown in Gordji (2009) that every n-Jordan homomorphism between two commutative Banach algebras is an n-homomorphism for \(n\in \lbrace 3,4\rbrace \). Note that for \(n=2\), the proof is clear. Lee (2013) and Gselmann (2014) generalized this result and proved it for all \(n\in {\mathbb {N}}\). Later, this problem was solved in Bodaghi and İnceboz (2018) based on the property of the Vandermonde matrix, which is different from the methods that are used in Gselmann (2014) and Lee (2013).

Obviously, each homomorphism is an n-homomorphism for every \(n\geqslant 2\), but the converse does not hold in general. For instance, if \(h:{\mathcal {A}}\longrightarrow {\mathcal {B}}\) is a homomorphism, then \(g:= -h\) is a 3-homomorphism which is not a homomorphism Bračič and Moslehian (2007).

Zelazko (1968) presented the following result [see also Miura et al. (2005)].

Theorem 1.1

Suppose that \({\mathcal {A}}\) is a Banach algebra, which need not be commutative, and suppose that \({\mathcal {B}}\) is a semisimple commutative Banach algebra. Then, each Jordan homomorphism \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) is a homomorphism.

This result has been proved by the author in Zivari-Kazempour (2016) for 3-Jordan homomorphism with the additional hypothesis that the Banach algebra \({\mathcal {A}}\) is unital. In other words, he presented the next theorem.

Theorem 1.2

Suppose that \({\mathcal {A}}\) is a unital Banach algebra, which need not be commutative, and suppose that \({\mathcal {B}}\) is a semisimple commutative Banach algebra. Then, each 3-Jordan homomorphism \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) is a 3-homomorphism.

After that, An (2018) extended the above theorem for all \(n\in {\mathbb {N}}\) and showed that for unital ring \({\mathcal {A}}\) and ring \({\mathcal {B}}\) with char(\({\mathcal {B}}\))\(>n\), every n-Jordan homomorphism from \({\mathcal {A}}\) into \({\mathcal {B}}\) is an n-homomorphism (n-anti-homomorphism) provided that every Jordan homomorphism from \({\mathcal {A}}\) into \({\mathcal {B}}\) is a homomorphism (anti-homomorphism).

For non-unital Banach algebra \({\mathcal {A}}\), Bodaghi and İnceboz in Bodaghi and İnceboz (2019) proved Theorem 1.2 for \(n\in \{3,4\}\) by considering an extra condition that \(\varphi ([a^2,b])=0\), for all \(a,b\in {\mathcal {A}}\), where \([a,b]=ab-ba\) is the Lie product of a and b.

The following theorem is a well-known result, due to \(\check{\text {S}}\)ilov, concerning the automatic continuity of homomorphisms between Banach algebras Bonsall and Duncan (1973).

Theorem 1.3

(Dales (2000), Theorem 2.3.3) Let \({\mathcal {A}}\) and \({\mathcal {B}}\) be Banach algebras such that \({\mathcal {B}}\) is commutative and semisimple. Then, every homomorphism\(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) is automatically continuous.

In 1967, a classical result of B. E. Johnson shows that if \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) is a surjective homomorphism between a Banach algebra \({\mathcal {A}}\) and a semisimple Banach algebra \({\mathcal {B}}\), then \(\varphi \) is automatically continuous. Then, the Johnson’s result was extended to n-homomorphism in Honari and Shayanpour (2010), with the extra condition that the Banach algebra \({\mathcal {B}}\) is factorizable, and then it was extended to non-factorizable Banach algebras in Gordji et al. (2015).

In Hejazian et al. (2005), the authors asked whether every \(*\)-preserving n-homomorphism between \(C^*\)-algebras is continuous. For \(n=3\), Bračič and Moslehian (2007) responded to the above question and presented the next result.

Theorem 1.4

Let \({\mathcal {A}}\) and \({\mathcal {B}}\) be \(C^*\) -algebras and \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) be an involution-preserving 3-homomorphism. Then \(\varphi \) is norm decreasing.

By Theorem 1.4, every involution-preserving 3-homomorphism between \(C^*\)-algebras is continuous. For any arbitrary natural number n, this question solved by Park and Trout (2009), in the affirmative by proving that every involutive n-homomorphism between \(C^*\)-algebras is norm contractive.

Homomorphisms and their automatic continuity of Banach algebras have been widely studied by many authors. One may refer to the monographs of Dales (2000), Jarosz (1985) and Palmer (1994). Some significant results concerning Jordan homomorphisms and their automatic continuity on Banach algebras obtained by the author in Zivari-Kazempour (2016, 2018a, b).

In Sect. 2, we investigate the automatic continuity of n-Jordan homomorphism and we show that every 3-Jordan homomorphism from a Banach algebra \({\mathcal {A}}\) into a commutative semisimple Banach algebra \({\mathcal {B}}\) is continuous. We also prove the same result for n-Jordan homomorphism (\(n\geqslant 4\)) with the additional hypothesis that the Banach algebra \({\mathcal {A}}\) is unital. As a direct consequence, we obtain the automatic continuity of n-homomorphisms.

In Sect. 3, for \(n\in \lbrace 2,3,4\rbrace \), under certain conditions we show that each n-Jordan homomorphism between algebras \({\mathcal {A}}\) and \({\mathcal {B}}\) is an n-homomorphism.

2 Automatic Continuity of n-Jordan Homomorphisms

A Banach algebra \({\mathcal {A}}\) is called n-functionally continuous, if every n-multiplicative linear functional on \({\mathcal {A}}\) is continuous, and it is called n-Jordan functionally continuous, if every n-Jordan linear functional on \({\mathcal {A}}\) is continuous.

A 2-functionally continuous (2-Jordan functionally continuous) algebra is just functionally continuous (Jordan functionally continuous), in the usual sense.

Theorem 2.1

(Shayanpour et al. (2015), Corollary 2.2) A topological algebra \({\mathcal {A}}\) is n-functionally continuous if and only if it is functionally continuous.

By Theorems 1.3 and 2.1, every Banach algebra \({\mathcal {A}}\) is n-functionally continuous.

Theorem 2.2

(Zivari-Kazempour (2018b), Proposition 2.1) Let \({\mathcal {A}}\) be a Banach algebra. Then, every Jordan functional\(\varphi :{\mathcal {A}}\longrightarrow {\mathbb {C}}\) is norm decreasing and hence it is continuous.

By the above theorem, every Banach algebra \({\mathcal {A}}\) is Jordan functionally continuous. Furthermore, if \(\varphi \) is a Jordan homomorphism from a Banach algebra \({\mathcal {A}}\) into a commutative semisimple Banach algebra \({\mathcal {B}}\), then \(\varphi \) is continuous. The following question can be raised for \(n\geqslant 3\).

Is every Banach algebra \({\mathcal {A}}\) n -Jordan functionally continuous?

Recently, the author has proved that if \({\mathcal {A}}\) and \({\mathcal {B}}\) are unital Banach algebras, where \({\mathcal {B}}\) is commutative and semisimple, then every unital n-Jordan homomorphism \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}} \) is automatically continuous [see Corollary 2.9 of Zivari-Kazempour (2018b)]. Thus, the answer of this question is affirmative with the extra condition that the mapping \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) is unital.

In the next result, which is the main one in the paper, we present the positive answer to this question for \(n=3\).

Theorem 2.3

Every Banach algebra \({\mathcal {A}}\) is 3-Jordan functionally continuous.

Proof

Let \(\varphi :{\mathcal {A}}\longrightarrow {\mathbb {C}}\) be a 3-Jordan functional. Then \(\varphi (x^3)=\varphi (x)^3\), for all \(x\in {\mathcal {A}}\). Replacing x by \(x+y\), we get

$$\begin{aligned}&\varphi (xy^2+y^2x+x^2y+yx^2+xyx+yxy)\nonumber \\&\quad =\,3\varphi (x)\varphi (y)^2+ 3\varphi (x)^2\varphi (y), \end{aligned}$$
(1)

and switching x by \(-x\), in (1), gives

$$\begin{aligned}&\varphi (-xy^2-y^2x+x^2y+yx^2+xyx-yxy)\nonumber \\&\quad =-3\varphi (x)\varphi (y)^2+3\varphi (x)^2\varphi (y). \end{aligned}$$
(2)

By (1) and (2), we have

$$\begin{aligned} \varphi (x^2y+xyx+yx^2)=3\varphi (x)^2\varphi (y), \end{aligned}$$
(3)

for all \(x,y\in {\mathcal {A}}\).

Suppose that there exist \(a\in {\mathcal {A}}\) such that \(\Vert a\Vert <1\) and \(\varphi (a)=1\). Take \(b=\sum _{n=1}^\infty a^{n}\). Then, \(a^2b=aba=ba^2=b-a-a^2\) and so by (3) we get

$$\begin{aligned} \varphi (b-a-a^2)= & {}\, \varphi (a^2b)=\frac{1}{3}\varphi \big ( a^2b+aba+ba^2\big )\\= & {} \frac{1}{3}\big (3\varphi (a)^2\varphi (b)\big )=\varphi (b). \end{aligned}$$

Thus, \(\varphi (a^2)=-\varphi (a)=-1\). Let X be a Banach subalgebra of \({\mathcal {A}}\), generated by the above element a of norm \(\Vert a\Vert <1\). For all \(x\in X\), define \(\psi :X\longrightarrow {\mathbb {C}}\) by \(\psi (x):=\varphi (x)\). Then, \(\psi \) is a 3-Jordan functional, that is \(\psi (x^3)=\psi (x)^3\), for all \(x\in X\). Since X is commutative, we obtain

$$\begin{aligned} \psi (xyz)=\psi (x)\psi (y)\psi (z), \end{aligned}$$
(4)

for all \(x,y,z\in X\). Replacing z by \(a^2\) in (4) gives

$$\begin{aligned} \psi (xya^2)=-\psi (x)\psi (y), \end{aligned}$$
(5)

for all \(x,y\in X\). Since \(\psi (a)=1\), by (4) and (5), we have

$$\begin{aligned} \psi (x)\psi (ay)&= {} \psi (x)\psi (ay)\psi (a)\\&= {} \psi (xaya)=\psi (xya^2)=-\psi (x)\psi (y), \end{aligned}$$

and since \(\psi \ne 0\) we get \(\psi (ay)=-\psi (y)\), for all \(y\in X\). As such

$$\begin{aligned} \psi (x)\psi (y)=\psi (a)\psi (x)\psi (y)=\psi (axy)=-\psi (xy), \end{aligned}$$

for all \(x,y\in X\). Consequently, \(-\psi \) is a multiplicative linear functional, and hence, it is continuous with \(\Vert \psi \Vert \leqslant 1\). This is a contradiction with \(\Vert a\Vert <1\) and \(\psi (a)=1\). Thus, for all \(a\in {\mathcal {A}}\) with \(\Vert a\Vert \leqslant 1\), we have \(\vert \varphi (a)\vert \leqslant 1\). Therefore, \(\varphi \) is norm decreasing, and hence, it is continuous. This finishes the proof. \(\square \)

Corollary 2.4

Let \(\varphi \) be a 3-Jordan homomorphism from a Banach algebra \({\mathcal {A}}\) into a commutative semisimple Banach algebra \({\mathcal {B}}\) . Then, \(\varphi \) is automatically continuous.

Proof

Let \(h\in {\mathfrak {M}}({\mathcal {B}})\), where \({\mathfrak {M}}({\mathcal {B}})\) is the maximal ideal space of \({\mathcal {B}}\). Then, \(h\circ \varphi :{\mathcal {A}}\longrightarrow {\mathbb {C}}\) is a 3-Jordan homomorphism and so it is automatically continuous by Theorem 2.3. Now suppose that \(a_n\subseteq {\mathcal {A}}\), \(a_n\longrightarrow 0\) and \(\varphi (a_n)\longrightarrow b\). Hence,

$$\begin{aligned} h(b)=\lim _n h (\varphi (a_n))=\lim _n h\circ \varphi (a_n)=0. \end{aligned}$$

Therefore, \(h(b)=0\), for each \(h\in {\mathfrak {M}}({\mathcal {B}})\). Since \({\mathcal {B}}\) is semisimple, we have \(b=0\). Thus, \(\varphi \) is continuous by the closed graph theorem. \(\square \)

Since every \(C^*\)-algebra is semisimple, we deduce the next result.

Corollary 2.5

Every 3-Jordan homomorphism from a Banach algebra \({\mathcal {A}}\) into a commutative \(C^*\) -algebra \({\mathcal {B}}\) is automatically continuous.

From Corollary 2.4, we have the following result.

Corollary 2.6

Let \(\varphi \) be a 3-homomorphism from a Banach algebra \({\mathcal {A}}\) into a commutative semisimple Banach algebra \({\mathcal {B}}\) . Then, \(\varphi \) is automatically continuous.

Now we generalize Theorem 2.3, for \(n\geqslant 4\), with the additional hypothesis that the Banach algebra \({\mathcal {A}}\) is unital.

Theorem 2.7

Every unital Banach algebra \({\mathcal {A}}\) is n-Jordan functionally continuous.

Proof

Suppose that \(\varphi :{\mathcal {A}}\longrightarrow {\mathbb {C}}\) is an n-Jordan homomorphism. Then, by Corollary 2.5 of An (2018), \(\varphi \) is an n-homomorphism. Now it follows from Theorems 1.3 and 2.1 that \(\varphi \) is automatically continuous. Thus, \({\mathcal {A}}\) is n-Jordan functionally continuous. \(\square \)

The next result generalizes Corollary 2.5 of An (2018), without surjectivity condition.

Corollary 2.8

Let \(\varphi \) be an n-Jordan homomorphism from a unital Banach algebra \({\mathcal {A}}\) into a commutative semisimple Banach algebra \({\mathcal {B}}\) . Then, \(\varphi \) is automatically continuous.

Since every n-Jordan homomorphism from commutative Banach algebra \({\mathcal {A}}\) into \({\mathbb {C}}\) is an n-homomorphism Bodaghi and İnceboz (2018), we have the following.

Theorem 2.9

Let \({\mathcal {A}}\) be a commutative Banach algebra. Then, \({\mathcal {A}}\) is n-Jordan functionally continuous.

Corollary 2.10

Let \({\mathcal {A}}\) and \({\mathcal {B}}\) be two commutative Banach algebra, and let \({\mathcal {B}}\) be semisimple. Then, every n-Jordan homomorphism \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) is automatically continuous.

The following result has been proved for the case \(n=2\) and \(n=3\) in Zivari-Kazempour (2018b), Theorem 2.7, and it was claimed that the result can be established for \(n\geqslant 4\), by a similar discussion. We give a short proof for the general case \(n\in {\mathbb {N}}\) as follows:

Theorem 2.11

Every unital \((n+1)\) -Jordan homomorphism \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}} \) is an n-Jordan homomorphism.

Proof

We firstly have

$$\begin{aligned} \varphi ((a+me)^{n+1})=(\varphi (a+me))^{n+1} \end{aligned}$$
(6)

for all \(a,b\in {\mathcal {A}}\), where m is an integer with \(1\leqslant m\leqslant n\) and e is the unit of \({\mathcal {A}}\). It follows from the equality (6) and assumption that

$$\begin{aligned} \sum _{i=1}^{n}m^{n+1-i}\left( {\mathop {i}\limits ^{n+1}}\right) [\varphi (a^{i})-\varphi (a)^{i}]=0,\qquad (1\leqslant m\leqslant n), \end{aligned}$$
(7)

for all \(a\in {\mathcal {A}}\) where \(\left( {\mathop {k}\limits ^{n}}\right) =\frac{n!}{k!(n-k)!}\). We can rewrite the equalities in (7) as follows:

$$\begin{aligned} \left[ \begin{array}{cccc} {1} &{} {1} &{} {\cdots } &{} {1} \\ {2^{n}} &{} {2^{n-1}} &{} {\cdots } &{} {2} \\ 3^{n} &{} {3^{n-1}} &{} {\cdots } &{} {3}\\ {\cdots } &{} {\cdots } &{} {\cdots } &{} {\cdots } \\ {n^{n}} &{} {n^{n-1}} &{} {\cdots } &{} {n} \\ \end{array} \right] \left[ \begin{array}{cccc} {\Gamma _1(a)} \\ {\Gamma _2(a)} \\ {\Gamma _3(a)} \\ {\cdots } \\ {\Gamma _n(a)} \\ \end{array} \right] =\left[ \begin{array}{cccc} {0} \\ {0} \\ {0} \\ {\cdots } \\ {0} \\ \end{array} \right] , \end{aligned}$$
(8)

for all \(a\in {\mathcal {A}}\), where

$$\begin{aligned} \Gamma _i(a)=\left( {\mathop {i}\limits ^{n+1}}\right) [\varphi (a^{i})-\varphi (a)^{i}], \end{aligned}$$

for all \(1\leqslant i\leqslant n\). It is shown in [Bodaghi and İnceboz (2018) , Lemma 2.1] that the above square matrix is invertible. This implies that \(\Gamma _i(a)=0\) for all \(1\leqslant i\leqslant n\) and all \(a\in {\mathcal {A}}\). In particular, \(\Gamma _n(a)=0\). This means that \(\varphi \) is an n-Jordan homomorphism. \(\square \)

In view of Theorems 2.3 and 2.7, we have the following question.

Question 2.12

Is every Banach algebra \({\mathcal {A}}\) n-Jordan functionally continuous without any additional hypothesis?

3 Characterization of n-Jordan Homomorphisms

Let \({\mathcal {A}}\) and \({\mathcal {B}}\) be complex algebras and \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) be a linear map. Then, \(\varphi \) is called a mixedn-Jordan homomorphism if for all \(a,b\in {\mathcal {A}}\),

$$\begin{aligned} \varphi (ab^n)=\varphi (a)\varphi (b)^n. \end{aligned}$$

This notion was introduced in Neghabi et al. (2020). For \(n=2\), we speak about mixed Jordan homomorphism. Clearly, every n-homomorphism is an mixed \((n-1)\)-Jordan homomorphism for \(n\geqslant 3\), and every mixed n-Jordan homomorphism is \((n+1)\)-Jordan homomorphism, but the converse is not true in general. The following example illustrates this fact.

Example 3.1

Let

$$\begin{aligned} {\mathcal {A}}= \left\{ \begin{bmatrix} u &{} a &{} b \\ 0 &{} 0 &{} c\\ 0 &{} 0 &{} 0 \end{bmatrix} :\ \ \ u,a,b,c\in {\mathbb {C}} \right\} , \end{aligned}$$

and define \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {A}}\) by

$$\begin{aligned} \varphi \left( \begin{bmatrix} u &{} a &{} b \\ 0 &{} 0 &{} c\\ 0 &{} 0 &{} 0 \end{bmatrix}\right) = \begin{bmatrix} -u &{} 0 &{} 0 \\ 0 &{} 0 &{} c\\ 0 &{} 0 &{} 0 \end{bmatrix}. \end{aligned}$$

Then, for all \(n\geqslant 3\) and for any \(U\in {\mathcal {A}}\), we have

$$\begin{aligned} \varphi (U^n)=\varphi (U)^n. \end{aligned}$$

Thus, \(\varphi \) is n-Jordan homomorphism for all \(n\geqslant 3\), but \(\varphi \) is not mixed \((2n-3)\)-Jordan homomorphism.

Let \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\) be a map between Banach algebras \({\mathcal {A}}\) and \({\mathcal {B}}\). Then, we say that \({\mathcal {B}}\) is \(\varphi \)-commutative if for all \(a,b\in {\mathcal {A}}\), \([\varphi (a),\varphi (b)]=0\). Note that every commutative Banach algebra is id-commutative, where id is the identity map.

Example 3.2

Consider the Banach algebras \({\mathcal {A}}\) as in Example 3.1 and let

$$\begin{aligned} {\mathcal {B}}= \left\{ \begin{bmatrix} a &{} b \\ 0 &{} 0 \end{bmatrix} :\ \ \ a,b\in {\mathbb {C}} \right\} , \end{aligned}$$

with the usual product. Define the linear map \(\varphi : {\mathcal {A}} \longrightarrow {\mathcal {B}}\) by

$$\begin{aligned} \varphi \left( \begin{bmatrix} u &{} a &{} b \\ 0 &{} 0 &{} c\\ 0 &{} 0 &{} 0 \end{bmatrix}\right) = \begin{bmatrix} u &{} 0 \\ 0 &{} 0 \end{bmatrix}. \end{aligned}$$

Then, \({\mathcal {B}}\) is non-commutative Banach algebra, but it is \(\varphi \)-commutative.

Theorem 3.3

Let \(n\in \lbrace 3,4,5\rbrace \) be fixed, and let \(\varphi \) be an n-Jordan homomorphism from algebra \({\mathcal {A}}\) into \(\varphi \) -commutative algebra \({\mathcal {B}}\) such that \(\varphi ([a,b])=0\) for any \(a,b\in {\mathcal {A}}\) . Then, \(\varphi \) is \((n-1)\) -mixed Jordan homomorphism.

Proof

The case \(n=3\) is Theorem 2.7 of Neghabi et al. (2020). Suppose that \(n=4\) and let

$$\begin{aligned} \varphi (x^4)=\varphi (x)^4, \ \ \ \ \ (x\in {\mathcal {A}}). \end{aligned}$$
(9)

Replacing x by \(a+b\) in (9), we obtain

$$\begin{aligned} p+q=6\varphi (a)^2\varphi (b)^2+4\varphi (a)\varphi (b)^3+4\varphi (a)^3\varphi (b), \end{aligned}$$
(10)

where

$$\begin{aligned} p=\varphi (a^2b^2+abab+ab^2a+ba^2b+baba+b^2a^2), \end{aligned}$$

and

$$\begin{aligned} q= & {}\, \varphi (a^3b+a^2ba+aba^2+ab^3\\&+\, ba^3+bab^2+b^2ab+b^3a). \end{aligned}$$

Switching b by \(-b\) in (10), we get

$$\begin{aligned} p-q=6\varphi (a)^2\varphi (b)^2-4\varphi (a)\varphi (b)^3-4\varphi (a)^3\varphi (b), \end{aligned}$$
(11)

for all \(a,b\in {\mathcal {A}}\). The equalities (10) and (11) show that

$$\begin{aligned} p=6\varphi (a)^2\varphi (b)^2, \ \ \ \ \ \ \ (a,b\in {\mathcal {A}}). \end{aligned}$$
(12)

Since \(\varphi ([a,b])=0\) for all \(a,b\in {\mathcal {A}}\), we have

$$\begin{aligned} \varphi ([a,ab^2])=\varphi ([ab,ba])=\varphi ([b,ba^2])=\varphi ([a,bab])=0. \end{aligned}$$
(13)

It follows from (12) and (13) that

$$\begin{aligned} 2\varphi (a^2b^2)+\varphi (abab)=3\varphi (a)^2\varphi (b)^2,\ \ \ (a,b\in {\mathcal {A}}). \end{aligned}$$
(14)

Replacing a by \(a+b\) in (14), we get

$$\begin{aligned} \varphi (3ab^3+2bab^2+b^2ab)=6\varphi (a)\varphi (b)^2, \end{aligned}$$
(15)

for all \(a,b\in {\mathcal {A}}\). By assumption, \(\varphi ([b,ab^2])=\varphi ([b^2,ab])=0\), and hence, (15) implies that

$$\begin{aligned} \varphi (ab^3)=\varphi (a)\varphi (b)^3, \end{aligned}$$

for all \(a,b\in {\mathcal {A}}\). Therefore, \(\varphi \) is 3-mixed Jordan homomorphism. By the same method, we can prove the result for \(n=5\). \(\square \)

Theorem 3.4

Let \(n\in \lbrace 2,3,4\rbrace \) be fixed, and let \(\varphi \) be an n-Jordan homomorphism from algebra \({\mathcal {A}}\) into \(\varphi \) -commutative algebra \({\mathcal {B}}\) such that \(\varphi ([a,b])=0\) for any \(a,b\in {\mathcal {A}}\) . If ker \(\varphi \) is an ideal of \({\mathcal {A}}\) , then \(\varphi \) is an n-homomorphism.

Proof

The case \(n=2\) is trivial. Suppose that \(n=3\) and let \(\varphi (x^3)=\varphi (x)^3\), for all \(x\in {\mathcal {A}}\). Replacing x by \(a+b\), we get

$$\begin{aligned}&\varphi (ab^2+b^2a+a^2b+ba^2+aba+bab)\nonumber \\&\quad =3\varphi (a)\varphi (b)^2+3\varphi (a)^2\varphi (b), \end{aligned}$$
(16)

and switching b by \(-b\), in (16), gives

$$\begin{aligned}&\varphi (ab^2+b^2a-a^2b-ba^2-aba+bab)\nonumber \\&\quad =3\varphi (a)\varphi (b)^2-3\varphi (a)^2\varphi (b). \end{aligned}$$
(17)

By (16) and (17), we have

$$\begin{aligned} \varphi (ab^2+b^2a+bab)=3\varphi (a)\varphi (b)^2, \end{aligned}$$
(18)

for all \(a,b\in {\mathcal {A}}\). Replacing b by \(b-c\) in (18), we deduce

$$\begin{aligned} \varphi (abc+acb+bac+bca+cab+cba)=6\varphi (a)\varphi (b)\varphi (c). \end{aligned}$$
(19)

Since \([a,b]\in \mathrm{ker}\varphi \) for all \(a,b\in {\mathcal {A}}\), we have

$$\begin{aligned} \varphi ([ab,c])=0,\ \ \ \ \varphi ([a,bc])=0. \end{aligned}$$
(20)

It follows from (19) and (20) that

$$\begin{aligned} 3\varphi (abc)+\varphi (acb+bac+cba)=6\varphi (a)\varphi (b)\varphi (c), \end{aligned}$$
(21)

for all \(a,b,c\in {\mathcal {A}}\). Similarly, we have

$$\begin{aligned} \varphi ([ac,b])=0,\ \ \ \ \ \varphi ([ba,c])=0. \end{aligned}$$
(22)

By (21) and (22), we get

$$\begin{aligned} \varphi (abc)+\varphi (acb)=2\varphi (a)\varphi (b)\varphi (c). \end{aligned}$$
(23)

By assumption, ker\(\varphi \) is an ideal of \({\mathcal {A}}\), and hence, \(\varphi (a[b,c])=0\). Thus, \(\varphi (abc)=\varphi (acb)\) and so (23) implies that

$$\begin{aligned} \varphi (abc)=\varphi (a)\varphi (b)\varphi (c),\ \ \ \ (a,b,c\in {\mathcal {A}}). \end{aligned}$$

Hence, \(\varphi \) is 3-homomorphism.

Now assume that \(n=4\) and let \(\varphi (x^4)=\varphi (x)^4\), for all \(x\in {\mathcal {A}}\). By similar argument which has been used in the proof of Theorem 3.3, we get the relation (14). That is,

$$\begin{aligned} 2\varphi (x^2y^2)+\varphi (xyxy) =3\varphi (x)^2\varphi (y)^2, \end{aligned}$$
(24)

for all \(x,y\in {\mathcal {A}}\). Replacing x by \(a+b\) in (24) gives

$$\begin{aligned}2\varphi (aby^2+bay^2)+\varphi (ayby+byay) =6\varphi (a)\varphi (b)\varphi (y)^2, \ \ \ \ \ (a,b\in {\mathcal {A}}). \end{aligned}$$
(25)

Replacing y by \(x+y\) in (25), to get

$$\begin{aligned}&2\varphi (abxy+abyx+baxy+bayx)\nonumber \\&\qquad +\, \varphi (axby+aybx+bxay+byax)\nonumber \\&\quad =12\varphi (a)\varphi (b)\varphi (x)\varphi (y). \end{aligned}$$
(26)

Since ker\(\varphi \) is an ideal of \({\mathcal {A}}\) and \([a,b]\in \mathrm{ker}\varphi \) for all \(a,b\in {\mathcal {A}}\), we get

$$\begin{aligned} \varphi ([a,b]xy)=0,\ \ \ \varphi ([a,b]yx)=0,\ \ \ \varphi (ab[x,y])=0, \end{aligned}$$
(27)

for all \(a,b,x,y\in {\mathcal {A}}\). It follows from (26) and (27) that

$$\begin{aligned}&8\varphi (abxy)+\varphi (axby+aybx+bxay+byax)\nonumber \\&\quad =12\varphi (a)\varphi (b)\varphi (x)\varphi (y). \end{aligned}$$
(28)

Similarly, we have

$$\begin{aligned} \varphi (a[bx,y])=0. \end{aligned}$$
(29)

From (27) and the equation \(\varphi (a[by,x])=0\) we obtain

$$\begin{aligned} \varphi (a[b,x]y)=0. \end{aligned}$$
(30)

It follows from (28), (29) and (30) that

$$\begin{aligned} 10\varphi (abxy)+\varphi (bxay+byax)=12\varphi (a)\varphi (b)\varphi (x)\varphi (y), \end{aligned}$$
(31)

for all \(a,b,x,y\in {\mathcal {A}}\). By using (27) and the equations

$$\begin{aligned} \varphi (b[ax,y])=\varphi (b[ay,x])=0, \end{aligned}$$

we deduce from (31) that \(\varphi (abxy)=\varphi (a)\varphi (b)\varphi (x)\varphi (y)\) for all \(a,b,x,y\in {\mathcal {A}}\). Thus, \(\varphi \) is an 4-homomorphism. This completes the proof. \(\square \)

In general, the kernel of an n-Jordan homomorphism may not be an ideal. For example, let \({\mathcal {A}}\) be the algebra of all \(3\times 3\) matrices having 0 on and below the diagonal. In this algebra, product of any 3 elements is equal to 0, so any linear map from \({\mathcal {A}}\) into itself is a 3-Jordan homomorphism, but its kernel does not need to be an ideal. For Jordan homomorphism \(\varphi :{\mathcal {A}}\longrightarrow {\mathcal {B}}\), it is shown in Palmer (1994) that ker\(\varphi \) is an ideal, if \({\mathcal {B}}\) is semiprime and \(\varphi \) is surjective.

The following two results are reported by the author in Zivari-Kazempour (2018a, b), respectively.

Theorem 3.5

Let \(\varphi \) be an unital n-Jordan homomorphism from Banach algebra \({\mathcal {A}}\) into a semiprime Banach algebra \({\mathcal {B}}\) . Then, ker \(\varphi \) is an ideal of \({\mathcal {A}}\) if either \(\varphi \) is surjective, or \({\mathcal {B}}\) is commutative.

Theorem 3.6

Let \(\varphi \) be a 3-Jordan homomorphism from unital Banach algebra \({\mathcal {A}}\) into a Banach algebra \({\mathcal {B}}\) such that \(\varphi ([a,b])=0\) for all \(a,b\in {\mathcal {A}}\). Then, ker\(\varphi \) is an ideal of \({\mathcal {A}}\).

Note that Theorem 3.6 can be proved for the case \(n=4\). Therefore, by Theorems 3.6 and 3.4 we have the next result.

Corollary 3.7

Let \(n\in \lbrace 2,3,4\rbrace \) be fixed, and let \(\varphi \) be an n-Jordan homomorphism from unital algebra \({\mathcal {A}}\) into \(\varphi \) -commutative algebra \({\mathcal {B}}\) such that \(\varphi ([a,b])=0\) for any \(a,b\in {\mathcal {A}}\) . Then, \(\varphi \) is an n-homomorphism.

Remark 3.8

It seems that Theorem 3.4 holds for any arbitrary natural number \(n\geqslant 5\), but the proof method of Theorem 3.4 is long and tedious. Therefore, that way is not suitable for such numbers.