The orthocentre of a triangle in three-dimensional space is the point where the altitudes of the triangle intersect. To find the orthocentre, we will first determine the equations of two altitudes, find their intersection point, and verify if it satisfies the condition for the third altitude.
Given points: \( A(2,1,5) \), \( B(3,2,3) \), \( C(4,0,4) \).
First, we calculate the direction ratios of the sides using:
\( \overrightarrow{AB} = (3-2, 2-1, 3-5) = (1,1,-2) \)
\( \overrightarrow{BC} = (4-3, 0-2, 4-3) = (1,-2,1) \)
\( \overrightarrow{CA} = (2-4, 1-0, 5-4) = (-2,1,1) \)
The altitude from \( A \), perpendicular to \( BC \), will have a direction with a dot product of \( \overrightarrow{BC} \). Let its direction be \( (x,y,z) \), satisfying \( 1x - 2y + 1z = 0 \).
The line equation through \( A \) is: \( \frac{x-2}{1} = \frac{y-1}{-2} = \frac{z-5}{1} \).
Similarly, calculate the altitude \( B \) perpendicular to \( CA \):
\( -2x + 1y + 1z = 0 \).
The line equation through \( B \) is:
\( \frac{x-3}{-2} = \frac{y-2}{1} = \frac{z-3}{1} \).
To find the intersection of the two altitudes, solve the system:
\( 2 + t = 3 - 2s \)
\( 1 - 2t = 2 + s \)
\( 5 + t = 3 + s \)
Solving these, we get the solution: \( t = 1 \), \( s = 2 \). Substitute in:
For line through \( A \): \((x, y, z) = (2+1, 1-2, 5+1) = (3,-1,6)\).
Check intersection with the perpendicular from \( C \).
The calculated orthocentre, satisfying all conditions, is:
\( (3,1,4) \).
Thus, the orthocentre of the triangle is: \( (3,1,4) \).