I have a non-linear line with these coordinates:
(1,50)(2,40)(3,45)(4,40)(5,60)(6,30)
When I draw the line passing through each of these points, noted line A, I can visually see that another straight line drawn from last to first point only - from (1,50) to (6,30) - noted line B, would intersect/cross line A.
My goal is to be able to mathematically check that line B does NOT intersects with line A, is there some equation or approach I could go with to check that?
EDIT:
Sorry for the misleading "line" word I use, I should have used curve. Here is the representation of what I meant (credits to Joffan):

Assuming that Line A is a piecewise linear curve and your issue is illustrated by:
(line A blue, line B orange), you can essentially use the basic line intersection equations to check whether each line segment in line A intersects line B between the limits of interest or not.
In this particular case, since the points of line A are in monotonic (here, ascending) $x$ order and line A starts on one side of line B and finishes on the other, you have a shortcut; there will definitely be an intersection somewhere. Also with the same restriction on the order of points on line A, you can check dot product for each line from $a_1$ to successive points $a_i$ against line B (which is $a_1$ to $a_n$) and check if the sign changes, indicated that the point is now the other side of line B, localizing the intersection (and finding multiple intersections if occurring). If you have intermediate points that are outside the $x$-limits of the points that define line B, this may not work: