Ibuprofen is a NSAID medication commonly taken to reduce discomfort and swelling . This belongs to the family of medicines called anti-inflammatory agents, and operates by inhibiting the synthesis of chemicals, which are responsible for triggering pain and inflammation . Patients often find ibuprofen useful for conditions such as migraines , muscle