Anxiety comes from realistic sources in the external world and conflict within one’s own mind. A common conflict is when the id desires something that ego and/or superego don’t agree with. An important function of the ego is to operate defense mechanisms.
Psychological defenses are the way we deal with anxiety:
Denial
Denies source of anxiety exists (I didn’t fail my exam, it must be a mistake. Man keeps setting the table after his wife has left him; denying therefore that she has left. Denial often shows up in daydreams and fantasies. Daydreaming about how things might have been is a common way we cope with anxiety by denying that things happened the way they did).
Repression
Banishing the memory: banishing old, bad memories, or even current things. (For example, you might fancy fondling the leg of the person next to you and this could cause you anxiety so you repress the desire!).
Regression
Moving back to an earlier stage (when highly stressed, we abandon adult coping strategies and move back to the stage at which we are fixated; e.g. stressed: oral personality might smoke more; anal character may become even more compulsive and obstinate than usual).
Reaction formation
Doing or thinking the opposite (woman who is angry with boss goes out of her way to be kind and courteous; one of the hallmarks of reaction formation is excessive behaviour)
Projection
Ascribing unwanted impulse to someone else (the unfaithful husband who is extremely jealous of his wife, always suspecting she might be unfaithful; George Pell).
Rationalization
Finding a rational explanation for something you’ve done wrong. (You didn’t fail the exam because you didn’t study hard enough but because I set bad questions. Your boyfriend breaks up with you and you rationalize that you never really liked him that much anyway).
Intellectualization
Turn the feeling into a thought the person who finds his/her partner has cancer, deals with it