
Given equation of the line is 3x +y = 6.
$\therefore \frac{x}{2}+\frac{y}{6}=1$
This equation is of the form $\frac{x}{a}+\frac{y}{b}=1$,
where a = 2, b = 6 ∴ The line 3x + y = 6 intersects the X-axis and Y-axis at A(2, 0) and B(0, 6) respectively. Required line is passing through the midpoint of AB.
$\therefore$ Midpoint of $A B=\left(\frac{2+0}{2}, \frac{0+6}{2}\right)=(1,3)$
∴ Required line passes through (0, 0) and (1,3).
Equation of the line in two point form is
$\frac{y-y_1}{y_2-y_1}=\frac{x-x_1}{x_2-x_1}$
∴ The equation of the required line is
$\begin{aligned} & \frac{y-0}{3-0}=\frac{x-0}{1-0} \\ & \frac{y}{3}=\frac{x}{1} \\ & \therefore y=3 x \\ & \therefore 3 x-y=0\end{aligned}$
Alternate Method:
Given equation of the line is 3x + y = 6 …
(i) Substitute y = 0 in (i) to get a point on X-axis.
∴ 3x + 0 = 6
∴ x = 2 Substitute x = 0 in
(i) to get a point on Y-axis.
∴ 3(0) + 7 = 6 ∴ y = 6
∴ The line 3x + y = 6 intersects the X-axis and Y-axis at A(2,0) and B(0,6) respectively.
Let M be the midpoint of AB.
$M=\left(\frac{2+0}{2}, \frac{0+6}{2}\right)=(1,3)$
Slope of $O M(m)=\frac{3-0}{1-0}=3$
Equation of OM is of the formy = mx.
∴ The equation of the required line is y = 3x
∴ 3x – y = 0