The hedgehog's dilemma, or sometimes the porcupine dilemma, is an analogy about the challenges of human intimacy. It describes a situation in which a group of hedgehogs all seek to become close to one another in order to share heat during cold weather. They must remain apart, however, as they cannot avoid hurting one another with their sharp spines. Though they all share the intention of a close reciprocal relationship, this may not occur for reasons they cannot avoid.
Both Arthur Schopenhauer and Sigmund Freud have used this situation to describe what they feel is the state of individual in relation to others in society. The hedgehog's dilemma suggests that despite goodwill, human intimacy cannot occur without substantial mutual harm, and what results is cautious behavior and weak relationships. With the hedgehog's dilemma, one is recommended to use moderation in affairs with others both because of self-interest, as well as out of consideration for others. The hedgehog's dilemma is used to justify or explain introversion and isolationism.
"A number of porcupines huddled together for warmth on a cold day in winter; but, as they began to prick one another with their quills, they were obliged to disperse. However the cold drove them together again, when just the same thing happened. At last, after many turns of huddling and dispersing, they discovered that they would be best off by remaining at a little distance from one another. In the same way the need of society drives the human porcupines together, only to be mutually repelled by the many prickly and disagreeable qualities of their nature. The moderate distance which they at last discover to be the only tolerable condition of intercourse, is the code of politeness and fine manners; and those who transgress it are roughly told—in the English phrase—to keep their distance. By this arrangement the mutual need of warmth is only very moderately satisfied; but then people do not get pricked. A man who has some heat in himself prefers to remain outside, where he will neither prick other people nor get pricked himself."
It entered the realm of psychology after the tale was discovered and adopted by Sigmund Freud. Schopenhauer's tale was quoted by Freud in a footnote to his 1921 essay Group Psychology and the Analysis of the Ego (Gruppenpsychologie und die Analyse des Ego). Freud stated that his trip to the United States in 1919 was because: "I am going to the USA to catch sight of a wild porcupine and to give some lectures."
Social psychological research
The dilemma has received empirical attention within the contemporary psychological sciences. Jon Maner and his colleagues (Nathan DeWall, Roy Baumeister, and Mark Schaller) referred to Schopenhauer's "porcupine problem" when interpreting results from experiments examining how people respond to ostracism and other forms of social rejection. Their results revealed that, for people who are chronically anxious, the experience of rejection led people to be relatively anti-social; but among people with more optimistic dispositions, the experience of rejection led to intensified efforts to get close to others. They concluded,
This last point is worth remembering when one considers the answer that Schopenhauer himself supplied to the porcupine problem. Schopenhauer suggested that people ultimately feel compelled to retain a safe distance from each other. "By this arrangement," he wrote, "the mutual need for warmth is only very moderately satisfied; but then people do not get pricked" (1851/1964, p. 226). Of course, Schopenhauer was known for his sour temperament – "It is hard to find in his life evidences of any virtue except kindness to animals... In all other respects he was completely selfish" (Russell, 1945, p. 758) – and his philosophy was famous for its pessimism.
- Hedgehog's Dilemma is the name of an experimental/electronic music project started by Timothy Hester from Stockton, California.
- In Qian Zhongshu's novel Fortress Besieged, a character explicitly deliberates about the dilemma.
- The Hedgehog Dilemma is the title of the debut EP from hip-hop artist Alex Frecon. 
- Hedgehog's Dilemma is the title of a song and EP by Jani Galbov (Maxis).
- Hedgehog's Dilemma" is the title of a two-part song spanning the second and third tracks of The Postman Syndrome's release "Terraforming."
- Porcupine's Dilemma is the title of a poem by Stephen Wack which examines the attempt at integration of retaining distance while being involved with love and relationships.
- Robotman is a song by the pillows on their album "Thank You, My Twilight", which contains a reference with the lyrics "hedgehog's dilemma" in English.
- The theme of the hedgehog’s dilemma was reprised in the Italian song "Istrice" (Italian word for "hedgehog") by Turinese band Subsonica in 2011.
- Hedgehog's Dilemma is the English name of the fourth episode of the anime Neon Genesis Evangelion, in reference to Shinji's struggles in forming relationships with people, and is used as a continuing theme throughout the series.
- The Hedgehog's Love is a song by Vocaloid, Hatsune Miku, of which she sings about the Hedgehog Dilemma.
- "The Porcupine Illusion". Cabinetmagazine.org. Retrieved 2011-08-08.
- "CABINET // The Porcupine Illusion". Cabinetmagazine.org. Retrieved 2011-08-08.
- "Maner, J.K., DeWall, C.N., Baumeister, R.F., & Schaller, M. (2007). Does social exclusion motivate interpersonal reconnection? Resolving the 'porcupine problem.' ''Journal of Personality and Social Psychology'', 92, 42–55." (PDF). Retrieved 2011-08-08.
- "''ibid'', p. 54." (PDF). Retrieved 2011-08-08.
- 0.00. "Hedgehog's Dilemma's sounds on SoundCloud - Hear the world’s sounds". Soundcloud.com. Retrieved 2013-02-28.
- [dead link]
- "Maxis – Hedgehog's Dilemma EP (File, MP3) at Discogs". Discogs.com. 2010-02-05. Retrieved 2011-08-08.
- "The Postman Syndrome – Terraforming (staff review)". Sputnikmusic. Retrieved 2011-08-08.
- [dead link]