It is known that the image of positive scale function y = KX passes through point P (1,2), as shown in the figure. (1) find the analytic expression of the positive scale function; (2) translate the image of the positive scale function to the right four units, and find the analytic expression of the translated straight line

It is known that the image of positive scale function y = KX passes through point P (1,2), as shown in the figure. (1) find the analytic expression of the positive scale function; (2) translate the image of the positive scale function to the right four units, and find the analytic expression of the translated straight line

(1) Substituting x = 1, y = 2 into y = KX, we get: 2 = k, then the positive proportion analytic formula is y = 2x; (2) let the analytic formula of the line after translation be y = 2x + B, substituting (4, 0) into: 8 + B = 0, and the solution is b = - 8, then the analytic formula of the line after translation be y = 2x-8