Ibuprofen is an NSAID medication commonly used to relieve discomfort and swelling . This belongs to the family of medicines called noncopyrightal anti-inflammatory drugs , and operates by inhibiting the release of hormone-like substances , which are responsible for triggering pain and swelling .