1 Introduction

In this paper, we focus on the existence of chaos in the following partial difference equation:

$$ x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr), $$
(1)

where \(n\geq 0\) is the time step, m is the lattice point with \(0\leq m\leq k<+\infty \), \(f:D\subset {\mathbf{R}^{2}}\to {\mathbf{R}}\) is a map, and \(k+1\) is the system size. In many engineering applications, such as imaging, digital filter, and spatial dynamical system, Eq. (1) plays an important role [1, 2].

In the past years, with the development of chaos theory, chaos has been applied in many fields, such as physics, chemistry, engineering, and mathematics. In mathematics, chaos has become a significant branch of dynamical systems [3]. Furthermore, anticontrol of chaos (chaotification) is an important branch of chaos, and many researchers devoted much effort to chaotification. The first important result was obtained by Chen and Liu [4] proved that Eq. (1) in \({\mathbf{R}^{3}}\) is chaotic in the Li–Yorke sense by constructing spatial periodic orbits of specified period. Later, Eq. (1) was reformulated into a discrete system [5]. By applying this method Shi [6] established some criteria of chaos by applying chaos in scalar ordinary difference equations and snap-back repeller theory. Recently, chaotification problems for Eq. (1) with general controllers, sawtooth functions, and mod operations were studied, respectively, and all the controlled systems were proved to be chaotic in the sense of both Devaney and Li–Yorke [79]. In [10], two chaotification schemes of Eq. (1) via sine functions,

$$ x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \sin \bigl(\mu x(n,m)\bigr), $$

were established for \(\mu >1\). Furthermore, we proved that not only the above controlled system but also Eq. (1) with cosine functions are chaotic in the sense of both Li–Yorke and Devaney for \(\mu =1\) [11].

As one of the main elements of basic elementary functions, trigonometric functions are of great importance. Sine, cosine, tangent, and cotangent functions are basic ones. It is known that sine and cosine are continuous and have a similar geometric shape with sawtooth functions and mod operations [68, 12, 13]. However, tangent and cotangent are piecewise continuous, and their geometric shapes are different from those of sine, cosine, sawtooth, and mod. Can tangent and cotangent functions be viewed as controllers to make the controlled Eq. (1) to be chaotic? In this paper, we attempt to address such an interesting question and try to establish chaotification schemes for the following controlled systems:

$$\begin{aligned}& x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \tan\bigl(x(n,m)\bigr), \end{aligned}$$
(2)
$$\begin{aligned}& x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \cot\bigl(x(n,m)\bigr), \end{aligned}$$
(3)
$$\begin{aligned}& x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \tan\bigl(x(n,m+1)\bigr), \end{aligned}$$
(4)
$$\begin{aligned}& x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \cot\bigl(x(n,m+1)\bigr). \end{aligned}$$
(5)

The rest of this paper is organized as follows. In Sect. 2, we list some basic concepts and lemmas about chaos. In Sects. 3, we consider anticontrol of chaos of Eq. (1) with tangent and cotangent functions, give four theorems, and prove that all the controlled systems are chaotic in the sense of Li–Yorke or of both Li–Yorke and Devaney by the coupled-expansion theory. Finally, in Sect. 4, we provide three illustrative examples.

2 Preliminaries

Now we introduce some basic concepts and lemmas.

Definition 1

([14])

Let \((X,d)\) be a metric space, and let \(F:X\to X\) be a map. A subset S of X is called a scrambled set of F if for any two different points \(x,y\in S\),

$$ \liminf_{n\to \infty }d\bigl(F^{n}(x),F^{n}(y) \bigr)=0, \qquad \limsup_{n\to \infty }d\bigl(F^{n}(x),F^{n}(y) \bigr)>0. $$

The map F is said to be chaotic in the Li–Yorke sense if there exists an uncountable scrambled set S of F.

Definition 2

([15])

A map \(F:V\subset X\to V\) is said to be chaotic on V in the sense of Devaney if

  1. (i)

    F is topologically transitive in V;

  2. (ii)

    the periodic points of F in V are dense in V;

  3. (iii)

    F has sensitive dependence on initial conditions in V.

By the result of [16], conditions (i) and (ii) imply (iii) if F is continuous in V that contains infinitely many points. Under some conditions, chaos in the sense of Devaney is stronger than that of Li–Yorke [17].

A nonperiodic boundary condition is given for Eq. (1) as

$$ x(n,k+1)=\varphi \bigl(x(n,p)\bigr),\quad n\geq 0, 0\leq p\leq k, $$
(6)

where p is an integer, and \(\varphi :I\subset \mathbf{R}\to \mathbf{R}\) is a map. For any given initial condition \(x(0,m)=\phi (m)\), \(0\leq m\leq k+1\), where ϕ satisfies (6), Eq. (1) obviously has a unique solution satisfying this condition. By setting

$$ x_{n}={ \bigl(}x(n,0), x(n,1),\ldots , x(n,k){ \bigr)}^{T} \in {\mathbf{R}^{k+1}},\quad n\geq 0, $$

Equation (1) with (6) can be written as

$$ x_{n+1}=F(x_{n}), \quad n\geq 0, $$
(7)

where

$$ F(x_{n})={ \bigl(}f\bigl(x(n,0),x(n,1)\bigr),f\bigl(x(n,1),x(n,2) \bigr),\ldots ,f\bigl(x(n,k), \varphi \bigl(x(n,p)\bigr)\bigr){ \bigr)}^{T}. $$
(8)

System (7) is called the system induced by Eq. (1) with (6).

Definition 3

([8])

Equation (1) with (6) is said to be chaotic in the sense of Devaney (or Li–Yorke) on \(V\subset {\mathbf{R}}^{k+1}\) if its induced system (7) is chaotic in the sense of Devaney (or Li–Yorke) on V.

Definition 4

([18])

Let \((X,d)\) be a metric space, and let \(f : D \subset X \rightarrow X \) be a map. If there exist m (≥2) subsets \(V_{i}\) (\(1 \leq i \leq m\)) of D with \(V_{i} \cap V_{j} = \partial _{D}V_{i} \cap \partial _{D}V_{j}\) for each pair of \((i, j)\), \(1 \leq i \neq j \leq m\), such that

$$ f(V_{i})\supset \bigcup_{j=1} ^{m}V_{j},\quad 1 \leq i \leq m, $$

where \(\partial _{D}V_{i}\) is the relative boundary of \(V_{i}\) with respect to D, then f is said to be a coupled-expanding map in \(V_{i}\), \(1 \leq i \leq m\). Further, the map f is said to be a strictly coupled-expanding map in \(V_{i}\), \(1 \leq i \leq m \), if \(d(V_{i}, V_{j}) > 0\) for all \(1 \leq i \neq j \leq m \).

Lemma 5

([19])

Let \((X,d)\) be a metric space, and let \(V_{j}\ (1\leq j\leq m)\) be disjoint compact sets of X. If \(f: D\equiv \bigcup_{j=1}^{m}V_{j}\rightarrow X\) is a strictly coupled-expanding continuous map in \(V_{j}\), \(1\leq j\leq m\), then f is chaotic in the sense of Li–Yorke.

Lemma 6

([20, 21])

Let \((X, d)\) be a complete metric space, and let \(f:D\subset X\rightarrow X\) be a map. Assume that there exist k disjoint bounded closed subsets \(V_{i}\) of D, \(1\leq i\leq k\), such that f is continuous in \(\bigcup_{i=1}^{k}V_{i}\) and satisfies

  1. (i)

    f is strictly coupled-expanding in \(V_{i}\), \(1\leq i\leq k\);

  2. (ii)

    there exists a constant \(\lambda >1\) such that

    $$ d\bigl(f(x),f(y)\bigr)\geq \lambda d(x,y), \quad \forall x,y\in V_{i}, 1 \leq i\leq k. $$

Then f has an invariant Cantor set \(V\subset \bigcup_{i=1}^{k}V_{i}\) such that \(f:V\rightarrow V\) is topologically conjugate to the subshift \(\Sigma ^{+}_{k}\to \Sigma ^{+}_{k}\). Consequently, f is chaotic on V in the Devaney and Li–Yorke senses.

3 Main results

In this section, we establish four chaotification schemes for Eq. (1) with tangent and cotangent functions.

Theorem 1

Consider the controlled system (2), that is,

$$ x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \tan\bigl(x(n,m)\bigr),\quad n\geq 0, 0\leq m\leq k< +\infty $$

with (6). Suppose that

  1. (i)

    there exist positive constants r and L such that

    $$ \bigl\vert f(x_{1},y_{1})-f(x_{2},y_{2}) \bigr\vert \leq L \max \bigl\{ \vert x_{1}-x_{2} \vert , \vert y_{1}-y_{2} \vert \bigr\} ,\quad \forall x_{1},x_{2},y_{1},y_{2}\in [-r,r]; $$
    (9)
  2. (ii)

    \(\varphi :[-r, r]\to [-r, r]\) is a map with \(\varphi (0)=0\), and there exists a constant \(\lambda >0\) such that

    $$ \bigl\vert \varphi (x)-\varphi (y) \bigr\vert \leq \lambda \vert x-y \vert ,\quad \forall x,y\in [-r,r]. $$
    (10)

If \(r>5\pi /4\), then for each constant ε satisfying

$$ \varepsilon >\varepsilon _{0}:= \max { \biggl\{ } \frac{5\pi }{4}\bigl(1+L\max \{1, \lambda \}\bigr)-f(0,0), \frac{\pi }{4}\bigl(1+5L\max \{1,\lambda \}\bigr)+f(0,0){ \biggr\} }, $$

there exists a Cantor set \(\Lambda _{1}\subset [-\frac{\pi }{4},\frac{\pi }{4}]^{k+1}\cup [ \frac{3\pi }{4},\frac{5\pi }{4}]^{k+1}\) such that system (2) with (6) is chaotic on \(\Lambda _{1}\) in the Li–Yorke sense. Further, for each constant ε satisfying

$$ \varepsilon > \max { \bigl\{ }\varepsilon _{0},1+L\max \{1,\lambda \}{ \bigr\} }, $$

there exists a Cantor set \(\Lambda _{2}\subset [-\frac{\pi }{4},\frac{\pi }{4}]^{k+1}\cup [ \frac{3\pi }{4},\frac{5\pi }{4}]^{k+1}\) such that system (2) with (6) is chaotic on \(\Lambda _{2}\) in the Li–Yorke and Devaney senses.

Proof

We use Lemmas 5 and 6. Let

$$ x_{n+1}=F(x_{n})+\varepsilon \operatorname{Tan}(x_{n}):=G_{\varepsilon }(x_{n}),\quad n\geq 0, $$

be the induced system of the controlled system (2) with (6), where \(F(x_{n})\) is (8), and

$$ \operatorname{Tan}(x_{n})={ \bigl(}\tan\bigl(x(n,0)\bigr), \tan \bigl(x(n,1)\bigr),\ldots , \tan\bigl(x(n,k)\bigr){ \bigr)}^{T}. $$

Let

$$ V_{1}=\biggl[-\frac{\pi }{4},\frac{\pi }{4} \biggr]^{k+1}, \qquad V_{2}=\biggl[\frac{3\pi }{4}, \frac{5\pi }{4}\biggr]^{k+1}. $$

Then \(V_{1},V_{2}\subset [-r,r]^{k+1}\) are nonempty, closed, and bounded, and

$$ d(V_{1},V_{2})=\inf { \bigl\{ } \Vert x-y \Vert : x \in V_{1},y\in V_{2}{ \bigr\} } = \frac{\pi }{2}>0. $$

The whole proof is divided into two parts.

Step 1. System (2) with (6) is chaotic in the Li–Yorke sense.

By Lemma 5 we will show that \(G_{\varepsilon } \) is a strictly coupled-expanding map in \(V_{1}\) and \(V_{2}\).

For each \(x=(x(0), x(1),\ldots , x(k))^{T} \in V_{1}\) with \(x(j)=-\pi /4\), from (9) it follows that, for \(0\leq j\leq k-1\),

$$ \begin{aligned} G_{\varepsilon ,j}(x) &=f\bigl(x(j),x(j+1)\bigr)+ \varepsilon \tan\bigl(x(j)\bigr) \\ & =f\biggl(-\frac{\pi }{4},x(j+1)\biggr)+\varepsilon \tan\biggl(- \frac{\pi }{4}\biggr) \\ & \leq L \max \biggl\{ \frac{\pi }{4}, \bigl\vert x(j+1) \bigr\vert \biggr\} -\varepsilon +f(0,0) \\ & =\frac{\pi }{4}L-\varepsilon +f(0,0)\leq -\frac{\pi }{4},\end{aligned} $$
(11)

and for \(j=k\), from (6), (9), and (10) it follows that

$$ \begin{aligned} G_{\varepsilon ,k}(x) &=f\bigl(x(k),\varphi \bigl(x(p)\bigr)\bigr)+\varepsilon \tan\bigl(x(k)\bigr) \\ & =f\biggl(-\frac{\pi }{4},\varphi \bigl(x(p)\bigr)\biggr)+\varepsilon \tan\biggl(-\frac{\pi }{4}\biggr) \\ & \leq L \max \biggl\{ \frac{\pi }{4}, \bigl\vert \varphi \bigl(x(p) \bigr) \bigr\vert \biggr\} - \varepsilon +f(0,0) \\ & \leq L \max \biggl\{ \frac{\pi }{4},\lambda \bigl\vert x(p) \bigr\vert \biggr\} - \varepsilon +f(0,0) \\ & \leq \frac{\pi }{4}L\max \{1,\lambda \}-\varepsilon +f(0,0) \leq - \frac{\pi }{4}.\end{aligned} $$
(12)

For each \(x\in V_{1}\) with \(x(j)=\pi /4\), it follows from (6), (9), and (10) that, for \(0\leq j\leq k-1\),

$$ \begin{aligned} G_{\varepsilon ,j}(x) &= f\biggl( \frac{\pi }{4},x(j+1)\biggr)+ \varepsilon \tan\biggl(\frac{\pi }{4} \biggr) \\ & \geq -L \max \biggl\{ \frac{\pi }{4}, \bigl\vert x(j+1) \bigr\vert \biggr\} +\varepsilon +f(0,0) \\ & =-\frac{\pi }{4}L+\varepsilon +f(0,0)\geq \frac{5\pi }{4},\end{aligned} $$
(13)

and for \(j=k\),

$$ \begin{aligned} G_{\varepsilon ,k}(x) &= f\biggl( \frac{\pi }{4},\varphi \bigl(x(p)\bigr)\biggr)+ \varepsilon \tan\biggl( \frac{\pi }{4}\biggr) \\ & \geq -L \max \biggl\{ \frac{\pi }{4},\lambda \bigl\vert x(p) \bigr\vert \biggr\} + \varepsilon +f(0,0) \\ & \geq -\frac{\pi }{4}L\max \{1,\lambda \}+\varepsilon +f(0,0) \geq \frac{5\pi }{4}.\end{aligned} $$
(14)

By (9) and (10) \(G_{\varepsilon }\) is continuous in \([-r,r]^{k+1}\). By the intermediate value theorem and (11)–(14) we have \(G_{\varepsilon }(V_{1})\supset V_{1}\cup V_{2}\).

For each \(x\in V_{2}\) with \(x(j)=3\pi /4\), we have that for \(0\leq j\leq k-1\),

$$ \begin{aligned} G_{\varepsilon ,j}(x) &= f\biggl( \frac{3\pi }{4},x(j+1)\biggr)+ \varepsilon \tan\biggl(\frac{3\pi }{4} \biggr) \\ & \leq L \max \biggl\{ \frac{3\pi }{4}, \bigl\vert x(j+1) \bigr\vert \biggr\} -\varepsilon +f(0,0) \\ & \leq \frac{5\pi }{4}L-\varepsilon +f(0,0)\leq - \frac{\pi }{4},\end{aligned} $$
(15)

and for \(j= k\),

$$ \begin{aligned} G_{\varepsilon ,k}(x) &= f\biggl( \frac{3\pi }{4},\varphi \bigl(x(p)\bigr)\biggr)+ \varepsilon \tan\biggl( \frac{3\pi }{4}\biggr) \\ & \leq L \max \biggl\{ \frac{3\pi }{4},\lambda \bigl\vert x(p) \bigr\vert \biggr\} - \varepsilon +f(0,0) \\ & \leq \frac{5\pi }{4}L\max \{1,\lambda \}-\varepsilon +f(0,0) \leq - \frac{\pi }{4}.\end{aligned} $$
(16)

For each \(x\in V_{2}\) with \(x(j)=5\pi /4\), we have that for \(0\leq j\leq k-1\),

$$ \begin{aligned} G_{\varepsilon ,j}(x) &= f\biggl( \frac{5\pi }{4},x(j+1)\biggr)+ \varepsilon \tan\biggl(\frac{5\pi }{4} \biggr) \\ & \geq -L \max \biggl\{ \frac{5\pi }{4}, \bigl\vert x(j+1) \bigr\vert \biggr\} +\varepsilon +f(0,0) \\ & =-\frac{5\pi }{4}L+\varepsilon +f(0,0)\geq \frac{5\pi }{4}\end{aligned} $$
(17)

and for \(j=k\),

$$ \begin{aligned} G_{\varepsilon ,k}(x) &= f\biggl( \frac{5\pi }{4},\varphi \bigl(x(p)\bigr)\biggr)+ \varepsilon \tan\biggl( \frac{5\pi }{4}\biggr) \\ & \geq -L \max \biggl\{ \frac{5\pi }{4},\lambda \bigl\vert x(p) \bigr\vert \biggr\} + \varepsilon +f(0,0) \\ & \geq -\frac{5\pi }{4}L\max \{1,\lambda \}+\varepsilon +f(0,0) \geq \frac{5\pi }{4}.\end{aligned} $$
(18)

By the intermediate value theorem and (15)–(18) we have \(G_{\varepsilon }(V_{2})\supset V_{1}\cup V_{2}\).

By the above discussion, \(G_{\varepsilon } \) is a strictly coupled-expanding map in \(V_{1}\) and \(V_{2}\). Therefore by Lemma 5 system (2) with (6) is chaotic in the Li-Yorke sense.

Step 2. System (2) with (6) is chaotic in both Li–Yorke and Devaney senses.

Since \(V_{1},V_{2}\subset [-r,r]^{k+1}\), from (6), (9), and (10) it follows that for all \(x,y\in V_{1}\) and \(x,y\in V_{2}\),

