1 Introduction

Let \(\mathcal{B}\) be a complex Banach algebra and let \(g :\mathcal{B}\rightarrow \mathcal{B}\) be a C-linear mapping. Mirzavaziri and Moslehian [1] introduced the concept of g-derivation \(f: \mathcal{B}\to \mathcal{B}\) as follows:

$$\begin{aligned} f(xy)= f(x)g(y)+ g(x)f(y) \end{aligned}$$
(1.1)

for all \(x, y \in \mathcal{B}\). Park et al. [2] introduced the concept of hom-derivation on \(\mathcal{B}\), i.e., \(g :\mathcal{B}\rightarrow \mathcal{B}\) is a homomorphism and f satisfies (1.1) for all \(x, y \in \mathcal{B}\).

The stability problem of functional equations originated from a question of Ulam [3] concerning the stability of group homomorphisms. Hyers [4] gave a first affirmative partial answer to the question of Ulam for Banach spaces. Hyers’ theorem was generalized by Aoki [5] for additive mappings and by Th.M. Rassias [6] for linear mappings by considering an unbounded Cauchy difference. A generalization of the Th.M. Rassias theorem was obtained by Găvruta [7] by replacing the unbounded Cauchy difference by a general control function in the spirit of Th.M. Rassias’ approach. Recently, Lee et al. [8, 9] extended more general functional equations, which were mixed types of additive, quadratic and cubic functional equations in Banach spaces, and Park and Rassias [10] applied the functional equation theory to study partial multipliers in \(C^{*}\)-algebras. Many mathematicians developed the Hyers results in various directions [1118].

The method provided by Hyers [4] which produces the additive function will be called a direct method. This method is the most significant and strongest tool to study the stability of different functional equations. That is, the exact solution of the functional equation is explicitly constructed as a limit of a sequence, starting from the given approximate solution [19, 20]. The other significant method is the fixed point theorem, that is, the exact solution of the functional equation is explicitly created as a fixed point of some certain map (see [21, 22]).

We consider a fixed point alternative theorem.

Theorem 1.1

[23] Assume that \((\mathcal{B} ,d)\) is a complete generalized metric space and \(\mathcal{I} : \mathcal{B} \rightarrow \mathcal{B}\) is a strictly contractive mapping, that is,

$$\begin{aligned} d(\mathcal{I}u,\mathcal{I}v)\leq L d(u,v) \end{aligned}$$

for all \(u,v\in \mathcal{B}\) and a Lipschitz constant \(L<1\). Then for each given element \(u\in \mathcal{B}\), either

$$\begin{aligned} d\bigl(\mathcal{I}^{n}u,\mathcal{I}^{n+1}u\bigr)=+\infty , \quad \forall n\geq 0, \end{aligned}$$

or

$$\begin{aligned} d\bigl(\mathcal{I}^{n}u,\mathcal{I}^{n+1}u\bigr)< +\infty , \quad \forall n\geq n_{0}, \end{aligned}$$

for some positive integer \(n_{0}\). Furthermore, if the second alternative holds, then:

  1. (i)

    the sequence \((\mathcal{I}^{n}u)\) is convergent to a fixed point p of \(\mathcal{I}\);

  2. (ii)

    p is the unique fixed point of \(\mathcal{I}\) in the set \(V: = \{v\in \mathcal{B} , d(\mathcal{I}^{n_{0}} u,v)<+\infty \}\);

  3. (iii)

    \(d(v,p)\leq \frac{1}{1-L}d(v,\mathcal{I}v)\) for all \(u,v\in V\).

In this paper, we consider the following system of functional equations:

$$\begin{aligned} &\textstyle\begin{cases} f(x+y)+g(y-x)=2f(x), \\ g(x+y)-f(y-x)=2g(y) \end{cases}\displaystyle \end{aligned}$$
(1.2)

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

The aim of the present paper is to solve the system of functional equations (1.2) and prove the Hyers–Ulam stability of g-derivations in complex Banach algebras by using the fixed point method.

Throughout this paper, we assume that \(\mathcal{B}\) is a complex Banach algebra.

2 Stability of the system of functional equations (1.2)

We solve and investigate the system of additive functional equations (1.2) in complex Banach algebras.

Lemma 2.1

