A filter is inserted in the path of the x-ray beam to

absorb long wave length radiation in the primary beam.

make it possible to use higher kilovoltage for improving image quality.

absorb scatter radiation.

limit the area of surface exposure.