In some cases, a veterinarian may prescribe a pain medication like aspirin or ibuprofen. If this is the case, and the prescription seems expensive, you can ask about giving the dog ibuprofen or aspirin from your own medicine cabinet. Some dogs are very good at taking pills, and the veterinarian can provide exact dosing
You can give ibuprofen to your dog though if you give your dog this kind of medication in the wrong dosage you will be placing its life at risk. In the wrong dosage, this drug can cause complications such as heart failure, liver failure and kidney disease.