Linearity: Linearity is the property of a mathematical relationship or function, which can be graphically represented as a straight line. Linearity can be graphically represented as a straight line. We always expect to have this kind of outputs in our systems but …