The slope of a line perpendicular to other line is the negative reciprocal of the slope.
This means, if the slope of a line is x, the slope of a perpendicular line will be:
![-(1)/(x)](https://img.qammunity.org/2023/formulas/mathematics/college/skfubopdifni5b06alzngrk77wq86xer09.png)
Then , the first thing we should do is to find the slope of f(x).
To find the slope of a line that passes two points P and Q we use:
![\begin{gathered} \begin{cases}P=(x_p,y_p) \\ Q=(x_q,y_q)\end{cases} \\ \text{slope}=(y_p-y_q)/(x_p-x_q) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/x9fp5kl96n26e2ytkz320mdzgho8bbeezs.png)
In this case, we can use P = (1, 4) and Q = (-3, 2)
Then:
![\text{slope}=(4-2)/(1-(-3))=(2)/(4)=(1)/(2)](https://img.qammunity.org/2023/formulas/mathematics/college/k8lyeb27eqa2ffwgrg714tn0an603vc49y.png)
Now, we know that the slope of g(x) is perpendicular to f(x) which has a slope of 1/2
The reciprocal is:
![(1)/(2)\Rightarrow(2)/(1)=2](https://img.qammunity.org/2023/formulas/mathematics/college/2kki7s7946k40mfj48ssbx3yhamq893siq.png)
And to make it the negative, we multiply by (-1):
![2\cdot(-1)=-2](https://img.qammunity.org/2023/formulas/mathematics/college/rc084gh9nq7r4vqjt4b4tgnxv0341jz7l7.png)
Thus, g(x) has a slope equal to -2