History of Hindu Mathematics: A Source Book v2.c17.s16: 18. Solution of Nx² ± c = y
History of Hindu Mathematics: A Source Book v2.c17.s16
- Language
- English
18. Solution of Nx² ± c = y
v2.c17.s16.1
The general solution of the indeterminate quadratic equation $Nx² ± c = y²$ in positive integers was first given by Brahmagupta (628). He says :
v2.c17.s16.2
"From two roots (of a Square-nature) with any given additive or subtractive, by making (combination) with the roots for the additive unity, other first and second roots (of the equation having) the given additive or subtractive (can be found)."¹
v2.c17.s16.3
¹ *BrSpSi*, xviii, 66.
v2.c17.s16.4
Eliminating n between $a₁ k = an + b, b₁ k = bn + Na,$ we get $a₁ b - ab₁ = 1.$
v2.c17.s16.5
Hence $b₁ = (a₁ b - 1)/a = a whole number.$
v2.c17.s16.6
Now $n² - N = ((a₁ k - b)² - Na²)/(a²)$ $= (a₁² k² - 2 b k a₁ + k)/(a²)$ $= (k(a₁² k - 2 b a₁ + 1))/(a²).$
v2.c17.s16.7
Therefore k/(a²) (a₁² k - 2ba₁ + 1) is a whole number.
v2.c17.s16.8
Since a, k have no common factor, it follows that $(a₁² k - 2 b a₁ + 1)/(a²) = (n² - N)/k = k₁ = an integer.$
v2.c17.s16.9
Also $k₁ = (n² - N)/k = (a₁² k - 2ba₁ + 1)/(a²)$ $= (a₁²(b² - Na²) - 2ba₁ + 1)/(a²)$ $= ((a₁ b - 1)/a)² - Na₁².$
v2.c17.s16.10
Thus having known a single solution in positive integers of the equation Nx² ± c = y², says Brahmagupta, an infinite number of other integral solutions can be obtained by making use of the integral solutions of Nx² + 1 = y². If (p, q) be a solution of the former equation found empirically and if (α, β) be an integral solution of the latter then, by the Principle of Composition, $x = pβ ± qa, y = qβ ± Npa$ will be a solution of the former. Repeating the operations we can easily deduce as many solutions as we like.
v2.c17.s16.11
This method reappears in later Hindu algebras. Bhâskara II says :
v2.c17.s16.12
"In (a Square-nature) with the additive or subtractive greater (than unity), one should find two roots by his own intelligence only ; then by their composition with the roots obtained for the additive unity an infinite number of roots (will be found)."¹
v2.c17.s16.13
¹ *BBi*, p. 42.
v2.c17.s16.14
Nârâyaṇa writes similarly :
v2.c17.s16.15
"When the additive or subtractive is greater than unity, two roots should be determined by one's own intelligence. Then, by combining them with the roots for the additive unity, an infinite number of roots can be obtained."²
v2.c17.s16.16
² *NBi*, I, R. 86.
v2.c17.s16.17
We take the following illustrative examples with solutions from Nârâyaṇa :
v2.c17.s16.18
*Example.* "Tell me that square which being multiplied by 13 and then increased or diminished by 17 or 8 becomes capable of yielding a square root."³
v2.c17.s16.19
³ *NBi*, I, Ex. 44.
v2.c17.s16.20
That is, solve
(1) 13x² ± 17 = y²,
(2) 13x² ± 8 = y².
v2.c17.s16.21
*Solution.* "In the first example it is stated that the multiplier = 13 and interpolator = 17.
v2.c17.s16.22
"Now the roots for the interpolator 3 are (1, 4). And for the interpolator 51, the roots are (1, 8). For the composition of these with the previous roots (1, 4) the statement will be $m = 13 & l = 1 & g = 8 & i = 51 / & l = 1 & g = 4 & i = 3$
v2.c17.s16.23
So, by the Addition Lemma, we get the roots corresponding to the interpolator 153 as (12, 45). The rule says, 'If the interpolator (of a Square-nature) be divided by the square of an optional number etc.' Now take the optional number to be 3, so that the interpolator may be reduced to 17. For 3² = 9 and 153/9 = 17. Therefore, dividing the roots just obtained by the optional number 3, we get the required roots (4, 15).
v2.c17.s16.24
"Applying the Subtraction Lemma and proceeding similarly we get the roots for the interpolator 17 as (4/3, 19/3).
v2.c17.s16.25
"In the second example the statement is : multiplier = 13, interpolator = -17. Proceeding as before we get (by the Addition Lemma) the roots (147, 530); and (by the Subtraction Lemma), the roots (3, 10)."¹
v2.c17.s16.26
¹ Our MS. does not contain the solution of the equations 13x² ± 8 = y².
v2.c17.s16.27
**Form Mn²x² ± c = y².** Brahmagupta says :
v2.c17.s16.28
"If the multiplier is that divided by a square, the first root is that divided by its root."²
v2.c17.s16.29
² *BrSpSi*, xviii. 70.
v2.c17.s16.30
That is to say, suppose the equation to be $Mn²x² ± c = y²,1$ so that the multiplier (*i.e.*, coefficient of x²) is divisible by n². Putting nx = u, we get $Mu² ± c = y².2$ Then clearly the first root of (1) is equal to the first root of (2) divided by n. The corresponding second root will be the same for both the equations.
v2.c17.s16.31
The same rule is taught by Bhâskara II¹ and Nârâyaṇa. The latter says :
v2.c17.s16.32
¹ *BBi*, p. 42.
v2.c17.s16.33
"Divide the multiplier (of a Square-nature) by an arbitrary square number so that there is left no remainder. Take the quotient as the multiplier (of another Square-nature). The lesser root (of the reduced equation) divided by the square-root of the divisor will be the lesser root (of the original equation)."²
v2.c17.s16.34
**Form** a²x² ± c = y². For the solution of a Square-nature of this particular form, Brahmagupta gives the following rule :
v2.c17.s16.35
² *NBi*, I, R. 84.
v2.c17.s16.36
"If the multiplier be a square, the interpolator divided by an optional number and then increased and decreased by it, is halved. The former (of these results) is the second root ; and the other divided by the square-root of the multiplier is the first root."³
v2.c17.s16.37
³ *BrSpSi*, xviii. 69.
v2.c17.s16.38
Thus, it is stated that $x = 1/2a ((± c)/m - m),$ $y = ½ ((± c)/m + m),$ where m is an arbitrary number, is a solution of the equation $a²x² ± c = y².$
v2.c17.s16.39
The same solution has been given by Bhâskara II and Nârâyaṇa.¹ Bhâskara's rule runs as follows :
v2.c17.s16.40
¹ *NBi*, I, R. 85.
v2.c17.s16.41
"The interpolator divided by an optional number is set down at two places; the quotient is diminished (at one place) and increased (at the other) by that optional number and then halved. The former is again divided by the square-root of the multiplier. (The quotients) are respectively the lesser and greater roots."²
v2.c17.s16.42
The *rationale* of the above solution has been given by the commentators Sûryadâsa and Kṛṣṇa substantially as follows : ± c & = y² - a²x² / & = (y - ax)(y + ax). Assume y - ax = m, m being an arbitrary rational number. Then y + ax = (± c)/m.
v2.c17.s16.43
Whence by the rule of concurrence, we get $x = 1/2a ((± c)/m - m),$ $y = ½ ((± c)/m + m).$
v2.c17.s16.44
**Form c - Nx² = y².** Though the equation of the form c - Nx² = y² has not been considered by any Hindu algebraist as deserving of special treatment, it occurs incidentally in examples. For instance, Bhâskara II has proposed the following problem :
v2.c17.s16.45
² *BBi*, p. 42.
v2.c17.s16.46
“What is that square which being multiplied by -5 becomes, together with 21, a square? Tell me, if you know, the method (of solving the Square-nature) when the multiplier is negative.”[¹]
v2.c17.s16.47
Thus it is required to solve $-5x² + 21 = y². 1$ Nârâyaṇa has a similar example, *viz.*,² $-11x² + 60 = y². 2$
v2.c17.s16.48
Two obvious solutions of (1) are (1, 4) and (2, 1). Composing them with the roots of $-5x² + 1 = y²,$ says Bhâskara II, an infinite number of roots of (1) can be derived.
v2.c17.s16.49
**Form Nx² - k² = y².** Bhâskara II observes:
v2.c17.s16.50
“When unity is the subtractive the solution of the problem is impossible unless the multiplier is the sum of two squares.”[³]
v2.c17.s16.51
Nârâyaṇa writes:
v2.c17.s16.52
“In the case of unity as the subtractive, the multiplier must be the sum of two squares. Otherwise, the solution is impossible.”[⁴]
v2.c17.s16.53
Thus it has been said that a rational solution of $Nx² - 1 = y²,$ and consequently of $Nx² - k² = y²$ is not possible unless N is the sum of two squares.
v2.c17.s16.54
¹ *BBi*, p. 43.
v2.c17.s16.55
² *NBi*, I, Ex. 43.
v2.c17.s16.56
³ “Rûpaśuddhau khiloddiṣṭaṁ vargayogo guṇo na cet”—*BBi*, p. 40.
v2.c17.s16.57
⁴ *NBi*, I, R. 83.
v2.c17.s16.58
For, if x = p/q, y = r/s be a possible solution of the equation, we have $N(p/q)² - k² = (r/s)²,$ or $N = (qr/ps)² + (qk/p)².$
v2.c17.s16.59
Bhâskara II then goes on :
v2.c17.s16.60
"In case (the solution is) not impossible when unity is the subtractive, divide unity by the roots of the two squares and set down (the quotients) at two places. They are two lesser roots. Then find the corresponding greater roots at the two places. Or, when unity is the subtractive, the roots should be found as before."
v2.c17.s16.61
Thus, according to Bhâskara II, two rational solutions of $Nx² - 1 = y²,$ where N = m² + n², will be $.x &= 1/m / y &= n/m, .x &= 1/n / y &= m/n.$
v2.c17.s16.62
So two rational solutions of $(m² + n²) x² - k² = y²,$ will be $.x &= k/m / y &= kn/m, .x &= k/n / y &= km/n.$
v2.c17.s16.63
The following illustrative example of Bhâskara II¹ is also reproduced by Nârâyaṇa :² $13x² - 1 = y².$
v2.c17.s16.64
¹ *BBi*, p. 41.
v2.c17.s16.65
² *NBi*, I, Ex. 38.
v2.c17.s16.66
The former solves it substantially in the following ways :
v2.c17.s16.67
(1) Since 13 = 2² + 3² two rational solutions are (1/2, 3/2) and (1/3, 2/3).
v2.c17.s16.68
(2) An obvious solution of $13x² - 4 = y²$ is x = 1, y = 3. Then dividing out by 4, as shown before, we get a solution of the equation 13x² - 1 = y² as (1/2, 3/2).
v2.c17.s16.69
(3) Again, since an obvious solution of $13x² - 9 = y²$ is x = 1, y = 2, we get, on dividing out by 9, a solution of our equation as (1/3, 2/3).
v2.c17.s16.70
(4) From these fractional roots, we may derive *integral roots* by the Cyclic Method. Since $13(½)² - 1 = (3/2)²,$ we have, by Bhâskara's Lemma, m being an indeterminate multiplier, $13((m/2 + 3/2)/(-1))² + (m² - 13)/(-1) = ((3m/2 + 13/2)/(-1))²,$ or $13((m + 3)/(-2))² + (m² - 13)/(-1) = ((3m + 13)/(-2))².$ The suitable value of m which will make (m+3)/2 an integer and |m² - 13| minimum is 3. So that we have $13.3² + 4 = 11².$ From this again we get the relation $13((3n + 11)/4)² + (n² - 13)/4 = ((11n + 13.3)/4)².$
v2.c17.s16.71
The appropriate value of the indeterminate multiplier in this case is n = 3. Substituting this value, we have $13·5² - 1 = 18².$ Hence an integral solution of our equation 13x² - 1 = y² is (5, 18).
v2.c17.s16.72
"In all cases like this an infinite number of roots can be derived by composition with the roots for the additive unity."¹
v2.c17.s16.73
¹ "Iha sarvatra padânâṁ rûpakṣepapadâbhyâṁ bhâvanayâ'-nantyam"—*BBi*, p. 41.
v2.c17.s16.74
Nârâyaṇa states the methods (2) and (3) only.
Linked texts (2)
- Brāhmasphuṭasiddhānta — Brahmagupta, Sanskrit
- Bījagaṇita — Bhāskara II, Sanskrit