You are on the right tracks.
Since angle ABC is a right angle, that means lines AB and BC are perpendicular.
Therefore the gradient of BC = the negative reciprocal of the gradient of AB. We can use this to form an equation to find what K is.
You have already worked out the gradient of AB ( 1/2) (note it's easier to leave it as a fraction)
Now lets get the gradient of BC:
![(5-k)/(6-4)= (5-k)/(2)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/lv9s4nnol1zmbnjnp7d5gpcj6uefjqiqcr.png)
Remember: The gradient of BC = the negative reciprocal of the gradient of AB. So:
![(5-k)/(2) =negative..reciprocal..of..(1)/(2)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/snzt7nlg3ukjc9ztgrys6ksmtw06rqu09d.png)
So:
(Now just solve for k)
![5-k=-4](https://img.qammunity.org/2020/formulas/mathematics/middle-school/2gmp992xfqp1ja0t5i5yyptmyirczg6ero.png)
(now just multiply both sides by -1)
![k = 9](https://img.qammunity.org/2020/formulas/mathematics/middle-school/wz9fqloz2ww0p424hw6xw8lcmoocjxyai9.png)
That means the coordinates of C are: (4, 9)
We can now use this to work out the gradient of line AC, and thus the equation:
Gradient of AC:
![(1-9)/(-2-4) =(-8)/(-6) = (4)/(3)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/a8osfx3wk0rqgb8hnqr2etlkpr6hwqcu8x.png)
Now to get the equation of the line, we use the equation:
y - y₁ = m( x - x₁)
Let's use the coordinates for A (-2, 1), and substitute them for y₁ and x₁ and lets substitute the gradient in for m:
y - y₁ = m( x - x₁)
(note: x - - 2 = x + 2)
Now lets multiply both sides by 3, to get rid of the fraction:
(now expand the brackets)
Finally, we just rearrange this to get the format: ay + bx = c
![3y = 4x+11](https://img.qammunity.org/2020/formulas/mathematics/middle-school/5mxdflt1o6wqta92zx9vjhihqtlx6ws0tl.png)
And done!:
________________________________
Answer:
The equation of a line that passes through point A and C is: