Functional analysis is a method used to determine the function of problem behaviors through descriptive assessment, indirect assessment, and direct observation of behavior under different conditions. There are typically four functions of problem behavior - attention, access to reinforcers, automatic reinforcement, and escape from demands. Understanding the function allows for targeted interventions, such as teaching an alternative to escape or providing non-contingent reinforcement to reduce attention-seeking behavior.