A wavelength detector detecting a change of a wavelength of a laser light
with high accuracy, such that the wavelength detector includes a
diffraction grating diffracting a laser light, photodetectors positioned
symmetrically with respect to a 0-order diffracted light diffracted by
the diffraction grating, and respective light incidence surfaces of the
photodetectors that have a same shape and that are divided into a
plurality of areas. The wavelength detector detects the change of the
wavelength based on a value obtained by dividing a difference between (i)
a sum of light intensities measured by all of the plurality of divided
areas of a first photodetector and (ii) a sum of light intensities
measured by all of the plurality of divided areas of a second
photodetector, by a sum of light intensities measured by all of the
plurality of divided areas of both photodetectors.