Brahmagupta gave the solution of the general linear equation in chapter eighteen of Brahmasphutasiddhanta, The difference between rupas, when inverted and divided by the difference of the unknowns, is the unknown in the equation.
Brahmagupta deu a solución da ecuación linear xeral no capítulo 18 do Brahmasphutasiddhanta: A diferenza entre rupas, cando invertemos e dividimos pola diferenza das incógnitas, é a incógnita da ecuación.