The linear density of a rod of length 1 meter is given by in grams per centimeter, where is measured in centimeters from one end of the rod. Find the mass (in grams) of the rod.

Mass of the rod = grams