In chemistry, a derivative is a compound that is derived from a similar compound by a chemical reaction, or that can be imagined to arise from another compound, if one atom or group of atoms is replaced with another atom or group of atoms. The exact definition of "derivative" depends on the specific context.