Intersection of Two Lines
Find where two lines ax+by+c=0 meet using Cramer's rule. Handles intersecting, parallel, and coincident lines. D = aโbโ โ aโbโ determines the case.
Did our AI summary help? Let us know.
D = 0 means direction vectors (aโ,bโ) and (aโ,bโ) are parallel. Quick parallel check: aโ/aโ = bโ/bโ โ cโ/cโ. Vertical line x = k: use a=1, b=0, c=โk.
Ready to run the numbers?
Why: Line intersection is fundamental in collision detection, ray tracing, and solving linear systems.
How: Compute D = aโbโ โ aโbโ. If D โ 0, lines intersect at one point. Use Cramer's rule for x and y. If D = 0, lines are parallel or coincident.
Run the calculator when you are ready.
Line Equations (ax + by + c = 0)
Line 1
Line 2
For educational and informational purposes only. Verify with a qualified professional.
๐งฎ Fascinating Math Facts
Cramer's rule uses determinants to solve linear systems.
โ Algebra
D = 0 means direction vectors are parallel.
โ Geometry
Key Takeaways
- โข Standard form: and
- โข Determinant : D โ 0 โ unique intersection
- โข Cramer's rule:
- โข D = 0 โ parallel or coincident (check if coefficients are proportional)
- โข Coincident = same line; parallel = distinct lines, no intersection
Did You Know?
Cramer's rule uses determinants to solve linear systems. For 2ร2 systems it gives explicit formulas for x and y.
D = 0 means the direction vectors (aโ,bโ) and (aโ,bโ) are parallel, so the lines are parallel or coincident.
Convert to y = mx + b: slope m = โa/b. Parallel lines have the same slope.
Used in collision detection, ray tracing, and solving systems of linear equations.
Exactly one point (intersect), no point (parallel), or infinitely many (coincident).
When D is very small, the lines are nearly parallel and results can be sensitive to rounding.
Understanding the Formulas
For lines and , the determinant is:
If D โ 0, the intersection point is:
Expert Tips
Quick Parallel Check
If aโ/aโ = bโ/bโ โ cโ/cโ, lines are parallel. If all three ratios equal, they're coincident.
Vertical Line
For x = k, use a=1, b=0, c=โk. For y = k, use a=0, b=1, c=โk.
Avoid Zero
Ensure at least one of a, b is non-zero for each line. Otherwise the equation is invalid.
Verification
Substitute (x,y) into both equations to verify. Both should equal 0.
Frequently Asked Questions
When do two lines intersect?
When the determinant D = aโbโ โ aโbโ โ 0. Then they cross at exactly one point.
When are lines parallel?
When D = 0 and the coefficients are not proportional. The lines never meet.
What does coincident mean?
The lines are the same. Every point on the line is an intersection. D = 0 and coefficients are proportional.
How do I enter a vertical line?
Use a=1, b=0, c=โk for the line x = k.
What is Cramer's rule?
A method to solve linear systems using determinants. For 2ร2 systems it gives explicit formulas.
Can the intersection be at the origin?
Yes, when cโ = cโ = 0 and D โ 0, the intersection is (0, 0).
What if both lines are the same?
Then they are coincident. Enter proportional coefficients (e.g. 1,2,3 and 2,4,6).
How to Use This Calculator
- Enter coefficients for Line 1 (aโx + bโy + cโ = 0) and Line 2 (aโx + bโy + cโ = 0).
- Click a sample example to auto-fill and calculate.
- Click Calculate to find the intersection (or determine parallel/coincident).
- Review the result, visualization, and step-by-step solution.
- Use Copy Results to share.
Disclaimer: This calculator is for educational use. Ensure at least one of a, b is non-zero for each line.
Related Calculators
Centroid Calculator
Centroid Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsEndpoint Calculator
Endpoint Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsGradient Calculator
Gradient Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsPlane To Plane Intersection Calculator
Plane To Plane Intersection Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsRotation Calculator
Rotation Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsVector Calculator
Vector Calculator - Calculate and learn about coordinate-geometry concepts
Mathematics