Plant: ẍ = -a·ẋ - b·x + u + d(t), a=1, b=2, x(0)=2, ẋ(0)=0, disturbance d(t)=d·sin(5t), dt=0.01, T=5 s.
In the phase plane the state reaches the sliding surface s=0 from the initial point (orange) and slides along it to the origin (green). The lower panel shows the switching of the control input u(t) (chattering).
For the second-order system $\ddot x = -a\dot x - b x + u + d(t)$ the sliding surface is designed with the states $x_1=x,\ x_2=\dot x$.
Sliding surface $s$; $c$ is the positive coefficient that sets the slope of the surface:
$$s = c\,x_1 + x_2$$Control law combining feedback linearisation with a switching term; $k$ is the switching gain:
$$u = -k\,\mathrm{sign}(s) - c\,x_2 + a\,x_2 + b\,x_1$$Chattering suppression (smoothing) by the boundary layer $\varphi$:
$$\mathrm{sign}(s)\;\longrightarrow\;\tanh(s/\varphi)$$Sliding condition and on-surface dynamics:
$$s\,\dot s \lt 0,\qquad s=0\ \Rightarrow\ \dot x_1 = -c\,x_1$$If $k$ is chosen larger than the disturbance amplitude the reaching condition holds, and once on the surface the convergence is exponential with the rate set by $c$.