  In this letter, by regarding finite-time stability as an inverse problem, we
reveal the essence of finite-time stability and fixed-time stability. Some
necessary and sufficient conditions are given. As application, we give a new
approach for finite-time and fixed-time synchronization and consensus. Many
existing results can be derived by the general approach.