$$ \begin{aligned} \bigl\Vert F(x)-F(y) \bigr\Vert &=\max \bigl\{ \bigl\vert f\bigl(x(j),x(j+1)\bigr) -f\bigl(y(j),y(j+1)\bigr) \bigr\vert , 0 \leq j \leq k\bigr\} \\ &\leq L\max \bigl\{ \bigl\vert x(j)-y(j) \bigr\vert , \bigl\vert \varphi \bigl(x(p)\bigr)-\varphi \bigl(y(p)\bigr) \bigr\vert , 0\leq j, p\leq k\bigr\} \\ & \leq L\max \bigl\{ \bigl\vert x(j)-y(j) \bigr\vert , \lambda \bigl\vert x(p)-y(p) \bigr\vert , 0\leq j, p\leq k \bigr\} \\ & \leq L\max \{1, \lambda \} \Vert x-y \Vert .\end{aligned} $$
(19)

On the other hand, by Lagrange’s mean value theorem, for all \(x,y\in V_{1}\) and \(x,y\in V_{2}\),

$$ \begin{aligned} \bigl\Vert \operatorname{Tan}(x)- \operatorname{Tan}(y) \bigr\Vert &=\max \bigl\{ \bigl\vert \tan\bigl(x(j) \bigr)-\tan\bigl(y(j)\bigr) \bigr\vert ,0 \leq j\leq k\bigr\} \\ & =\max \bigl\{ \bigl\vert \operatorname{sec}^{2}\xi \bigl(x(j)-y(j)\bigr) \bigr\vert ,0\leq j\leq k\bigr\} \\ & \geq \Vert x-y \Vert , \end{aligned} $$
(20)

where \(\xi \in (-\frac{\pi }{4},\frac{\pi }{4}) \cup (\frac{3\pi }{4}, \frac{5\pi }{4})\). Hence from (19) and (20) it follows that for all \(x,y\in V_{1}\) and \(x,y\in V_{2}\),

$$ \bigl\Vert G_{\varepsilon }(x)-G_{\varepsilon }(y) \bigr\Vert \geq \bigl(\varepsilon -L\max \{1, \lambda \}\bigr) \Vert x-y \Vert . $$

Since \(\varepsilon -L\max \{1, \lambda \}>1\), \(G_{\varepsilon }\) satisfies assumption (ii) of Lemma 6. Together with the result obtained in step 1, by Lemma 6 system (2) with (6) is chaotic in both Li–Yorke and Devaney senses. The proof is complete. □

Theorem 2

Consider the controlled system (3), that is,

$$ x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \cot\bigl(x(n,m)\bigr),\quad n\geq 0, 0\leq m\leq k< +\infty $$

with (6). Suppose that all the conditions in Theorem 1hold. Then for all constants ε, r satisfying

$$ \varepsilon > \max { \biggl\{ }\frac{3\pi }{4}\bigl(1+L\max \{1,\lambda \} \bigr)-f(0,0), \frac{3\pi }{4}\bigl(1+L\max \{1,\lambda \}\bigr)+f(0,0){ \biggr\} } $$

and \(r>3\pi /4\), there exists a Cantor set \(\Lambda \subset [-\frac{3\pi }{4},-\frac{\pi }{4}]^{k+1}\cup [ \frac{\pi }{4},\frac{3\pi }{4}]^{k+1}\) such that system (3) with (6) is chaotic on Λ in both Li–Yorke and Devaney senses.

Proof

We use Lemmas 5 and 6. The induced system of (3) with (6) is

$$ x_{n+1}=F(x_{n})+\varepsilon \operatorname{Cot}(x_{n}):=H_{\varepsilon }(x_{n}),\quad n\geq 0, $$

where F is defined in (8), and

$$ \operatorname{Cot}(x_{n})={ \bigl(} \cot\bigl(x(n,0)\bigr), \cot \bigl(x(n,1)\bigr), \ldots , \cot\bigl(x(n,k)\bigr){ \bigr)}^{T}. $$

Let

$$ \widetilde{V}_{1}=\biggl[-\frac{3\pi }{4},- \frac{\pi }{4}\biggr]^{k+1}, \qquad \widetilde{V}_{2}= \biggl[\frac{\pi }{4},\frac{3\pi }{4}\biggr]^{k+1}. $$

Obviously, \(\widetilde{V}_{1}, \widetilde{V}_{2}\subset [-r,r]^{k+1}\) are nonempty, closed, and bounded sets, and \(d(\widetilde{V}_{1},\widetilde{V}_{2})=\pi /2>0\).

First, we show that \(H_{\varepsilon }(\widetilde{V}_{i})\supset \widetilde{V}_{1}\cup \widetilde{V}_{2}\) for \(i=1, 2\).

For each \(x\in \widetilde{V}_{1}\) with \(x(j)=-3\pi /4\), from (6), (9), and (10) it follows that for \(0\leq j\leq k-1\),

$$ \begin{aligned} H_{\varepsilon ,j}(x) &= f\biggl(- \frac{3\pi }{4},x(j+1)\biggr)+ \varepsilon \cot\biggl(-\frac{3\pi }{4} \biggr) \\ & \geq -L \max \biggl\{ \frac{3\pi }{4}, \bigl\vert x(j+1) \bigr\vert \biggr\} +\varepsilon +f(0,0) \\ & =-\frac{3\pi }{4}L+\varepsilon +f(0,0)\geq \frac{3\pi }{4},\end{aligned} $$
(21)

and for \(j= k\),

$$ \begin{aligned} H_{\varepsilon ,k}(x) &= f\biggl(- \frac{3\pi }{4},\varphi \bigl(x(p)\bigr)\biggr)+ \varepsilon \cot\biggl(- \frac{3\pi }{4}\biggr) \\ & \geq -L \max \biggl\{ \frac{3\pi }{4},\lambda \bigl\vert x(p) \bigr\vert \biggr\} + \varepsilon +f(0,0) \\ & =-\frac{3\pi }{4}L\max \{1,\lambda \}+\varepsilon +f(0,0) \geq \frac{3\pi }{4}.\end{aligned} $$
(22)

For each \(x\in \widetilde{V}_{1}\) with \(x(j)=-\pi /4\), from (6), (9), and (10) it follows that for \(0\leq j\leq k-1\),

$$ \begin{aligned} H_{\varepsilon ,j}(x) &= f\biggl(- \frac{\pi }{4},x(j+1)\biggr)+ \varepsilon \cot\biggl(-\frac{\pi }{4} \biggr) \\ & \leq L\max \biggl\{ \frac{\pi }{4}, \bigl\vert x(j+1) \bigr\vert \biggr\} -\varepsilon +f(0,0) \\ & \leq \frac{3\pi }{4}L-\varepsilon +f(0,0)\leq - \frac{3\pi }{4},\end{aligned} $$
(23)

and for \(j=k\),

$$ \begin{aligned} H_{\varepsilon ,k}(x) &= f\biggl(- \frac{\pi }{4},\varphi \bigl(x(p)\bigr)\biggr)+ \varepsilon \cot\biggl(- \frac{\pi }{4}\biggr) \\ & \leq L \max \biggl\{ \frac{\pi }{4},\lambda \bigl\vert x(p) \bigr\vert \biggr\} - \varepsilon +f(0,0) \\ & \leq \frac{3\pi }{4}L\max \{1,\lambda \}-\varepsilon +f(0,0) \leq - \frac{3\pi }{4}.\end{aligned} $$
(24)

For each \(x\in \widetilde{V}_{2}\) with \(x(j)=\pi /4\), for \(0\leq j\leq k-1\),

$$ \begin{aligned} H_{\varepsilon ,j}(x) &= f\biggl( \frac{\pi }{4},x(j+1)\biggr)+ \varepsilon \cot\biggl(\frac{\pi }{4} \biggr) \\ & \geq -L \max \biggl\{ \frac{\pi }{4}, \bigl\vert x(j+1) \bigr\vert \biggr\} +\varepsilon +f(0,0) \\ & \geq -\frac{3\pi }{4}L+\varepsilon +f(0,0)\geq \frac{3\pi }{4},\end{aligned} $$
(25)

and for \(j= k\),

$$ \begin{aligned} H_{\varepsilon ,k}(x) &= f\biggl( \frac{\pi }{4},\varphi \bigl(x(p)\bigr)\biggr)+ \varepsilon \cot\biggl( \frac{\pi }{4}\biggr) \\ & \geq -L \max \biggl\{ \frac{\pi }{4},\lambda \bigl\vert x(p) \bigr\vert \biggr\} + \varepsilon +f(0,0) \\ & \geq -\frac{3\pi }{4}L\max \{1,\lambda \}+\varepsilon +f(0,0) \geq \frac{3\pi }{4}.\end{aligned} $$
(26)

For each \(x\in \widetilde{V}_{2}\) with \(x(j)=3\pi /4\), for \(0\leq j\leq k-1\),

$$ \begin{aligned} H_{\varepsilon ,j}(x) &= f\biggl( \frac{3\pi }{4},x(j+1)\biggr)+ \varepsilon \cot\biggl(\frac{3\pi }{4} \biggr) \\ & \leq L \max \biggl\{ \frac{3\pi }{4}, \bigl\vert x(j+1) \bigr\vert \biggr\} -\varepsilon +f(0,0) \\ & =\frac{3\pi }{4}L-\varepsilon +f(0,0)\leq - \frac{3\pi }{4},\end{aligned} $$
(27)

and for \(j=k\),

$$ \begin{aligned} H_{\varepsilon ,k}(x) &= f\biggl( \frac{3\pi }{4},\varphi \bigl(x(p)\bigr)\biggr)+ \varepsilon \cot\biggl( \frac{3\pi }{4}\biggr) \\ & \leq L\max \biggl\{ \frac{3\pi }{4},\lambda \bigl\vert x(p) \bigr\vert \biggr\} - \varepsilon +f(0,0) \\ & \leq \frac{3\pi }{4}L\max \{1,\lambda \}-\varepsilon +f(0,0) \leq - \frac{3\pi }{4}.\end{aligned} $$
(28)

By the intermediate value theorem and (21)–(28), we have \(H_{\varepsilon }(\widetilde{V}_{i})\supset \widetilde{V}_{1}\cup \widetilde{V}_{2}\), \(i=1, 2\). So by Lemma 5 system (3) with (6) is chaotic in the Li–Yorke sense.

Next, we show that \(H_{\varepsilon }\) satisfies assumption (ii) in Lemma 6.

By Lagrange’s mean value theorem we can verify that for all \(x,y\in \widetilde{V}_{1}\) and \(x,y\in \widetilde{V}_{2}\),

$$ \begin{aligned} \bigl\Vert \operatorname{Cot}(x)- \operatorname{Cot}(y) \bigr\Vert &=\max \bigl\{ \bigl\vert \cot\bigl(x(j) \bigr)-\cot\bigl(y(j)\bigr) \bigr\vert ,0 \leq j\leq k\bigr\} \\ & =\max \bigl\{ \bigl\vert -\operatorname{csc}^{2}\theta \bigl(x(j)-y(j)\bigr) \bigr\vert ,0\leq j\leq k\bigr\} \\ & \geq \Vert x-y \Vert , \end{aligned} $$

where \(\theta \in (-\frac{3\pi }{4},-\frac{\pi }{4}) \cup (\frac{\pi }{4}, \frac{3\pi }{4})\). Hence, by (19), for all \(x,y\in \widetilde{V}_{1}\) and \(x,y\in \widetilde{V}_{2}\),

$$ \bigl\Vert H_{\varepsilon }(x)-H_{\varepsilon }(y) \bigr\Vert \geq \bigl(\varepsilon -L\max \{1, \lambda \}\bigr) \Vert x-y \Vert . $$

Since \(\varepsilon >\frac{3}{4}\pi (1+L\max \{1,\lambda \})\), we have \(\varepsilon -L\max \{1, \lambda \}>1\). Thus \(H_{\varepsilon }\) satisfies assumption (ii) in Lemma 6. By Lemma 6 system (3) with (6) is chaotic in both Li–Yorke and Devaney senses. This completes the proof. □

Now we consider the controlled systems (4) and (5). For convenience, we give a periodic boundary condition for Eq. (1):

$$ x(n,k+1)=x(n,0),\quad n\geq 0. $$
(29)

We have the following two results.

Theorem 3

Consider the controlled system (4), that is,

$$ x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \tan\bigl(x(n,m+1)\bigr),\quad n \geq 0, 0\leq m\leq k< +\infty , $$

with (29). Suppose that condition (i) in Theorem 1holds. Then all the results in Theorem 1hold for system (4) with (29), except that \(\max \{1, \lambda \}\) in Theorem 1is replaced by 1.

Proof

The induced system of (4) with (29) can be written as

$$ x_{n+1}=\widetilde{F}(x_{n})+\varepsilon \operatorname{Tan}(\widehat{x}_{n}):= \widetilde{G}_{\varepsilon }(x_{n}),\quad n\geq 0, $$

where

$$\begin{aligned}& \widetilde{F}(x_{n})={ \bigl(}f\bigl(x(n,0),x(n,1)\bigr),f \bigl(x(n,1),x(n,2)\bigr),\ldots ,f\bigl(x(n,k), x(n,0)\bigr){ \bigr)}^{T}, \\& \operatorname{Tan}(\widehat{x}_{n})={ \bigl(}\tan\bigl(x(n,1)\bigr), \tan\bigl(x(n,2)\bigr), \ldots , \tan\bigl(x(n,k)\bigr), \tan\bigl(x(n,0)\bigr){ \bigr)}^{T}. \end{aligned}$$
(30)

Let \(V_{1}\) and \(V_{2}\) be the same as in Theorem 1. We divide the proof into two parts.

Step 1. System (4) with (29) is chaotic in the Li–Yorke sense.

For each \(x\in V_{1}\) with \(x(j+1)=-\pi /4\), from (9) it follows that for \(0\leq j\leq k-1\),

$$ \begin{aligned} \widetilde{G}_{\varepsilon ,j}(x) &=f \bigl(x(j),x(j+1)\bigr)+\varepsilon \tan\bigl(x(j+1)\bigr) \\ & =f\biggl(x(j),-\frac{\pi }{4}\biggr)+\varepsilon \tan\biggl(- \frac{\pi }{4}\biggr) \\ & \leq L \max \biggl\{ \bigl\vert x(j) \bigr\vert ,\frac{\pi }{4} \biggr\} -\varepsilon +f(0,0) \\ & =\frac{\pi }{4}L-\varepsilon +f(0,0)\leq -\frac{\pi }{4},\end{aligned} $$
(31)

and for \(j=k\), from (9) and (29) it follows that \(x(k+1)=x(0)=-\pi /4\), so that

$$ \begin{aligned} \widetilde{G}_{\varepsilon ,k}(x) &=f\bigl(x(k),x(0) \bigr)+\varepsilon \tan\bigl(x(0)\bigr) \\ & =f\biggl(x(k),-\frac{\pi }{4}\biggr)+\varepsilon \tan\biggl(- \frac{\pi }{4}\biggr) \\ & \leq L \max \biggl\{ \bigl\vert x(k) \bigr\vert ,\frac{\pi }{4} \biggr\} -\varepsilon +f(0,0) \\ & =\frac{\pi }{4}L-\varepsilon +f(0,0)\leq -\frac{\pi }{4}.\end{aligned} $$
(32)

For each \(x\in V_{1}\) with \(x(j+1)=\pi /4\), by (9) and (29), \(x(k+1)=x(0)=\pi /4\) for \(j=k\). Therefore for \(0\leq j\leq k\),

$$ \begin{aligned} \widetilde{G}_{\varepsilon ,j}(x) &= f\biggl(x(j), \frac{\pi }{4}\biggr)+\varepsilon \tan\biggl(\frac{\pi }{4}\biggr) \\ & \geq -L \max \biggl\{ \bigl\vert x(j) \bigr\vert ,\frac{\pi }{4} \biggr\} +\varepsilon +f(0,0) \\ & =-\frac{\pi }{4}L+\varepsilon +f(0,0)\geq \frac{5\pi }{4}.\end{aligned} $$
(33)

For each \(x\in V_{2}\) with \(x(j+1)=3\pi /4\), \(0\leq j\leq k\), from (9) and (29) it follows that

$$ \begin{aligned} \widetilde{G}_{\varepsilon ,j}(x) &= f\biggl(x(j), \frac{3\pi }{4}\biggr)+\varepsilon \tan\biggl(\frac{3\pi }{4}\biggr) \\ & \leq L \max \biggl\{ \bigl\vert x(j) \bigr\vert ,\frac{3\pi }{4} \biggr\} -\varepsilon +f(0,0) \\ & \leq \frac{5\pi }{4}L-\varepsilon +f(0,0)\leq - \frac{\pi }{4},\end{aligned} $$
(34)

and for each \(x\in V_{2}\) with \(x(j+1)=5\pi /4\), \(0\leq j\leq k\), we have

$$ \begin{aligned} \widetilde{G}_{\varepsilon ,j}(x) &= f\biggl(x(j), \frac{5\pi }{4}\biggr)+\varepsilon \tan\biggl(\frac{5\pi }{4}\biggr) \\ & \geq -L \max \biggl\{ \bigl\vert x(j) \bigr\vert ,\frac{5\pi }{4} \biggr\} +\varepsilon +f(0,0) \\ & =-\frac{5\pi }{4}L+\varepsilon +f(0,0)\geq \frac{5\pi }{4}.\end{aligned} $$
(35)

By the intermediate value theorem and (31)–(35) we have \(\widetilde{G}_{\varepsilon }(V_{i})\supset V_{1}\cup V_{2}\), \(i=1, 2\). Therefore by Lemma 5 system (4) with (29) is chaotic in the Li–Yorke sense.

Step 2. System (4) with (29) is chaotic in both Li–Yorke and Devaney senses.

Since \(V_{1},V_{2}\subset [-r,r]^{k+1}\), from (9) and (29) it follows that for all \(x,y\in V_{1}\) and \(x,y\in V_{2}\),

$$ \begin{aligned} \bigl\Vert \widetilde{F}(x)-\widetilde{F}(y) \bigr\Vert &=\max \bigl\{ \bigl\vert f\bigl(x(j),x(j+1)\bigr) -f\bigl(y(j),y(j+1) \bigr) \bigr\vert , 0\leq j\leq k\bigr\} \\ &\leq L\max \bigl\{ \bigl\vert x(j)-y(j) \bigr\vert , 0\leq j\leq k\bigr\} \\ & =L \Vert x-y \Vert .\end{aligned} $$
(36)

