Keywords

1 Introduction

The paper is devoted to the discussion of properties of classical solutions to generalized multidimensional time-fractional diffusion problems. We shall derive the corresponding maximum/minimum principles and apply them in control of the sign of the solutions.

We consider the time-fractional diffusion problem with the equation including scale function-dependent fractional derivative:

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z],t}u(x,t) = L(u) +F(x,t) \quad (x,t) \in \varOmega _T:= G\times (0,T], \end{aligned}$$
(1)

where operator L looks as follows

$$\begin{aligned} L(u) = \sum _{k=1}^{n} \left( p(x)\frac{\partial ^2 u}{\partial x_k^2} + \frac{\partial p}{\partial x_k} \frac{\partial u}{\partial x_k}\right) -q(x)u \end{aligned}$$
(2)
$$\begin{aligned} =p(x)\varDelta u+(grad (p),grad (u)) -q(x)u, \end{aligned}$$

functions \(p\in C^1(\bar{G}), \; q\in C(\bar{G})\) fulfill conditions \(p(x)>0, \; q(x)\ge 0, \; \forall x\in \bar{G}\), G is an open and bounded region in \(R^n\), \(\bar{G}\) denotes its closure.

Diffusion equation (1) is subjected to the following initial condition

$$\begin{aligned} u|_{t=0} =u_0(x), \quad x\in \bar{G} \end{aligned}$$
(3)

and boundary condition

$$\begin{aligned} u|_S =v(x,t), \quad (x,t)\in S\times [0,T], \end{aligned}$$
(4)

where S is the boundary of region \(G\in R^n \).

The diffusion and advection-diffusion including the generalized fractional derivative were introduced in [1, 2]. Their solutions and properties were studied by means of numerical methods [13]. Our aim is to derive the analytical results describing the solutions via maximum/minimum principles. These theorems are developed in the classical differential equations theory as well as in the time-fractional diffusion problems [47] and are an important tool in proving the uniqueness results and theorems on continuous dependence of solutions on the problem data. We shall obtain analogous maximum/minimum theorems for models with a fractional time-derivative dependent on the scale function.

The paper is organized as follows. Section 2 contains definitions of the classical solution and of the generalized fractional derivative of the Caputo type, its properties and the preliminary results on the existence condition for maximum and minimum. The version, known in calculus for the first-order derivative, is extended to the case of a two function-dependent fractional derivative. The next part, Sect. 3, includes our main results - maximum and minimum principles for the diffusion problem with the generalized Caputo derivative with respect to the time variable and their application in controlling the sign of the classical solution. The brief conclusion section closes the paper.

2 Preliminaries

In this section, we introduce the basic definitions and properties of the generalized fractional derivative and prove the necessary conditions of the extremum existence expressed in terms of this operator.

First, we recall the notion of the classical solution and define the generalized time-fractional derivative appearing in Eq. (1). In the definition of the classical solution, we restrict the source function and the functions determining the initial and boundary conditions to the continuous ones.

Definition 1

Function u, determined in region \(\bar{\varOmega }_T:= \bar{G} \times [0,T]\) will be called a classical solution to problem (1)–(4) with \(F\in C(\varOmega _T), u_0\in C(\bar{G}), v\in C(S\times [0,T]) \) iff

$$\begin{aligned} u\in CW_T(G):= C(\bar{\varOmega }_T) \cap W^{1}_{t}\left( (0,T)\right) \cap C^2_x (G) \end{aligned}$$
(5)

and u fulfills Eq. (1), initial condition (3) and boundary condition (4). \(W^1_t \left( (0,T)\right) \subset C^1 \left( (0,T]\right) \) is a function space such that \(f\in W^1_t \left( (0,T)\right) \Longleftrightarrow f'\in L(0,T) \) i.e. derivatives are determined on (0, T) and absolutely integrable in the Lebesgue sense.

Now, we introduce the scale and weight function-dependent fractional derivative which was defined in [8]. We restrict this brief review to the case of order \(\alpha \in (0,1)\) and the left-sided differential operator of the Caputo type. Let us point out that in fractional calculus analogous derivatives are defined and studied for higher orders, in Caputo and Riemann–Liouville versions and in both cases: as the left- and right-sided operators [8, 9].

Definition 2

Let \(\alpha \in (0,1)\). The generalized (two function-dependent) left derivative of the Caputo type is defined as follows

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z,w]}f(t)=I^{1-\alpha }_{0+; [z,w]}(D_{[z,w,L]}f)(t), \end{aligned}$$
(6)

where \(I^{1-\alpha }_{0+; [z,w]}\) denotes the generalized function-dependent integral operator

$$\begin{aligned} I^{1-\alpha }_{0+; [z,w]}f(t)=\frac{1}{w(t)\varGamma (1-\alpha )}\int _{0}^{t}\frac{w(s)z'(s)f(s)}{[z(t)-z(s)]^{\alpha }}ds \end{aligned}$$
(7)

and the \(D_{[z,w,L]}\)-operator is given below

$$\begin{aligned} D_{[z,w,L]} f(t) = \frac{[w(t)f(t)]'}{w(t)z'(t)}, \end{aligned}$$
(8)

with weight function \(w\in C[0,b]\), scale function \( z\in C^{1}[0,b]\) and \(w>0, \; z'>0\) in interval [0, b].

The above definition extends the notion of the standard Caputo derivative which is recovered in the case:

$$\begin{aligned} z(t)=t \quad w(t)=1 \quad t \in [0,b]. \end{aligned}$$

We refer the reader to the discussion on generalized two-function dependent fractional derivatives (left and right) enclosed in monograph [9] and to further results in [8], where Caputo type derivatives are constructed and studied as well. Let us recall the differentiation formulas for analogs of power functions when \(\beta >0\):

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z,w]}\frac{\left( z(t) - z(0)\right) ^{\beta -1}}{w(t)} = \frac{\varGamma (\beta )}{\varGamma (\beta -\alpha )}\frac{\left( z(t) - z(0)\right) ^{\beta -\alpha -1}}{w(t)}. \end{aligned}$$
(9)

In particular, for \(w=1\) we have the following simpler definition and differentiation formula:

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z]}f(t)=I^{1-\alpha }_{0+; [z]}(D_{[z,L]}f)(t), \end{aligned}$$
(10)

where \(I^{1-\alpha }_{0+; [z]}\) denotes the generalized scale function-dependent integral operator

$$\begin{aligned} I^{1-\alpha }_{0+; [z]}f(t)=\frac{1}{\varGamma (1-\alpha )}\int _{0}^{t}\frac{z'(s)f(s)}{[z(t)-z(s)]^{\alpha }}ds \end{aligned}$$
(11)

and the \(D_{[z,L]}\)-operator is given below

$$\begin{aligned} D_{[z,L]} f(t) = \frac{f'(t)}{z'(t)}, \end{aligned}$$
(12)

with scale function \( z\in C^{1}[0,b]\) and \( z'>0\) in interval [0, b]. The differentiation formula (9) is of the form

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z]}\left( z(t) - z(0)\right) ^{\beta -1} = \frac{\varGamma (\beta )}{\varGamma (\beta -\alpha )}\left( z(t) - z(0)\right) ^{\beta -\alpha -1}. \end{aligned}$$
(13)

Now, we shall extend the necessary condition for the maximum existence which was proved in [46] in the case of the Caputo derivative and in [7] for the Caputo derivative of distributed order. In the theorem below, we formulate the analogous result for the two-function dependent fractional derivative defined by formula (6). It is a known fact from calculus that if function \(f\in W^1_t \left( (0,T)\right) \cap C[0,T]\) attains a maximum at point \(t_0\in (0,T]\), then \(f'(t_0)=0\). It can be expressed as follows in terms of generalized fractional derivatives.

Theorem 1

Let function \(f\in W^{1}_{t}\left( (0,T)\right) \cap C([0,T]) \) attain its maximum on interval [0, T] at point \(s=t_0, t_0 \in (0,T]\). Then, the generalized two function-dependent Caputo derivative of function f fulfills the following inequality for any order \(\alpha \in (0,1)\)

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z,w]}\frac{f}{w}(t_0)\ge 0. \end{aligned}$$
(14)

Proof

We define an auxiliary function:

$$\begin{aligned} g(s):= \frac{f(t_0)-f(s)}{w(s)} \quad s\in [0,T]. \end{aligned}$$
(15)

It is easy to check that function g has the following properties:

$$\begin{aligned} g(s)\ge 0&s\in [0,T] \end{aligned}$$
(16)
$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z,w]}g(t) = -{}^{c}D^{\alpha }_{0+;[z,w]}\frac{f}{w}(t)&t\in [0,T]\end{aligned}$$
(17)
$$\begin{aligned} |g(s)|\le C_{\epsilon } |z(t_0)-z(s)|&s\in [\epsilon ,T], \epsilon \in (0,T), \end{aligned}$$
(18)

which follow from the fact that: \(f\in W^1_t\left( (0,t)\right) , z\in C^{1}[0,T], w\in C[0,T], z'>0, w>0\). Now, we rewrite the derivative and obtain for any \(\epsilon \in (0,t_0)\)

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z,w]}g(t_0) = I^{1-\alpha }_{0+; [z,w]}(D_{[z,w,L]}g)(t_0) \end{aligned}$$
(19)
$$\begin{aligned} =\frac{1}{w(t_0)\varGamma (1-\alpha )}\int _{0}^{t_0}\frac{[w(s)g(s)]'}{[z(t_0)-z(s)]^{\alpha }}ds \end{aligned}$$
$$\begin{aligned} = \frac{1}{w(t_0)\varGamma (1-\alpha )}\int _{0}^{\epsilon }\frac{[w(s)g(s)]'}{[z(t_0)-z(s)]^{\alpha }}ds+\frac{1}{w(t_0)\varGamma (1-\alpha )}\int _{\epsilon }^{t_0}\frac{[w(s)g(s)]'}{[z(t_0)-z(s)]^{\alpha }}ds \end{aligned}$$
$$\begin{aligned} =I_1 +I_2. \end{aligned}$$

Let us note that \(f\in W^1_t\left( (0,t)\right) \) yields \(wg\in W^1_t\left( (0,t)\right) \), therefore \((wg)'\in L\left( (0,T)\right) \), which means that

$$\begin{aligned} \forall \delta>0 \quad \exists \epsilon >0 \quad |I_1|<\delta . \end{aligned}$$
(20)

For the \(I_2\) - part we have

$$\begin{aligned} I_2 = \lim _{s\rightarrow t_0} \frac{(z(t_0)-z(s))^{-\alpha }w(s)g(s)}{w(t_0)\varGamma (1-\alpha )} -\frac{(z(t_0)-z(\epsilon ))^{-\alpha }w(\epsilon )g(\epsilon )}{w(t_0)\varGamma (1-\alpha )} \end{aligned}$$
$$\begin{aligned} + \frac{1}{w(t_0)\varGamma (-\alpha )}\int _{\epsilon }^{t_0}\frac{w(s)g(s)z'(s)}{[z(t_0)-z(s)]^{\alpha +1}}ds. \end{aligned}$$

The limit in the above equality vanishes:

$$\begin{aligned} \lim _{s\rightarrow t_0} \frac{|(z(t_0)-z(s))^{-\alpha }w(s)g(s)|}{w(t_0)\varGamma (1-\alpha )} \end{aligned}$$
$$\begin{aligned} \le ||w|| \lim _{s\rightarrow t_0}\frac{|(z(t_0)-z(s))^{-\alpha }|\cdot C_{\epsilon }|(z(t_0)-z(s))|}{w(t_0)\varGamma (1-\alpha )}=0, \end{aligned}$$

where we applied property (18) and \(||\cdot ||\) denotes the supremum norm in the C[0, T]-space. From \(\varGamma (-\alpha )<0\) for \(\alpha \in (0,1)\) and property (16) we obtain \(I_2 \le 0 \) for any \(\epsilon \in (0,T)\). Next, from properties (17), (20) we obtain (14).\(\square \)

The above theorem holds in the case of the scale function-dependent derivative defined by formula (10) when \(w=1\).

Corollary 1

Let function \(f\in W^{1}_{t}\left( (0,T)\right) \cap C([0,T]) \) attain its maximum on interval [0, T] at point \(s=t_0, t_0 \in (0,T]\). Then, the generalized scale function-dependent Caputo derivative of function f fulfills the following inequality for any order \(\alpha \in (0,1)\)

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z]}f(t_0)\ge 0. \end{aligned}$$
(21)

The necessary condition for the minimum existence can also be expressed in terms of a two function-dependent derivative.

Theorem 2

Let function \(f\in W^{1}_{t}\left( (0,T)\right) \cap C([0,T]) \) attain its minimum on interval [0, T] at point \(s=t_0, t_0 \in (0,T]\). Then, the generalized two function-dependent Caputo derivative of function f fulfills the following inequality for any order \(\alpha \in (0,1)\)

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z,w]}\frac{f}{w}(t_0)\le 0. \end{aligned}$$
(22)

