Ibuprofen is a common pain reliever, but how you take the medication matters.