The problem is taken from the chap. 1.1 of the book titled : Calculus Problems for the new century, by Robert Fraga.
The equation $2x+ky =-k$ is the equation of a line. Determine the values of the constant $k$, if any, for which the line passes within one unit of the origin.
The book has solutions to the problems, but am unable to understand it as given below:
$2x+ky =-k\implies y = -1-\frac2kx\implies m= -\frac2k.$
Slope of perpendicular to the given line is $m_1= \frac k2.$
The intersection of this line with the original one when $ -1-\frac2kx=\frac k2x\implies x = -\frac{2k}{k^2+4}$. The $y$-coordinate of this point is $-\frac{k^2}{k^2+4}$.
This point lies within one unit of origin if $x^2+y^2 = \frac{(4k^2+k^4)}{(k^2+4)^2}\le 1$
which simplifies to $4k^2\ge -16$, so the line always passes within $1$ unit of the origin!
This result can be easily be seen from the original equation since the line passes through $(0,-1)$ which is exactly $1$ unit from the origin.
I am unable to find out the below from the answer given:
Why perpendicular line is taken?
Also, why the $y$-coordinate of the intersection point is taken by multiplying $x = -\frac{2k}{k^2+4}$ with $m_1$, not $m$.
$\frac{(4k^2+k^4)}{(k^2+4)^2} = \frac{k^2(4+k^2)}{(k^2+4)^2}$
Take common factor $(4+k^2)$, & eliminate from numerator & denominator to get: $\frac{k^2}{(k^2+4)}$
So, get $\frac{k^2}{(k^2+4)}\le 1$, but this is not the same as $4k^2\ge -16$.
Although, the correct inequality gives the same result as:
$k^2\le k^2+4\implies 0 \le 4$, which is always true.