Proof

In the proof, we apply the auxiliary function given in (15). Function g now obeys the inequality:

$$\begin{aligned} g(s)\le 0 \quad s\in [0,T] \end{aligned}$$
(23)

and it also fulfills (17), (18). Similar to the previous proof, we split the derivative and obtain for any \(\epsilon \in (0,t_0)\)

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z,w]}g(t_0) = \end{aligned}$$
(24)
$$\begin{aligned} = \frac{1}{w(t_0)\varGamma (1-\alpha )}\int _{0}^{\epsilon }\frac{[w(s)g(s)]'}{[z(t_0)-z(s)]^{\alpha }}ds+\frac{1}{w(t_0)\varGamma (1-\alpha )}\int _{\epsilon }^{t_0}\frac{[w(s)g(s)]'}{[z(t_0)-z(s)]^{\alpha }}ds \end{aligned}$$
$$\begin{aligned} =I_1 +I_2. \end{aligned}$$

Let us note that again for the first term implication (20) holds. For the \(I_2\) - term we have the equality

$$\begin{aligned} I_2 = \lim _{s\rightarrow t_0} \frac{(z(t_0)-z(s))^{-\alpha }w(s)g(s)}{w(t_0)\varGamma (1-\alpha )} -\frac{(z(t_0)-z(\epsilon ))^{-\alpha }w(\epsilon )g(\epsilon )}{w(t_0)\varGamma (1-\alpha )} \end{aligned}$$
$$\begin{aligned} + \frac{1}{w(t_0)\varGamma (-\alpha )}\int _{\epsilon }^{t_0}\frac{w(s)g(s)z'(s)}{[z(t_0)-z(s)]^{\alpha +1}}ds. \end{aligned}$$

The limit in the above equality vanishes as was shown in the previous proof. From \(\varGamma (-\alpha )<0\) for \(\alpha \in (0,1)\) and property (23) we obtain \(I_2 \ge 0 \) for any \(\epsilon \in (0,T)\). Next, from properties (17), (20) we obtain (22).\(\square \)

From the above necessary condition for the minimum, formulated for the two function-dependent derivative, we obtain the following corollary for the case \(w=1\).

Corollary 2

Let function \(f\in W^{1}_{t}\left( (0,T)\right) \cap C([0,T]) \) attain its minimum on interval [0, T] at point \(s=t_0, t_0 \in (0,T]\). Then, the generalized scale function-dependent Caputo derivative of function f fulfills the following inequality for any order \(\alpha \in (0,1)\)

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z]}f(t_0)\le 0. \end{aligned}$$
(25)

3 Main Results

We shall study the generalized fractional diffusion problem with the diffusion equation (1), the initial condition given in (3) and the boundary conditions determined in (4). Our aim is to derive the maximum and minimum principles for the multidimensional case and to apply these results in a preliminary study of the properties of classical solutions to the problem.

First, applying Corollary 1, we prove the theorem which generalizes the classical maximum principle as well as the result proved in [46] for fractional diffusion problems. We extend the fractional maximum principle to the case, where in the diffusion equation the Caputo derivative with respect to the time-variable is replaced with the scale function-dependent derivative of the Caputo type given in (10).

Theorem 3

Let function \(u\in CW_T (G):= C(\bar{\varOmega }_T)\cap W^{1}_{t}\left( (0,T)\right) \cap C^2_x (G)\) be the classical solution of the generalized time-fractional diffusion equation (1) in region \(\varOmega _T:= G\times (0,T], G\subset R^n\) and let \(F(x,t)\le 0, \;\; (x,t) \in \varOmega _T\). Then, either solution u is non-positive in \(\bar{\varOmega }_T\) or it attains the positive maximum on set \(S^T_G\) which means

$$\begin{aligned} u(x,t) \le \max \{0, \max _{(x,t)\in S^T_G} u(x,t)\} \quad (x,t) \in \bar{\varOmega }_T, \end{aligned}$$
(26)

where \(S^T_G:= (\bar{G}\times \{0\}) \cup (S\times [0,T])\).

Proof

Let us assume that thesis (26) is not valid. Then point \((x_0,t_0), x_0 \in G, 0\le t_0\le T\) exists such that

$$\begin{aligned} u(x_0,t_0)>\max _{(x,t) \in S^{T}_G}\{0,u(x,t)\}=M>0. \end{aligned}$$
(27)

We define number \(\epsilon := u(x_0,t_0)-M>0\) and the following auxiliary function:

$$\begin{aligned} f(x,t):= u(x,t) +\frac{ \epsilon }{2}\frac{z(T)-z(t)}{z(T)} \quad (x,t) \in \bar{\varOmega }_T. \end{aligned}$$
(28)

From this definition and assumptions of the theorem we have:

$$\begin{aligned} f(x,t) \le u(x,t) +\frac{\epsilon }{2} \quad (x,t)\in \bar{\varOmega }_T \end{aligned}$$
$$\begin{aligned} f(x_0,t_0)\ge u(x_0,t_0) = \epsilon +M \ge \epsilon +u(x,t) \ge \epsilon + f(x,t) -\frac{\epsilon }{2}\quad (x,t) \in S^T_G. \end{aligned}$$

From the above inequality we infer that function f cannot attain its maximum on the \(S^T_G\)-part of the boundary of region \(\varOmega _T\). Therefore point \((x_1,t_1) \in \bar{\varOmega }_T\) exists such that \(x_1\in G\) and \(0<t_1\le T\) and function f attains its maximum at \((x_1,t_1)\). At this point the following inequality is fulfilled

$$\begin{aligned} f(x_1,t_1)\ge f(x_0,t_0)\ge \epsilon + M>\epsilon . \end{aligned}$$

From Corollary 1 and the necessary and sufficient conditions of the existence of the maximum in region \(\varOmega _T\) we obtain the following set of conditions

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z],t}f(x_1,t_1) \ge 0\quad \alpha \in (0,1) \end{aligned}$$
$$\begin{aligned} grad (f)|_ {(x_1,t_1)} =0\quad \varDelta f|_{(x_1,t_1)} \le 0 \end{aligned}$$

and the relations for derivatives

$$\begin{aligned}&{}^{c}D^{\alpha }_{0+;[z],t}u(x,t)={}^{c}D^{\alpha }_{0+;[z],t}f(x,t)+\frac{\epsilon }{2z(T)}\frac{(z(t)-z(0))^{1-\alpha }}{\varGamma (2-\alpha )}, \end{aligned}$$
(29)
$$\begin{aligned}&grad(f)=grad(u),\;\;\;\;\;\;\;\varDelta u(x,t) = \varDelta f(x,t).&\end{aligned}$$
(30)

Now, we are ready to test the behavior of the generalized diffusion operator at point \((x_1, t_1)\)

$$\begin{aligned} \left( {}^{c}D^{\alpha }_{0+;[z],t}u(x,t) -L(u)\right) |_{(x_1,t_1)} \end{aligned}$$
$$\begin{aligned} ={}^{c}D^{\alpha }_{0+;[z],t}f(x_1,t_1)+\frac{\epsilon }{2z(T)}\frac{(z(t_1)-z(0))^{1-\alpha }}{\varGamma (2-\alpha )} \end{aligned}$$
$$\begin{aligned} -p(x_1)\varDelta f(x_1,t_1) - \left( grad (p)|_{x_1}, grad (f)|_{(x_1,t_1)}\right) \end{aligned}$$
$$\begin{aligned} +q(x_1)\left( f(x_1,t_1)-\frac{\epsilon }{2}\frac{z(T)-z(t_1)}{z(T)}\right) -F(x_1,t_1) \end{aligned}$$
$$\begin{aligned} \ge \frac{\epsilon }{2z(T)}\frac{(z(t_1)-z(0))^{1-\alpha }}{\varGamma (2-\alpha )}>0. \end{aligned}$$

We note that at point \((x_1,t_1)\) the following inequality holds

$$\begin{aligned} \left( {}^{c}D^{\alpha }_{0+;[z],t}u(x,t) -L(u)\right) |_{(x_1,t_1)}>0, \end{aligned}$$

which means that function u is not a solution to Eq. (1). Therefore the assumption (27) is incorrect and the thesis (26) is valid. \(\square \)

The above theorem is called the maximum principle. We note that in the case \(F(x,t)\ge 0\) an analogous result can be formulated. We prove the minimum principle below. The proof is analogous to the proof of the maximum principle, but we now use the condition from Corollary 2.

Theorem 4

Let function \(u\in CW_T (G):= C(\bar{\varOmega }_T)\cap W^{1}_{t}\left( (0,T)\right) \cap C^2_x (G)\) be the classical solution of the generalized time-fractional diffusion equation (1) in the region \(\varOmega _T:= G\times (0,T], G\subset R^n\) and let \(F(x,t)\ge 0, \;\; (x,t) \in \varOmega _T\). Then, either solution u is non-negative in \(\bar{\varOmega }_T\) or it attains the negative minimum on set \(S^T_G\) which means

$$\begin{aligned} u(x,t) \ge \min \{0, \min _{(x,t)\in S^T_G} u(x,t)\} \quad (x,t) \in \bar{\varOmega }_T, \end{aligned}$$
(31)

where \(S^T_G:= (\bar{G}\times \{0\}) \cup (S\times [0,T])\).

Proof

Let us assume that thesis (31) is not valid. Then point \((x_0,t_0), x_0 \in G, 0\le t_0\le T\) exists such that

$$\begin{aligned} u(x_0,t_0)<\min _{(x,t) \in S^{T}_G}\{0,u(x,t)\}=M_1<0. \end{aligned}$$
(32)

We define number \(\epsilon := u(x_0,t_0)-M_1<0\) and the following auxiliary function:

$$\begin{aligned} f_1(x,t):= u(x,t) +\frac{ \epsilon }{2}\frac{z(T)-z(t)}{z(T)} \quad (x,t) \in \bar{\varOmega }_T. \end{aligned}$$
(33)

From this definition and by assumptions we obtain:

$$\begin{aligned} f_1(x,t) \ge u(x,t) +\frac{\epsilon }{2} \quad (x,t)\in \bar{\varOmega }_T \end{aligned}$$
$$\begin{aligned} f_1(x_0,t_0)\le u(x_0,t_0) = \epsilon +M_1 \le \epsilon +u(x,t) \le \epsilon + f_1(x,t) -\frac{\epsilon }{2}\quad (x,t) \in S^T_G. \end{aligned}$$

From the above inequality we infer that function \(f_1\) cannot attain its minimum on the \(S^T_G\)-part of the boundary of region \(\varOmega _T\). Therefore point \((x_1,t_1) \in \bar{\varOmega }_T\) exists such that \(x_1\in G\) and \(0<t_1\le T\) and function \(f_1\) attains its minimum at \((x_1,t_1)\). At this point the following inequality is fulfilled

$$\begin{aligned} f_1(x_1,t_1)\le f_1(x_0,t_0)\le \epsilon + M_1<\epsilon . \end{aligned}$$

From Corollary 2 and the necessary and sufficient conditions of the existence of the minimum in region \(\varOmega _T\), we obtain the following set of conditions

