Use of first principles in diagnosing complex by