x^2 + xy - Ky^2=0 , the angle made by the line pairs of this equation is 45 degree. I got the value of k as 0 and -2, do we need to reject k=0 and conclude our answer as k=-2 ?

x^2 + xy - Ky^2=0

To have this equation represented by two straight lines, we must have it in a factored form such as
(x + ay)(x - by) = 0
so that a+b = 1 and ab=-k

e.g. if we had
x^2 + xy - 6y^2 = 0
(x+3y)(x-2y) = 0
our two lines would be
x+3y = 0 or x-2y = 0
slope of first = -1/3
slope of 2nd = 1/2
for acute angle formed:
using the formula
tanθ = (m2 - m1)/(1 + m2m1)

tanθ = (1/2 + 1/3)/(1 + (1/2)(-1/3)
= (5/6) / (5/6)
= 1
θ = 45°
What a lucky guess!

check this graph:
https://www.wolframalpha.com/input/?i=plot+x%5E2+%2B+xy+-+6y%5E2+%3D+0

for yours:
x^2 + xy - 2y^2 = 0
(x+2y)(x-y) = 0
slope of first = -1/2
slope of 2nd = 1
tanθ = (1 + 1/2)/(1 + (1)(-1/2)
= (3/2)/(1/2)
= 3
θ = 71.56 degrees, not 45

see: https://www.wolframalpha.com/input/?i=plot+x%5E2+%2B+xy+-+2y%5E2+%3D+0

So for x^2 + xy - ky^2 = 0
we need
(x+ay)(x+by) = 0
where a+b=1 and ab = -k
also the two slopes are -1/a and -1/b
tanθ = (-1/a + 1/b)/(1 + (-1/a)(-1/b))
= (a-b)/(ab) / (1 + 1/ab)
= (a-b)/(ab) / (ab + 1)(ab)
= (a-b)/(ab+1)
but tan45 = 1
(a-b)/(ab+1) = 1
a-b = ab + 1 , but we know that a+b=1 or
b = 1-a

a-(1-a) = a(1-a) + 1
a-1+a = a-a^2 +1
a^2 + a - 2 = 0
(a-2)(a+1) = 0
a = 2 or a = -1 , then
b = -1 or b = 2

so we could have
(x+2y)(x-y) = 0 ---> x^2 + xy - 2y^2) = 0 , OUR CASE
OR
(x+y)(x-2y) = 0 ----> x^2 - xy - 2y^2 = 0, NOT OUR CASE

k = ab = -2
so k = -2 for each case

I must have made some kind of error in this big mess.

I can't reconcile the fact that k = 6 will produce the 45 degree angle, but both of our solutions somehow showed that k = 2

I will look at it again later on today

But I did it comparing with ax^2 + 2hxy + by^2=0 and got -2

To find the angle made by the line pairs in the equation x^2 + xy - Ky^2 = 0, we can use the concept of discriminant. The general form of a conic section equation is Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0. In this case, A = 1, B = 1, and C = -K.

The discriminant of this equation is given by Δ = B^2 - 4AC. Substituting the values, we have:

Δ = (1)^2 - 4(1)(-K) = 1 + 4K

For a conic section equation, the discriminant can help determine the type of curve formed:

1. If Δ > 0, the equation represents a hyperbola.
2. If Δ = 0, the equation represents a parabola.
3. If Δ < 0, the equation represents an ellipse when A and C have the same sign, or a pair of intersecting lines when A and C have opposite signs.

Given that the angle made by the line pairs is 45 degrees, we can conclude that the equation represents a pair of intersecting lines.

Now let's consider the values of k. You mentioned that you found k = 0 and k = -2. Let's evaluate the discriminant for each value:

1. For k = 0:
Δ = 1 + 4(0) = 1
This indicates that the equation represents a pair of intersecting lines.

2. For k = -2:
Δ = 1 + 4(-2) = 1 - 8 = -7
This indicates that the equation represents an ellipse or a pair of intersecting lines when A and C have opposite signs.

Based on these results, we can see that both k = 0 and k = -2 satisfy the condition of representing a pair of intersecting lines. Therefore, we do not need to reject k = 0, and we can conclude that the answer is k = -2 as well.