[24, Theorem 2.1] Let \(\mathcal{B}\) be a complex Banach algebra and let \(\mathcal{F} :\mathcal{B} \rightarrow \mathcal{B}\) be an additive mapping such that \(\mathcal{F}(\alpha x)=\alpha \mathcal{F}(x)\) for all \(\alpha \in {\mathbf{T}}^{1} := \{\zeta \in {\mathbf{C}}: |\zeta |= 1\}\) and all \(x\in \mathcal{B}\). Then \(\mathcal{F}\) is C-linear.

Lemma 2.2

Let \(f,g : \mathcal{B} \rightarrow \mathcal{B}\) be mappings satisfying (1.2) for all \(x,y\in \mathcal{B}\). Then the mappings \(f,g : \mathcal{B} \rightarrow \mathcal{B}\) are additive.

Proof

Letting \(x=y=0\) in (1.2), we get

$$\begin{aligned} f(0)=g(0)=0. \end{aligned}$$

Putting \(y=x\) in (1.2), we have

$$\begin{aligned} f(2x)=2f(x) \end{aligned}$$

for all \(x\in \mathcal{B}\). Setting \(y=0\) in (1.2), we obtain

$$\begin{aligned} g(x)=f(-x) \end{aligned}$$
(2.1)

for all \(x\in \mathcal{B}\).

Replacing \(g(y-x)\) by \(f(x-y)\) in (1.2), we have

$$\begin{aligned} f(x+y)+f(x-y)=f(2x) \end{aligned}$$

for all \(x,y\in \mathcal{B}\). Hence the mapping \(f: \mathcal{B} \rightarrow \mathcal{B}\) is additive and thus by (2.1) the mapping \(g: \mathcal{B} \rightarrow \mathcal{B}\) is additive. □

Using the fixed point technique, we prove the Hyers–Ulam stability of the system of the additive functional equations (1.2) in complex Banach algebras.

Theorem 2.3

Suppose that \(\Delta : \mathcal{B}^{2}\rightarrow [0,\infty )\) is a function such that there exists an \(L<1\) with

$$\begin{aligned} \Delta \biggl(\frac{x}{2},\frac{y}{2} \biggr)\leq \frac{L}{2} \Delta (x,y) \end{aligned}$$
(2.2)

for all \(x,y\in \mathcal{B}\). Let \(f,g : \mathcal{B} \rightarrow \mathcal{B}\) be mappings satisfying

$$\begin{aligned} &\textstyle\begin{cases} \Vert f(x+y)+g(y-x)-2f(x) \Vert \leq \Delta (x,y), \\ \Vert g(x+y)-f(y-x)-2g(y) \Vert \leq \Delta (x,y) \end{cases}\displaystyle \end{aligned}$$
(2.3)

for all \(x,y\in \mathcal{B}\). Then there exist unique additive mappings \(F, G : \mathcal{B}\rightarrow \mathcal{B}\) such that

$$\begin{aligned} & \bigl\Vert F(x)-f(x) \bigr\Vert \leq \frac{L}{2(1-L)} \Delta (x,x), \\ & \bigl\Vert G(x)-g(x) \bigr\Vert \leq \frac{L}{2(1-L)} \Delta (x,x) \end{aligned}$$

for all \(x\in \mathcal{B}\).

Proof

Putting \(x=y=0\) in (2.3), we get

$$\begin{aligned} &\textstyle\begin{cases} \Vert g(0)-f(0) \Vert \leq \Delta (0,0)=0, \\ \Vert f(0)+g(0) \Vert \leq \Delta (0,0)=0, \end{cases}\displaystyle \end{aligned}$$

so \(f(0)=g(0)=0\).

Letting \(y=x\) in (2.3), we obtain

$$\begin{aligned} &\textstyle\begin{cases} \Vert f(2x)-2f(x) \Vert \leq \Delta (x,x), \\ \Vert g(2x)-2g(x) \Vert \leq \Delta (x,x). \end{cases}\displaystyle \end{aligned}$$
(2.4)

Let \(\Gamma =\{\gamma : \mathcal{B}\rightarrow \mathcal{B}: \gamma (0)=0 \}\). We define a generalized metric \(d: \Gamma \times \Gamma \rightarrow [0,\infty ]\) by

$$\begin{aligned} d(\delta , \gamma )=\inf \bigl\{ \mu \in {\mathbf{R}}_{+} : \bigl\Vert \delta (x)- \gamma (x) \bigr\Vert \leq \mu \Delta (x,x) , \forall x\in \mathcal{B} \bigr\} \end{aligned}$$

and we consider \(\inf \emptyset =+\infty \). Then d is a complete generalized metric on Γ (see [25]).

Now, we define the mapping \(\mathcal{J}:(\Gamma ,d) \rightarrow (\Gamma ,d)\) such that

$$ \mathcal{J}\delta (x):=2\delta \biggl(\frac{x}{2} \biggr) $$

for all \(x\in \mathcal{B}\).

Actually, let \(\delta , \gamma \in (\Gamma ,d)\) be given such that \(d(\delta , \gamma )=\mu \). Then

$$ \bigl\Vert \delta (x)-\gamma (x) \bigr\Vert \leq \mu \Delta (x,x) $$

for all \(x\in \mathcal{B}\). Hence

$$\begin{aligned} \bigl\Vert \mathcal{J}\delta (x)-\mathcal{J}\gamma (x) \bigr\Vert = \biggl\Vert 2\delta \biggl(\frac{x}{2} \biggr)-2\gamma \biggl( \frac{x}{2} \biggr) \biggr\Vert \leq 2\mu \Delta \biggl( \frac{x}{2},\frac{x}{2} \biggr) \leq L\mu \Delta (x,x) \end{aligned}$$

for all \(x\in \mathcal{B}\). It follows that \(d( \mathcal{J}\delta , \mathcal{J}\gamma )\leq L\mu \). So

$$\begin{aligned} d( \mathcal{J}\delta , \mathcal{J}\gamma )\leq Ld(\delta ,\gamma ) \end{aligned}$$

for all \(x\in \mathcal{B}\) and all \(\delta ,\gamma \in \Gamma \).

Using (2.4), we obtain

$$\begin{aligned} &\textstyle\begin{cases} \Vert f(x)-2f (\frac{x}{2} ) \Vert \leq \Delta (\frac{x}{2},\frac{x}{2} ) \leq \frac{L}{2}\Delta (x,x), \\ \Vert g(x)-2g (\frac{x}{2} ) \Vert \leq \Delta (\frac{x}{2},\frac{x}{2} ) \leq \frac{L}{2}\Delta (x,x) \end{cases}\displaystyle \end{aligned}$$

for all \(x\in \mathcal{B}\), which imply that \(d(f,\mathcal{J} f)\leq \frac{L}{2}\) and \(d(g,\mathcal{J}g)\leq \frac{L}{2}\).

Using the fixed point alternative, we deduce the existence of unique fixed points of \(\mathcal{J}\), that is, the existence of mappings \(F,G : \mathcal{B}\rightarrow \mathcal{B}\), respectively, such that

$$ F(x)=2F \biggl(\frac{x}{2} \biggr), \qquad G(x)=2G \biggl( \frac{x}{2} \biggr) $$

with the following property: there exist \(\mu , \eta \in (0,\infty )\) satisfying

$$\begin{aligned} \bigl\Vert f(x)-F(x) \bigr\Vert \leq \mu \Delta (x,x), \qquad \bigl\Vert g(x)-G(x) \bigr\Vert \leq \eta \Delta (x,x) \end{aligned}$$

for all \(x\in \mathcal{B}\).

Since \(\lim_{n\rightarrow \infty}d(\mathcal{J}^{n}f,F)=0\) and \(\lim_{n\rightarrow \infty}d(\mathcal{J}^{n}g,G)=0\),

$$\begin{aligned} \lim_{n\rightarrow \infty} 2^{n} f \biggl(\frac{x}{2^{n}} \biggr)=F(x), \qquad \lim_{n\rightarrow \infty} 2^{n} g \biggl( \frac{x}{2^{n}} \biggr)=G(x) \end{aligned}$$

for all \(x\in \mathcal{B}\).

Next, \(d(f,F)\leq \frac{1}{1-L}d(f,\mathcal{J}f)\) and \(d(g,G)\leq \frac{1}{1-L}d(g,\mathcal{J}g)\), which imply

$$\begin{aligned} \bigl\Vert f(x)-F(x) \bigr\Vert \leq \frac{L}{2(1-L)} \Delta (x,x), \qquad \bigl\Vert g(x)-G(x) \bigr\Vert \leq \frac{L}{2(1-L)} \Delta (x,x) \end{aligned}$$
(2.5)

for all \(x\in \mathcal{B}\).

Using (2.2) and (2.3), we conclude that

$$\begin{aligned} \bigl\Vert F(x+y)+G(y-x)-2F(x) \bigr\Vert &=\lim_{n\rightarrow \infty} 2^{n} \biggl\Vert f \biggl(\frac{x+y}{2^{n}} \biggr)+g \biggl( \frac{y-x}{2^{n}} \biggr)-2f \biggl(\frac{x}{2^{n}} \biggr) \biggr\Vert \\ &\leq \lim_{n\rightarrow \infty} 2^{n} \Delta \biggl( \frac{x}{2^{n}}, \frac{y}{2^{n}} \biggr)\leq \lim_{n\rightarrow \infty} L^{n} \Delta (x,y)=0 \end{aligned}$$

and

$$\begin{aligned} \bigl\Vert G(x+y)-F(y-x)-2G(x) \bigr\Vert &=\lim_{n\rightarrow \infty} 2^{n} \biggl\Vert g \biggl(\frac{x+y}{2^{n}} \biggr)-f \biggl( \frac{y-x}{2^{n}} \biggr)-2g \biggl(\frac{x}{2^{n}} \biggr) \biggr\Vert \\ &\leq \lim_{n\rightarrow \infty} 2^{n} \Delta \biggl( \frac{x}{2^{n}}, \frac{y}{2^{n}} \biggr)\leq \lim_{n\rightarrow \infty} L^{n} \Delta (x,y)=0 \end{aligned}$$

for all \(x,y\in \mathcal{B}\), since \(L<1\). Hence

$$\begin{aligned} &\textstyle\begin{cases} F(x+y)+G(y-x)=2F(x), \\ G(x+y)-F(y-x)=2G(x) \end{cases}\displaystyle \end{aligned}$$

for all \(x,y\in \mathcal{B}\), since \(L<1\). Therefore by Lemma 2.2, the mappings \(F,G: \mathcal{B}\rightarrow \mathcal{B}\) are additive. □

Corollary 2.4

Let η, p be nonnegative real numbers with \(p\geq 1\) and let \(f,g : \mathcal{B} \rightarrow \mathcal{B}\) be mappings satisfying

$$\begin{aligned} &\textstyle\begin{cases} \Vert f(x+y)+g(y-x)-2f(x) \Vert \leq \eta ( \Vert x \Vert ^{p}+ \Vert y \Vert ^{p}), \\ \Vert g(x+y)-f(y-x)-2g(y) \Vert \leq \eta ( \Vert x \Vert ^{p}+ \Vert y \Vert ^{p}) \end{cases}\displaystyle \end{aligned}$$

for all \(x,y\in \mathcal{B}\). Then there exist unique additive mappings \(F, G : \mathcal{B}\rightarrow \mathcal{B}\) such that

$$\begin{aligned} & \bigl\Vert F(x)-f(x) \bigr\Vert \leq \frac{\eta}{2^{p-1}-1} \Vert x \Vert ^{p}, \\ & \bigl\Vert G(x)-g(x) \bigr\Vert \leq \frac{\eta}{2^{p-1}-1} \Vert x \Vert ^{p} \end{aligned}$$

for all \(x\in \mathcal{B}\).

Proof

The proof follows from Theorem 2.3 by taking \(L=2^{1-p}\) and \(\Delta (x,y)=\eta (\Vert x\Vert ^{p}+\Vert y\Vert ^{p})\) for all \(x,y\in \mathcal{B}\). □

3 Stability of G-derivations in Banach algebras

In this section, by using the fixed point technique, we prove the Hyers–Ulam stability of g-derivations in complex Banach algebras.

Lemma 3.1

Let \(f,g : \mathcal{B} \rightarrow \mathcal{B}\) be mappings satisfying

$$\begin{aligned} &\textstyle\begin{cases} f(\lambda (x+y))+g(\lambda (y-x))=2\lambda f(x), \\ g(\lambda (x+y))-f(\lambda (y-x))=2\lambda g(y) \end{cases}\displaystyle \end{aligned}$$
(3.1)

for all \(x,y\in \mathcal{B}\) and all \(\lambda \in {\mathbf{T}}^{1}\). Then the mappings \(f,g : \mathcal{B} \rightarrow \mathcal{B}\) are C-linear.

Proof

If we put \(\lambda =1\) in (3.1), then f and g are additive by Lemma 2.2.

Letting \(y=x\) in (3.1), we have

$$\begin{aligned} &\textstyle\begin{cases} f(2\lambda x)=2\lambda f(x), \\ g(2\lambda x)=2\lambda g(x) \end{cases}\displaystyle \end{aligned}$$

for all \(x\in \mathcal{B}\) and all \(\lambda \in {\mathbf{T}}^{1}\). Since the mappings f and g are additive,

$$\begin{aligned} &\textstyle\begin{cases} f(\lambda x)=\lambda f(x), \\ g(\lambda x)=\lambda g(x) \end{cases}\displaystyle \end{aligned}$$

for all \(x\in \mathcal{B}\) and all \(\lambda \in {\mathbf{T}}^{1}\). So by Lemma 2.1 the mappings f and g are C-linear. □

Theorem 3.2

Suppose that \(\Delta : \mathcal{B}^{2}\rightarrow [0,\infty )\) is a function such that there exists an \(L<1\) with

$$\begin{aligned} \Delta (x,y)\leq \frac{L}{4} \Delta (2x,2y) \end{aligned}$$
(3.2)

for all \(x,y\in \mathcal{B}\). Let \(f,g : \mathcal{B} \rightarrow \mathcal{B}\) be mappings satisfying

$$\begin{aligned} &\textstyle\begin{cases} \Vert f(\lambda (x+y))+g(\lambda (y-x))-2\lambda f(x) \Vert \leq \Delta (x,y), \\ \Vert g(\lambda (x+y))-f(\lambda (y-x))-2\lambda g(y) \Vert \leq \Delta (x,y), \end{cases}\displaystyle \end{aligned}$$
(3.3)
$$\begin{aligned} &\bigl\Vert f(xy)-f(x)g(y)-g(x)f(y) \bigr\Vert \leq \Delta (x,y) \end{aligned}$$
(3.4)

for all \(x,y\in \mathcal{B}\) and all \(\lambda \in {\mathbf{T}}^{1}\). Then there exist unique C-linear mappings \(F,G: \mathcal{B} \rightarrow \mathcal{B}\) such that F is a G-derivation and

$$\begin{aligned} & \bigl\Vert F(x)-f(x) \bigr\Vert \leq \frac{L}{2(2-L)} \Delta (x,x), \end{aligned}$$
(3.5)
$$\begin{aligned} & \bigl\Vert G(x)-g(x) \bigr\Vert \leq \frac{L}{2(2-L)} \Delta (x,x) \end{aligned}$$
(3.6)

for all \(x\in \mathcal{B}\).

Proof

Let \(\lambda =1\) in (3.3). By Theorem 2.3, there are unique additive mappings \(F,G: \mathcal{B} \rightarrow \mathcal{B}\) satisfying (3.5) and (3.6) given by

$$\begin{aligned} \lim_{n\rightarrow \infty} 2^{n}f \biggl(\frac{x}{2^{n}} \biggr)=F(x), \qquad \lim_{n\rightarrow \infty} 2^{n} g \biggl( \frac{x}{2^{n}} \biggr)=G(x) \end{aligned}$$

for all \(x\in \mathcal{B}\).

Using (3.2) and (3.3), we conclude that

$$\begin{aligned} & \bigl\Vert F\bigl(\lambda (x+y)\bigr)+G\bigl(\lambda (y-x)\bigr)-2\lambda F(x) \bigr\Vert \\ &\quad =\lim_{n\rightarrow \infty} 2^{n} \biggl\Vert f \biggl( \frac{\lambda (x+y)}{2^{n} } \biggr)+g \biggl( \frac{\lambda (y-x)}{2^{n}} \biggr)-2\lambda f \biggl(\frac{x}{2^{n}} \biggr) \biggr\Vert \\ &\quad \leq \lim_{n\rightarrow \infty} 2^{n} \Delta \biggl( \frac{x}{2^{n}}, \frac{y}{2^{n}} \biggr)\leq \lim_{n\rightarrow \infty} L^{n} \Delta ( x, y)=0 \end{aligned}$$

and

$$\begin{aligned} & \bigl\Vert G\bigl(\lambda (x+y)\bigr)-F\bigl(\lambda (y-x)\bigr)-2\lambda G(x) \bigr\Vert \\ &\quad =\lim_{n\rightarrow \infty} 2^{n} \biggl\Vert g \biggl( \frac{\lambda (x+y)}{2^{n} } \biggr)-f \biggl( \frac{\lambda (y-x)}{2^{n}} \biggr)-2\lambda g \biggl(\frac{x}{2^{n}} \biggr) \biggr\Vert \\ &\quad \leq \lim_{n\rightarrow \infty} 2^{n} \Delta \biggl( \frac{x}{2^{n}}, \frac{y}{2^{n}} \biggr)\leq \lim_{n\rightarrow \infty} L^{n} \Delta (x,y)=0 \end{aligned}$$

for all \(x,y\in \mathcal{B}\), since \(L<1\). Hence

$$\begin{aligned} &\textstyle\begin{cases} F(\lambda (x+y))+G(\lambda (y-x))=2\lambda F(x), \\ G(\lambda (x+y))-F(\lambda (y-x))=2\lambda G(x) \end{cases}\displaystyle \end{aligned}$$

for all \(x,y\in \mathcal{B}\) and all \(\lambda \in {\mathbf{T}}^{1}\), since \(L<1\). Therefore by Lemma 3.1, the mappings \(F,G: \mathcal{B}\rightarrow \mathcal{B}\) are C-linear.

It follows from (3.4) that

$$\begin{aligned} & \bigl\Vert F(xy)-F(x)G(y)-G(x)F(y) \bigr\Vert \\ &\quad=\lim_{n\rightarrow \infty} 4^{n} \biggl\Vert f \biggl( \frac{xy}{4^{n} } \biggr)-f \biggl(\frac{x}{2^{n}} \biggr)g \biggl( \frac{y}{2^{n}} \biggr)-g \biggl(\frac{x}{2^{n}} \biggr)f \biggl( \frac{y}{2^{n}} \biggr) \biggr\Vert \\ &\quad\leq \lim_{n\rightarrow \infty} 4^{n} \Delta \biggl( \frac{x}{2^{n}}, \frac{y}{2^{n}} \biggr) \\ &\quad\leq \lim_{n\rightarrow \infty} L^{n} \Delta (x,y)=0 \end{aligned}$$

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

$$\begin{aligned} F(xy)=F(x)G(y)+G(x)F(y) \end{aligned}$$

for all \(x,y\in \mathcal{B}\). Thus the C-linear mapping F is a G-derivation. □

Corollary 3.3

Let p, q, η be nonnegative real numbers with \(p+q>2\) and let \(f,g : \mathcal{B} \rightarrow \mathcal{B}\) be mappings satisfying

$$\begin{aligned} &\textstyle\begin{cases} \Vert f(\lambda (x+y))+g(\lambda (y-x))-2\lambda f(x) \Vert \leq \eta \Vert x \Vert ^{p} \Vert y \Vert ^{q}, \\ \Vert g(\lambda (x+y))-f(\lambda (y-x))-2\lambda g(y) \Vert \leq \eta \Vert x \Vert ^{p} \Vert y \Vert ^{q} \end{cases}\displaystyle \end{aligned}$$

and

$$\begin{aligned} \bigl\Vert f(xy)-f(x)g(y)-g(x)f(y) \bigr\Vert \leq \Vert x \Vert ^{p} \Vert y \Vert ^{q} \end{aligned}$$

for all \(x,y\in \mathcal{B}\) and all \(\lambda \in {\mathbf{T}}^{1}\). Then there exist unique C-linear mappings \(F,G: \mathcal{B} \rightarrow \mathcal{B}\) such that F is a G-derivation and

$$\begin{aligned} & \bigl\Vert F(x)-f(x) \bigr\Vert \leq \frac{\eta}{2^{p+q}-2} \Vert x \Vert ^{p+q}, \\ & \bigl\Vert G(x)-g(x) \bigr\Vert \leq \frac{\eta}{2^{p+q}-2} \Vert x \Vert ^{p+q} \end{aligned}$$

for all \(x\in \mathcal{B}\).

Proof

The proof follows from Theorem 3.2 by taking \(\Delta (x,y)=\eta \Vert x\Vert ^{p}\Vert y\Vert ^{q}\) for all \(x,y\in \mathcal{B}\). Choosing \(L=2^{2-p-q}\), we obtain the desired result. □

4 Conclusion

We solved the system of functional equations (1.2) and we proved the Hyers–Ulam stability of g-derivations in Banach algebras.