Resposta :
Sendo a equação da reta dada por :
[tex]\text y - \text y_o = \text m.(\text x-\text x_o)[/tex]
onde :
[tex]\text x_o \ , \ \text y_o =[/tex] coordenadas de um dos pontos
[tex]\text m =[/tex] coeficiente angular [tex]\displaystyle \to \text m = \frac{\text y_2-\text y_1}{\text x_2-\text x_1 }[/tex]
Achando a reta que passa por (-1,5) e (2,-4) :
Coeficiente angular :
[tex]\displaystyle \text m = \frac{-4-5}{2-(-1) }\to \text m = \frac{-9}{2+1}\to \boxed{\text m = -3}[/tex]
Aplicando a equação da reta e substituindo qualquer ponto :
[tex]\text y - \text y_o = \text m.(\text x-\text x_o)[/tex]
[tex]\text y - (-4) = -3.(\text x-2)[/tex]
[tex]\text y +4 = -3.\text x+6[/tex]
[tex]\text y = -3.\text x+6 - 4[/tex]
[tex]\text y = -3.\text x+2[/tex]
Sabendo que f(x) = y , temos :
[tex]\huge\boxed{\text {f(x)} = -3.\text x+2 }\checkmark[/tex]