$$\begin{aligned} {}^{c}D^{\alpha }_{0+;[z],t}f_1(x_1,t_1) \le 0\quad \alpha \in (0,1) \end{aligned}$$
$$\begin{aligned} grad (f_1)|_ {(x_1,t_1)} =0\quad \varDelta f_1|_{(x_1,t_1)} \ge 0 \end{aligned}$$

and the relations for derivatives (29), (30), where we have replaced function f by \(f_1\), hold. Now, we analyze the behavior of the generalized diffusion operator at point \((x_1, t_1)\)

$$\begin{aligned} \left( {}^{c}D^{\alpha }_{0+;[z],t}u(x,t) -L(u)\right) |_{(x_1,t_1)} \end{aligned}$$
$$\begin{aligned} ={}^{c}D^{\alpha }_{0+;[z],t}f_1(x_1,t_1)+\frac{\epsilon }{2z(T)}\frac{(z(t_1)-z(0))^{1-\alpha }}{\varGamma (2-\alpha )} \end{aligned}$$
$$\begin{aligned} -p(x_1)\varDelta f_1(x_1,t_1) - \left( grad (p)|_{x_1}, grad (f_1)|_{(x_1,t_1)}\right) \end{aligned}$$
$$\begin{aligned} +q(x_1)\left( f_1(x_1,t_1)-\frac{\epsilon }{2}\frac{z(T)-z(t_1)}{z(T)}\right) -F(x_1,t_1) \end{aligned}$$
$$\begin{aligned} \le \frac{\epsilon }{2z(T)}\frac{(z(t_1)-z(0))^{1-\alpha }}{\varGamma (2-\alpha )}<0. \end{aligned}$$

We note that at point \((x_1,t_1)\) the following inequality holds

$$\begin{aligned} \left( {}^{c}D^{\alpha }_{0+;[z],t}u(x,t) -L(u)\right) |_{(x_1,t_1)}<0, \end{aligned}$$

which means that function u is not a solution to Eq. (1). Therefore the assumption (32) is incorrect and the thesis (31) is valid. \(\square \)

The derived minimum and maximum principles can be applied in generalized fractional diffusion problems to prove the uniqueness results and properties of classical solutions. One of the applications are the following corollaries on controlling the sign of the classical solution.

Corollary 3

Let assumptions of Theorem 4 be fulfilled and

$$\begin{aligned} \min _{(x,t)\in S^T_G} u(x,t) \ge 0. \end{aligned}$$

Then, the classical solution u is non-negative.

Proof

From Theorem 4 we immediately obtain the thesis

$$\begin{aligned} u(x,t)\ge \min \{0, \min _{(x,t)\in S^T_G} u(x,t) \}\ge 0\quad (x,t) \in \bar{\varOmega }_T \end{aligned}$$

which means that in the case \(F(x,t)\ge 0\) we control the value of the classical solution u via the initial and boundary conditions on the \(S^T_G\)-part of the boundary. \(\square \)

Corollary 4

Let assumptions of Theorem 3 be fulfilled and

$$\begin{aligned} \max _{(x,t)\in S^T_G} u(x,t) \le 0. \end{aligned}$$

Then, the classical solution u is non-positive.

4 Conclusion

In the paper, we extended the necessary conditions for the extremum existence to the version expressed in terms of the generalized scale and weight function-dependent fractional derivative. From these conditions, the corollaries follow, where the existence of minimum or maximum at the given point is connected with the corresponding inequality for the left scale and weight function-dependent derivative of the Caputo type.

The obtained necessary conditions were applied in the proof of maximum and minimum principles for time-fractional diffusion problem (1)–(4). These theorems generalize the known classical results as well as the maximum/minimum principle for diffusion problems with a time-fractional Caputo derivative. In the partial differential equations theory, both for the problems of integer and non-integer order, the maximum/minimum principles are applied to prove uniqueness results for classical solutions and to control the sign of the solution. We demonstrated for the generalized diffusion problem of type (1)–(4) that similar results are valid and follow from the maximum/minimum principles. Further applications are still under investigation.