My question may appear a bit odd, maybe it does not even make sense.
The following is my problem: Given two linear equations $f(t)$ and $g(t)$, with $f(t)^2-g(t)^2 =Y^2$. Find $t$, so that $Y$ is an integer (or rational) number. In other words, how to construct a pythagorean triple out two linear equations?
To make the point more clear, I will illustrate it with an example:
Let $$f(t)=1+5t \qquad \text{and} \qquad g(t)=19+4t.$$ Then
$$(1+5t)^2-(19+4t)^2 = Y^2 = (t-18)(20+9t).$$
By trying different values, one finds $t=20$ and, as a solution, the triple $(20,99,101)$. This is perfect but also exactly what I'm not aiming at. My question is, rather, if there is another way to find $t$ besides try&error.
I have made a few thoughts. As a first attempt, I set both factors equal, that means $t-18 =20+9t$, ending up with $t=-19/4$. But this way, $g(t)$ becomes zero (which is not very interesting). Then I thought about bringing the whole thing a bit "out of balance“ by messing around with the factors. For this, I introduced a help-variable $H$, some random small number (say $H=11$), by which one of the factors shall be divided and the other multiplied. Since both factors are linear equations, this is an easy operation. For this example I chose the greater factor, meaning that $(20+9t)/11$. This gives $t= 11u-1$, right? Replacing $t$, one has $$(55u-4)^2-(44u+15)^2=(11u-19)(11+99u)=(121u-209)(1+9u).$$ See how the $11$ from the greater factor moved to the lesser? Now, equalling both factors, one has $121u-209=1+9u$, solving for $u=210/112=15/8$.
And indeed, a pythagorean triple appears, namely $(793/8,780/8,143/8)$. Removing the common factor 13/8, the primitive triple $(61,60,11)$ remains.
Well, I somehow answered my own question. But maybe you have some different ideas how to solve this problem? Feel free to share your thoughts. And thanks for reading, anyway!
Edit:
Thank you very much for the answers and suggestions. Your help is appreciated.
I think there is yet another solution path which works fine, if the target Pythagorean Triple is known (which is sadly not the case in the context where my problem arose, but anyway.)
For this, simply set up the proportion
$f(t) : g(t) = A : B$ , where $(A,B,C)$ is a triple.
For example let $f(t)=7+3t$, $g(t)=3+8t$ and $(A,B,C)=(8,15,17)$, then solve the linear system
$$7+3t=8u$$ $$3+8t=15u$$
The solution is $t=81/19$.