Engineering mathematics

For a model y = ax, measurements are (xᵢ, yᵢ), and the parameter a is chosen by minimizing the sum of squared residuals. How is each residual defined?