The origins of Indian classical music can be found from the oldest of scriptures the Vedas. Saamaveda, one of the four vedas describes music at length.
Medival classification of Indian classical music can be done broadly into two categories:
... a perfect square trinomial of the form x2 + 2xy + y2. Since "2xy" in this case is (b/a)x, we must have y = b/(2a), so we add the square of b/(2a) to both sides, ...