How a Muffler Works.

Have you ever heard a car running without a muffler? If so, you don't need to ask what it's for. If you take a muffler apart, you'll see tubes with holes in them; they're actually nothing more than a precisely tuned musical instrument. It's designed so that the sounds the engine makes partially cancel themselves out. To understand how a muffler works, you first need to learn a little more about sound.
Let's start with the fact that sound needs a medium to travel; unlike light, it can't travel through a vacuum. If we tried to talk in a vacuum, we wouldn't hear each other . No medium, no sound. The medium for sound can be a liquid or a gas. So sound is a change in pressure in some medium.
When the exhaust valve opens, a stream of exhaust gases bursts into the exhaust pipe, creating a pressure increase there which, on reaching our ear, is interpreted by the brain as sound.

The two main characteristics of a sound wave:
  • The frequency of the sound wave. A higher frequency means the air particles vibrate faster;
  • Loudness. The air pressure level, or the amplitude of the sound wave, determines how loud the sound will be;

An important property of sound waves is that they can add up. It turns out that you can add two sound waves so that the resulting wave is quieter or disappears altogether. If there are several sound sources near you, the pressure applied to your eardrum equals the sum of the pressures created by each sound. You can also create a sound wave that is the opposite of another wave; this phenomenon underlies noise cancellation.
 
 
Let's look at the animation above. If two identical waves add up in phase, the amplitude of the resulting wave is doubled. If two waves add up in antiphase, that is, at a given moment one wave's amplitude is at its maximum and the other's at its minimum, the waves cancel each other out and we hear nothing.
How a Muffler Works.

What happens inside a muffler.
Inside the muffler there are two tubes. These tubes are arranged so that the waves meet in antiphase. Let's look at the picture above. The exhaust gases enter the muffler through the inlet pipe; then, through the holes, some of the gases leave the muffler through the tailpipe, and some go into the resonator. The length of the resonator is calculated so that the current and next portions of gas meet in antiphase, canceling each other out. Let's look at how this happens in more detail: by the time a new sound wave starts entering the resonator, the previous one, having bounced off the opposite wall, is coming out. As a result they cancel each other out. The animation below shows how this happens.
 

In fact, the sound coming from the engine is a mixture of sounds of different frequencies, and the frequency of the sound also depends on the engine speed. The resonator is designed to work in the range where the engine is loudest. So the resonator doesn't cancel all the sound, only the sound with the wavelength the resonator is tuned for.
 
Active noise cancellation.
Several experiments with active noise cancellation have been carried out on industrial generators. An active noise cancellation system includes a microphone and a speaker.
The speaker was positioned so that the sound from the exhaust pipe and from the speaker traveled in the same direction. Using the microphone, a computer monitors the sound at the exhaust pipe outlet. Then this same sound is played in antiphase through the speaker.
This way the noise coming from the generator can be minimized.