Is there a particular reason why FDRs and CVRs and associated similar bits of equipment are kept in the tail section of a plane?
When an aircraft is crashed, the entire front of the aircraft is expected to act as a crush zone. By placing FDRs and CVRs near the tail, the shock wave that reaches FDRs and CVRs is reduced significantly.
The probability of survival based on seating is shown in this picture:
Hence one can see that the shock wave reduces as it reaches the rear of the plane. That is the reason FDRs and CVRs are installed in aircraft's empennage section.
Please note that the precise location of the recorders depends on the individual plane. Sometimes they are located in the ceiling of the galley, in the aft cargo hold or in the tail cone that covers the rear of the aircraft.
The reason for the FDR and CVR to be located in the rear of the aircraft is because that gives the best chances of recovering them.
Usually an aircraft has a forward speed when it crashes. The initial shock of impact is absorbed by the forward part of the aircraft, resulting in a more gradual deceleration for the aft parts as the aircraft breaks up. By putting the FDR and CVR in the back the acceleration is reduced allowing for a higher probability of them remaining intact.
In addition to Farhan's excellent answer, it should be noted that reducing the peak impact shock is not the only reason that the FDR is placed in the tail, and that the passenger survivability is higher behind the wings.
The wings are full of fuel, and when the tanks rupture during a crash the fuel tends to spill forward. If you look at crash videos you will notice two common scenarios:
In incidents in which the plane scrapes along the runway, friction with the ground starts a fire. In this scenario the rear of the plane is engulfed in flames, but that is the exterior. When the plane comes to rest, either the whole vehicle is engulfed or the fire recedes to small flames on the parts touching the ground: the engines and undercarriage.
In incidents in which the plane collides with the ground and does not scrape, the fuselage and wings rupture and fuel spills forward. In these cases the fires are mostly in the front portion of the craft, and the broken fuselage allows the fire to quickly spread to the interior of the craft. These fires are much more dramatic and look like explosions due to the high quantity of fuel and fuel vapor being available.
In the USA, there is a legal requirement
(e) The recorder container must be located and mounted to minimize the probability of rupture of the container as a result of crash impact and consequent heat damage to the recorder from fire.
(1) Except as provided in paragraph (e)(2) of this section, the recorder container must be located as far aft as practicable, but need not be outside of the pressurized compartment, and may not be located where aft-mounted engines may crush the container during impact.
(2) If two separate combination digital flight data recorder and cockpit voice recorder units are installed instead of one cockpit voice recorder and one digital flight data recorder, the combination unit that is installed to comply with the cockpit voice recorder requirements may be located near the cockpit.