On the other hand, by Lagrange’s mean value theorem, for all \(x,y\in V_{1}\) and \(x,y\in V_{2}\),

$$ \begin{aligned} \bigl\Vert \operatorname{Tan}(\widehat{x})- \operatorname{Tan}(\widehat{y}) \bigr\Vert &=\max \bigl\{ \bigl\vert \tan \bigl(x(j)\bigr)- \tan\bigl(y(j)\bigr) \bigr\vert ,0\leq j\leq k\bigr\} \\ & =\max \bigl\{ \bigl\vert \operatorname{sec}^{2}\eta \bigl(x(j)-y(j)\bigr) \bigr\vert ,0\leq j\leq k\bigr\} \\ & \geq \Vert x-y \Vert , \end{aligned} $$
(37)

where \(\eta \in (-\frac{\pi }{4},\frac{\pi }{4}) \cup (\frac{3\pi }{4}, \frac{5\pi }{4})\). Hence from (36) and (37) it follows that

$$ \bigl\Vert \widetilde{G}_{\varepsilon }(x)-\widetilde{G}_{\varepsilon }(y) \bigr\Vert \geq (\varepsilon -L) \Vert x-y \Vert , \quad \forall x,y\in V_{1} \mbox{ or } x,y \in V_{2}. $$

Since \(\varepsilon -L>1\), \(\widetilde{G}_{\varepsilon }\) satisfies assumption (ii) of Lemma 6. Together with the result obtained in step 1, by Lemma 6 system (4) with (29) is chaotic in both Li–Yorke and Devaney senses. This completes the proof. □

Remark 1

The boundary conditions imposed on systems (2)–(3) and (4)–(5) are different. If (6) is imposed on system (4), then in (32), \(x(k+1)=\varphi (x(p))=-\pi /4\), \(0\leq p\leq k\), but we cannot ensure that \(x(p)\in [-\frac{\pi }{4}, \frac{\pi }{4}]\). Thus \(x\in V_{1}\) may not hold. Therefore (29) is imposed on systems (4) and (5).

Theorem 4

Consider the controlled system (5), that is,

$$ x(n+1,m)=f\bigl(x(n,m),x(n,m+1)\bigr)+\varepsilon \cot\bigl(x(n,m+1)\bigr),\quad n \geq 0, 0\leq m\leq k< +\infty , $$

with (29). Suppose that condition (i) in Theorem 1holds. Then all the results in Theorem 2hold for system (5) with (29), where \(\max \{1, \lambda \}=1\).

Proof

We use Lemmas 5 and 6. Let

$$ x_{n+1}=\widetilde{F}(x_{n})+\varepsilon \operatorname{Cot}(\widehat{x}_{n}):= \widetilde{H}_{\varepsilon }(x_{n}),\quad n\geq 0, $$

be the induced system of system (5) with (29), where is defined in (30), and

$$ \operatorname{Cot}(\widehat{x}_{n})={ (} \cot\bigl(x(n,1)\bigr), \cot\bigl(x(n,2)\bigr), \ldots , \cot\bigl(x(n,k),\cot\bigl(x(n,0)\bigr){ \bigr)}^{T}. $$

Let \(\widetilde{V}_{1}\) and \(\widetilde{V}_{2}\) be the same as in Theorem 2.

For each \(x\in \widetilde{V}_{1}\) with \(x(j+1)=-3\pi /4\), \(0\leq j\leq k\), from (9) and (29) it follows that

$$ \begin{aligned} \widetilde{H}_{\varepsilon ,j}(x) &= f\biggl(x(j),- \frac{3\pi }{4}\biggr)+\varepsilon \cot\biggl(-\frac{3\pi }{4}\biggr) \\ & \geq -L \max \biggl\{ \bigl\vert x(j) \bigr\vert ,\frac{3\pi }{4} \biggr\} +\varepsilon +f(0,0) \\ & =-\frac{3\pi }{4}L+\varepsilon +f(0,0)\geq \frac{3\pi }{4},\end{aligned} $$
(38)

and for each \(x\in \widetilde{V}_{1}\) with \(x(j+1)=-\pi /4\), \(0\leq j\leq k\), from (9) and (29) it follows that

$$ \begin{aligned} \widetilde{H}_{\varepsilon ,j}(x) &= f\biggl(x(j),- \frac{\pi }{4}\biggr)+\varepsilon \cot\biggl(-\frac{\pi }{4}\biggr) \\ & \leq L\max \biggl\{ \bigl\vert x(j) \bigr\vert , \frac{\pi }{4} \biggr\} -\varepsilon +f(0,0) \\ & \leq \frac{3\pi }{4}L-\varepsilon +f(0,0)\leq - \frac{3\pi }{4}.\end{aligned} $$
(39)

By the intermediate value theorem and (38)–(39) we have \(\widetilde{H}_{\varepsilon }(\widetilde{V}_{1})\supset \widetilde{V}_{1} \cup \widetilde{V}_{2}\). Similarly, we can prove that \(\widetilde{H}_{\varepsilon }(\widetilde{V}_{2})\supset \widetilde{V}_{1} \cup \widetilde{V}_{2}\).

By Lagrange’s mean value theorem we can verify that for all \(x,y\in \widetilde{V}_{1}\) and \(x,y\in \widetilde{V}_{2}\),

$$ \begin{aligned} \bigl\Vert \operatorname{Cot}(\widehat{x})- \operatorname{Cot}(\widehat{y}) \bigr\Vert &=\max \bigl\{ \bigl\vert \cot \bigl(x(j)\bigr)- \cot\bigl(y(j)\bigr) \bigr\vert ,0\leq j\leq k\bigr\} \\ & =\max \bigl\{ \bigl\vert -\operatorname{csc}^{2}\theta \bigl(x(j)-y(j)\bigr) \bigr\vert ,0\leq j\leq k\bigr\} \\ & \geq \Vert x-y \Vert , \end{aligned} $$

where \(\theta \in (-\frac{3\pi }{4},-\frac{\pi }{4}) \cup (\frac{\pi }{4}, \frac{3\pi }{4})\). Together with (36), for all \(x,y\in \widetilde{V}_{1}\) and \(x,y\in \widetilde{V}_{2}\), we have

$$ \bigl\Vert \widetilde{H}_{\varepsilon }(x)-\widetilde{H}_{\varepsilon }(y) \bigr\Vert \geq (\varepsilon -L) \Vert x-y \Vert , $$

where \(\varepsilon >\frac{3\pi }{4}(1+L)>1+L\). By Lemma 6 system (5) with (29) is chaotic in both Li–Yorke and Devaney senses. This completes the proof. □

4 Examples

In this section, we discuss three examples with computer simulations.

Example 1

Consider the controlled system (2) with (6), where

$$ f(x,y)= \textstyle\begin{cases} \frac{1}{32}xy+\frac{1}{2}\pi , & x,y\in [-4,4], \\ \frac{1}{2}^{|xy|}, & \mbox{else}, \end{cases} $$

and

$$ \varphi (x)=\frac{1}{2}x, \quad \forall x \in {\mathbf{R}}. $$

It is evident that \(|f_{x}(x,y)|+|f_{y}(x,y)|\leq 1/4\) for all \(x,y\in [-4,4]\), that is,

$$ \bigl\vert f(x_{1},y_{1})-f(x_{2},y_{2}) \bigr\vert \leq \frac{1}{4}\max \bigl\{ \vert x_{1}-x_{2} \vert , \vert y_{1}-y_{2} \vert \bigr\} ,\quad \forall x_{1},x_{2},y_{1},y_{2}\in [-4,4]. $$

Thus f and φ satisfy all the assumptions in Theorem 1 with \(r=4\), \(L=1/4\), \(\lambda =1/2\), and \(f(0,0)=\pi /2\). By Theorem 1, for any \(\varepsilon >17\pi /16\), there exists a Cantor set \(\Lambda \subset [-\frac{1}{4}\pi ,\frac{1}{4}\pi ]^{k+1}\cup [ \frac{3}{4}\pi ,\frac{5}{4}\pi ]^{k+1}\) such that the controlled system is chaotic on Λ in both Li–Yorke and Devaney senses. Two simulation results on two-dimensional plane \((x(\cdot , 0), x(\cdot , 1))\) and three-dimensional space \((x(\cdot , 0), x(\cdot , 1), x(\cdot , 2))\) are given in Fig. 1 for \(p=1\), \(k=1,2\), and \(\varepsilon =9\pi /8\), which exhibit complicated dynamical behaviors of the controlled system on Λ.

Figure 1
figure 1

Simulations for system (2) with (6), where \(n=0, 1, \ldots , 10\text{,}000\) and \(p=0\). In the 2-D graph, the initial values are taken as \(x(0,0)=0.1\) and \(x(0,1)=-0.1\). The initial values are \(x(0,0)=0.1\), \(x(0,1)=-0.1\), and \(x(0,2)=0.1\) in the 3-D graph

Example 2

Consider the controlled system (3) with (6), where

$$ f(x,y)= \textstyle\begin{cases} \frac{1}{9}x^{2}+\frac{1}{3}y, & x,y\in [-3,3], \\ \cos (x+y), & \mbox{else}, \end{cases} $$
(40)

and

$$ \varphi (x)=\frac{4}{3}x,\quad \forall x \in {\mathbf{R}}. $$

Obviously, \(f(0,0)=0\) and \(|f_{x}(x,y)|+|f_{y}(x,y)|\leq 1\) for all \(x,y\in [-3,3]\), which implies that

$$ \bigl\vert f(x_{1},y_{1})-f(x_{2},y_{2}) \bigr\vert \leq \max \bigl\{ \vert x_{1}-x_{2} \vert , \vert y_{1}-y_{2} \vert \bigr\} ,\quad \forall x_{1},x_{2},y_{1},y_{2}\in [-3,3]. $$

Hence f and φ satisfy all the assumptions in Theorem 2 with \(r=3\), \(L=1\), \(\lambda =4/3\). Thus, by Theorem 2, for any constant \(\varepsilon >7\pi /4\), there exists a Cantor set \(\Lambda \subset [-\frac{3}{4}\pi ,-\frac{1}{4}\pi ]^{k+1}\cup [ \frac{1}{4}\pi ,\frac{3}{4}\pi ]^{k+1}\) such that the controlled system (3) with (6) is chaotic on Λ in both Li–Yorke and Devaney senses. Two simulation results are shown in Fig. 2 for \(p=1\) and \(\varepsilon =2\pi \), which indicate that the controlled system has very complicated dynamical behaviors on Λ.

Figure 2
figure 2

Simulations for system (3) with (6), where \(n=0, 1, \ldots , 10\text{,}000\) and \(p=1\). In the 2-D graph, \(k=1\), and the initial values are \(x(0,0)=1\), \(x(0,1)=-0.1\). In the 3-D graph, \(k=2\), and the initial value are \(x(0,0)=0.1\), \(x(0,1)=-0.1\), and \(x(0,2)=0.1\)

Example 3

Consider the controlled system (5) with (29), where \(f(x,y)\) is (40). By the previous discussion, f satisfies all the assumptions in Theorem 4 with \(r=3\) and \(L=1\). Thus, by Theorem 4, for any constant \(\varepsilon >3\pi /2\), there exists a Cantor set \(\Lambda \subset [-\frac{3}{4}\pi ,-\frac{1}{4}\pi ]^{k+1}\cup [ \frac{1}{4}\pi ,\frac{3}{4}\pi ]^{k+1}\) such that the controlled system is chaotic on Λ in both Li–Yorke and Devaney senses. Simulation results are shown in Fig. 3 for \(\varepsilon =2\pi \), which show that the controlled system has very complicated dynamical behaviors on Λ.

Figure 3
figure 3

Simulations for system (5) with (29), where \(n=0, 1, \ldots , 10\text{,}000\). In the 2-D graph, \(k=1\), and the initial values are \(x(0,0)=1\), \(x(0,1)=-0.1\). In the 3-D graph, \(k=2\), and the initial values are \(x(0,0)=0.1\), \(x(0,1)=-0.1\), and \(x(0,2)=0.1\)