Ibuprofen is a NSAID medication commonly used to relieve pain and swelling . This belongs to a family of medicines called noncopyrightal anti-inflammatory drugs , and functions by preventing the release of prostaglandins , which are responsible for triggering pain and swelling . People often expe