When two lines stop meeting
A system with a parameter, four graphical experiments and the proof by elimination.
The diagram shows two lines that cross. I change a number and the crossing leaves the drawing. If the lines look parallel, how can I tell whether the meeting point is just farther away or has really disappeared?
y = ax + 2
y = x + b, with a, b real

Eliminating y without losing a case
If a point belongs to both lines, its ordinates are equal. So I can write ax + 2 = x + b and collect x. Conversely, every x that satisfies the collected equation gives a solution of the system by assigning y = x + b. The elimination is reversible.
(a − 1)x = b − 2
Before dividing, I look at the coefficient of x. If a ≠ 1, I divide by a − 1 and substitute in the second line. I get x = (b − 2)/(a − 1) and y = (ab − 2)/(a − 1). The lines intersect. If a = 1, what remains is 0 = b − 2. With b ≠ 2 the equality is false: same slope, different intercepts. With b = 2 the equality holds for every real number: the lines coincide and the solutions are all the points (x, x + 2).
| Case | Test with (a, b) | Exact solutions |
|---|---|---|
| a ≠ 1 | (2, 4) | One, (2, 6) |
| a = 1, b ≠ 2 | (1, 4) | None |
| a = 1, b = 2 | (1, 2) | Infinitely many, all the points (x, x + 2) |
| a very close to 1, a ≠ 1 | (101/100, 4) | One, (200, 204) |
Four tests changing the family
In a new Session open Viewers → Mathematics → Graphs. In Named parameters and families use the context menu of the list to rename the initial parameter a and add b, with initial values 2 and 4. Add the second function from the Add declaration… menu of the Functions list. Enter the expressions a*x+2 and x+b in the two main branches. Use 1 as the unit for the variables, the two responses and the parameters. In the parameter list open the context menu and choose Parameter families…. Add four families with IDs secanti, parallele, coincidenti and quasi (intersecting, parallel, coincident and nearly parallel). For each enter a = … and b = … on separate lines, using the values of the table. Type 1.01 for 101/100 in the fourth case. For the hand calculation I use the fraction; the viewer works in numerical arithmetic.

Choose a family, set the window [−5, 5] with 401 samples and use Operations → Plot / Refresh. Select the first line and set intersections in the Graphs selector. Then open Operations → Analyze. In the dialog indicate the second line as partner and leave the limits empty to use the global domain. The Analyze search used 129 samples, separate from the 401 requested for the plot. With the intersecting lines the response is roots found, with x = 2 and zero residual. Substituting in the second line I get y = 6.
A crossing beyond the margin
I load Quasi parallele. In the window [−5, 5] I see two distinct traces and again get no root detected. But the difference between the ordinates is x/100 − 2. It vanishes at 200. I include that value by extending the domain of the plot and of the study to [−5, 210], with 431 samples for the plot. After Plot / Refresh I double-click the plane to fit the view. Then I drag the plane with the middle button to move the crossing away from the legend. In the new window the search reports x = 200, zero residual. The second line gives level 204. This experiment separates two cases that, in the first window, had produced the same response.
Near the crossing the two traces occupy almost the same pixels. To read how far apart the ordinates are, in Graphs I declare one function with (a*x+2)-(x+b) and one with 0. I hide the two original lines with Toggle selected visibility, sample [180, 210] with 301 points, refresh the plot and fit the view with a double click. The gap goes from negative to positive right near tick 200.

Reading the gap in Algebra
I redid the nearly parallel case as a subtraction between two Function Datasets. I use GX-TXT v0.9.8.10-dev-112-p012 with micropatch, Mathematics Explorer 0.2.0, on a copy for Debian 13 amd64. Installation and start-up instructions · Micropatch (ZIP).
To fix the parameter pair, in Graphs write the lines as 1.01*x+2 and x+4, in Unit 1 on the closed domain [−5, 210]. With the same procedure as the product, save the model and publish the two Functions with the IDs alg_retta_a and alg_retta_b. In Algebra load the first in Operand A and the second in Operand B, waiting for each reading to finish. The order matters. Choose Subtract Functions, press Apply and open the result in View formula.
On paper the gap is ax + 2 − (x + b) = (a − 1)x − (b − 2). For a = 101/100 and b = 4 I get x/100 − 2. I also published the gap as alg_scarto_rette and read it back as an operand. For this Function Evaluate samples… stays inactive. Evaluating the saved definition separately at 0, 100 and 200, I got −2, −1 and 0. The gap plot above shows the same crossing. Exact values and windows of the four families (ZIP).
When the official fix is included and verified, you will use the standard P013 for the exercises.
Final exercise
Fix b = 4. For which a does the system have a single solution with 0 ≤ x ≤ 5 and y ≤ 7? Try in Graphs the boundary value and an interior example.
Worked solution
Since y = x + 4, the two constraints are equivalent to 0 ≤ x ≤ 3. With a = 1 the system is impossible. For the other values x = 2/(a − 1), so the abscissa is positive only for a > 1. At this point I can multiply 2/(a − 1) ≤ 3 by the positive denominator: 2 ≤ 3(a − 1), hence a ≥ 5/3. At the boundary I get (3, 7), while with a = 2 I get (2, 6).
Screenshots of the Giux-Lab test on GX-TXT DEV112 P012, Mathematics Explorer 0.2.0.