Intelligence has been defined in many ways to include the capacity for logic , understanding , self-awareness , learning , emotional knowledge , reasoning , planning , creativity , and problem solving . It can be more generally described as the ability to perceive or infer information , and to retain it as knowledge to be applied towards adaptive behaviors within an environment or context.