Ibuprofen is an NSAID compound commonly taken to lessen pain and inflammation . The belongs to the family of medicines called NSAIDs , and works by blocking the production of chemicals, which are accountable for causing pain and swelling . Patients often experience ibuprofen helpful for conditions such as headaches , muscle pains , menstrual cramps