I have the following system:
$$x_1' = x_2$$ $$x_2' = f(x_1, x_2, x_2^{ref})$$
In this system, $x_1$ and $x_2$ are state variables (e.g. position and velocity) while $x_2^{ref}$ is a possibly changing reference value for $x_2$ (e.g. the velocity desired by a pilot). The function $f$ is some control law for driving $x_2$ to $x_2^{ref}$.
I want to impose constraints on $x_2^{ref}$ in order to ensure that $x_1$ stays in some safe region. More precisely, I want some $C$ such that if $x_2^{ref} \in C(x_1, x_2)$, then for all trajectories of the system, $x_1(t) \in S$ for some set $S \subseteq \mathcal{R}$ (assuming necessary initial conditions). That is, C gives a set of safe values for $x_2^{ref}$ (e.g. safe velocities) as a function of $x_1$ and $x_2$.
How can I approach this problem? Are there techniques from control theory? What about if $f$ is linear?
If $f$ is invertible, then you can take a two step process: