Typically, $u(x)$ is a nonlinear function of x that contains some parameters and gains which can be selected to make $\dot{V} (x) < 0$, and thus ensures that the closed-loop system is asymptotically stable.
In [6]:
from tools import*
x1,x2,x3,x4,x5,x6 = def_states('x',6,True)
u1,u2,u3 = def_states('u',3,True)
In [16]:
x1d = x**2
x2d = u1
x3d = []
x4d = []
x5d = []
x6d = []
v = (x1**2 + x2**2)/2
vd = v.diff(t)
vd
Out[16]:
In [17]:
vd = vd.subs(Derivative(x1), x1d)
vd = vd.subs(Derivative(x2), x2d)
Out[17]:
In [ ]: