If there are two nonlinear systems with stable equilibria $x_1 = x_2 = 0$ $$\dot x_1 = f(x_1, u) \qquad \dot x_2 = g(x_2, u)$$ with identical inputs $u$, is the difference between the system states $x_1, x_2 \in \mathbb{R}^n$ $$e = x_1 - x_2$$ stable?
Trivial case
If the systems are LTI with identical system and input matrices $A$ and $B$ $$f(x_1 = x, u) = g(x_2 = x, u) = Ax + Bu,$$ the system dynamics is $$\dot e = Ae.$$ A Lyapunov function $$V(e) = e^T P e$$ results in $$\dot V(e) = \dot e P e^T + e^T P \dot e = e^T (A^T P + P A) e.$$ If $A$ is Hurwitz, then $A^T P + P A = -Q$ with a positive definite real symmetric $P$ and a positive definite $Q$. As $\dot V(e) = -e^TQe < 0\ \forall x \neq 0$, the difference between the two asymptotically stable LTI systems is asymptotically stable.
My Question
Can this be generalized to arbitrary nonlinear globally/locally/asymptotically/... stable systems,
- where $f = g$? (1)
- where $f \neq g$? (2)
Thought experiment: An equilibrium is stable if for each $\epsilon > 0$, there is a $\delta$ such that with $|| x || < \delta$ at $t = t_0$ the state remains within $|| x || < \epsilon$. Wouldn't that imply that the vector $e$ connecting two $x_1, x_2$ remains within a hypersphere $\mathcal{B}$ that includes both $|| x_1 || < \epsilon_1$ and $|| x_2 || < \epsilon_2$? Then for $|| e || < \min(\delta_1, \delta_2)$ at $t = t_0$, it would hold $|| e || < 2r_\mathcal{B}$ with $r_\mathcal{B}$ radius of $\mathcal{B}$?
At the same time: Starting from $$V(e) = \frac{1}{2} e^T e,$$ I quickly get stuck at $$\dot V(e) = e^T \dot e = e^T \left(f\left(x_1, u\right) - g\left(x_2, u\right)\right) =\ ...?$$
Update
Arastas answer has a counterexample for $f \neq g$ (loosely quoting):
$\dot x_1 = u$ and $\dot x_2 = -u$ leads to $\dot e = 2u$. With $u=1$, we get $e(t) \rightarrow \infty$ for $t \rightarrow \infty$.
In this SISO example, the derivatives of $f$ and $g$ w.r.t. $u$ differ: $$\frac{\partial}{\partial u} f(x_1, u) = 1 \neq -1 = \frac{\partial}{\partial u} g(x_2, u).$$
Speaking more generally, the (transposed) gradient matrices of $f$ and $g$ w.r.t. $u$ differ: $$(\nabla_u f)^T = \frac{\partial}{\partial u} f(x_1, u) \neq \frac{\partial}{\partial u} g(x_2, u) = (\nabla_u g)^T.$$
- What can we say about the stability of $e$ for arbitrary $f, g$, but allowing for restrictions on the gradients $\nabla_u f$, $\nabla_u g$? (3)
If the restriction were made $\nabla_u f = \nabla_u g$, (3) would capture case (1).
Consider $f\ne g$. Let $\dot{x}_1=u$ and $\dot{x}_2=-u$ (Lyapunov stable). Then $\dot{e}=2u$ and for $u=1$ we have $e(t)\to \infty$ -- unstable. If you want your system to be assymptotically stable, then consider $\dot{x}_1=-x_1+u$ and $\dot{x}_2=-x_2-u$. Then for $u=t$ we have $e(t)\to \infty$ -- unstable.
Moreover, you write
Your example is not correct since the ass. stability of an LTI system is not equivalent to $A$ being negative definite. $A$ must be Hurwitz.