It's a simple idea we learn from our early childhood: We laugh when we're happy and cry when we're sad.
But sometimes it's not that simple. What happens when you laugh at a video of someone falling off a ladder, or find yourself straining to avoid hysterics when a home video shows a son hitting a line drive into his father's groin?
All of this points to a simple conclusion: Pain makes us laugh.
The ancient Greeks knew it, 17th century philosopher Thomas Hobbes knew it when he wrote "Leviathan," Chevy Chase knew it when he made a name for himself portraying a bumbling version of President Gerald Ford, and Johnny Knoxville knew it when he turned self-injury into a successful MTV television show called "Jackass."
Pain isn't supposed to be funny, yet it is a staple of humor and prompts laughter from audiences.
"There's sort of a universal element to slapstick," explained Diana Mahony, a psychologist and humor researcher with Brigham Young University and the author of "God Made Us to Laugh."
But she draws a distinction between the slapstick of Bugs Bunny or "Saturday Night Live" and laughing at a painful video shown on YouTube or "America's Funniest Home Videos."
"There's a lot of aggression and ill will in certain types of humor," said Mahony, noting that, despite humor's positive connotation, it isn't always beneficial. "The stuff that's going on right now, I think, is just a reflection of some of the negative aspects of human nature."
She points to theories from ancient Greece and Hobbes to explain why some find pain funny -- because it can make the person laughing feel greater than the object of his or her derision.
Mahony explained the mindset as, "I laugh in triumph and superiority at the foibles and stupidity of other people."
One example of this is the Darwin Awards, a Web site that recounts the exploits of people (a few of the stories are real) who, through poor decision-making or a seeming lack of common sense, remove themselves from the gene pool.
But Mahony notes that if your own relative or friend made a mistake that put them on the list, you would likely search for a way to justify their actions.
Another possible explanation for the humor is the detachment most people feel from the person injured on TV or in an Internet video. In addition to a person they probably don't know personally, the detachment can stem from the situation where the person gets hurt, which is often somewhat outlandish -- like an absurd skateboarding stunt.
"Whatever pain we see is just one component of what is otherwise a funny circumstance," explained Dr. Emanuel Maidenberg, a psychiatrist at UCLA Medical School.
The context, he said, delivers a mood of humor, which can prompt the audience to follow suit.
He noted that while people may laugh, the person being hurt is typically pained by something they chose to do. Television shows in the United States do not broadcast torture, he noted, a different situation where a person who found it humorous could very well have a deeper psychological issue.
Laughter: It's Not Just for Funny Stuff
While plenty of people laugh at situations that are not supposed to be humorous -- during a moment of silence, for example -- our laughing at them doesn't necessarily mean we find it funny.
"The common misconception about laughter is that laughter is, for the most part, a response to humor," Mahony said.
Instead, she explained, laugher is activated like a steam gauge, where a buildup of feelings prompts an outburst.
"It's nature's way of letting out tension or a buildup of emotions," she said.
Comedian David Alan Grier characterizes it similarly.
"When your boyfriend, your girlfriend dumps you, you're grieving. It builds and builds and it gets to a fever pitch, it's like a boil that's got to be lanced. It's a human need. It's a human emotion. It's the human condition," he said.
Maidenberg noted that some people might also cry rather than laugh because they are taught to suppress tears.
"They may adapt a replacement of laughing instead of showing pain," he said.
While laughter is typically an acceptable expression, some cultures and subcultures frown upon crying, which is physiologically similar.
The Best Medicine?
In the past 30 years, laughter has been promoted as a cure-all for ailments, the idea being that a laughing patient will heal faster or be able to overcome more.
The idea gained momentum when the journalist Norman Cousins wrote about his experiences as a patient, where laughter may have helped heal him, in the New England Journal of Medicine in 1976.
But while laughter may have benefits and put a patient in a relaxed state, it may have gotten too much credit.
"Laughter is good, but it's not the only game in town," Mahony said.
One of the primary benefits of laughter, she explained, is that it distracts, something that can be done with a horror movie or a tear-jerker just as well -- and possibly better -- than with a comedy.
In the original article, Cousins himself admitted that his recovery from a supposedly incurable illness might have happened on its own -- without laughter or medical treatment.
So, while laughter may have benefits, so can other emotions -- as long as the person wants to take them in.
And what entertains us can't fully be explained by science -- it's a matter of taste.
"Sense of humor is truly the fingerprint of personality," Mahony said..