Absolute magnitude M is defined as the apparent magnitude of an object when seen at a distance of 10 parsecs. If a light source has luminosity L (d) when observed from a distance of d parsecs, and luminosity L (10) when observed from a distance of 10 parsecs, the inverse-square law is then written like: L ( d ) = L ( 10 ) ( d 10 ) 2