Study guide
8.1 Coordinates, Slopes, Straight Line Equations & Distances
Pakistan ECAT Engineering Colleges Admission Test
Track your progress as you read
Finished sections get a check mark.
1 Chapter 1: ECAT Exam Structure, Scoring & Strategy
1.1 ECAT Exam Pattern, Scoring Scheme & UET Merit Aggregate 1.2 Time Management, Pacing & MCQ Problem-Solving Tactics
2 Chapter 2: Mathematics — Number Systems, Sets & Algebra
2.1 Real Numbers, Sets, Logic, Binary Operations & Groups 2.2 Complex Numbers, Modulus, Conjugates & De Moivre's Theorem 2.3 Matrices, Determinants, Inverses & Systems of Linear Equations 2.4 Quadratic Equations, Relations Between Roots & Factor/Remainder Theorems
3 Chapter 3: Mathematics — Sequences, Series & Combinatorics
3.1 Arithmetic, Geometric & Harmonic Progressions (AP, GP, HP) 3.2 Permutations, Combinations & Probability Distributions 3.3 Mathematical Induction & the Binomial Theorem
4 Chapter 4: Mathematics — Trigonometry & Trigonometric Equations
4.1 Fundamental Trigonometric Identities & Angle Addition Formulas 4.2 Graphs of Trigonometric Functions & Inverse Trigonometric Functions 4.3 Solutions of Triangles (Sine/Cosine Laws) & Trigonometric Equations
5 Chapter 5: Mathematics — Functions, Limits & Continuity
5.1 Real-Valued Functions, Types, Domains & Ranges 5.2 Limits of Functions, Indeterminate Forms & Squeeze Theorem 5.3 Continuity, Types of Discontinuity & Asymptotes
6 Chapter 6: Mathematics — Differential Calculus
6.1 Definition of Derivative, Power, Product, Quotient & Chain Rules 6.2 Derivatives of Trigonometric, Exponential & Logarithmic Functions 6.3 Implicit Differentiation, Parametric Equations & Higher-Order Derivatives 6.4 Tangents, Normals, Increasing/Decreasing Functions & Extrema
7 Chapter 7: Mathematics — Integral Calculus
7.1 Indefinite Integration Formulas & Integration by Substitution 7.2 Integration by Parts & Partial Fractions 7.3 Definite Integrals, Properties & Fundamental Theorem of Calculus 7.4 Area Under Curves & First-Order Differential Equations
8 Chapter 8: Mathematics — Analytic Geometry, Linear Programming & Vectors
8.1 Coordinates, Slopes, Straight Line Equations & Distances 8.2 Linear Inequalities & Linear Programming 8.3 Circle Equations, Tangents, Normals & Intersections 8.4 Conic Sections: Parabola, Ellipse & Hyperbola Characteristics 8.5 Vectors in 2D and 3D, Dot Product, Cross Product & Scalar Triple Product
9 Chapter 9: Physics — Measurements, Vectors & Equilibrium
9.1 Physical Quantities, SI Units, Errors & Dimensional Analysis 9.2 Vector Addition, Components, Scalar & Vector Products in Physics 9.3 Equilibrium Conditions, Torque & Rotational Equilibrium
10 Chapter 10: Physics — Kinematics, Dynamics & Energy
10.1 Kinematics: Displacement, Velocity, Acceleration & Motion Equations 10.2 Newton's Laws of Motion, Momentum, Impulse & Elastic Collisions 10.3 Projectile Motion: Trajectory, Height, Flight Time & Range 10.4 Work, Energy, Work-Energy Theorem, Conservative Forces & Power
11 Chapter 11: Physics — Circular Motion, Gravitation, Fluids & Oscillations
11.1 Uniform Circular Motion, Centripetal Force & Moment of Inertia 11.2 Gravitation, Escape Velocity, Satellites & Weightlessness 11.3 Viscosity, Drag Force, Equation of Continuity & Bernoulli's Principle 11.4 Simple Harmonic Motion (SHM), Pendulum, Mass-Spring & Resonance
12 Chapter 12: Physics — Waves, Optics, Optical Instruments & Thermodynamics
12.1 Waves, Speed of Sound, Standing Waves & Doppler Effect 12.2 Wave Theory of Light, Interference & Young's Double-Slit Experiment 12.3 Diffraction Grating, Resolving Power & Polarization of Light 12.4 Optical Instruments: Magnifiers, Microscopes, Telescopes, Spectrometer & Fibre Optics 12.5 Kinetic Theory of Gases, First Law, Heat Engines & Carnot Cycle
13 Chapter 13: Physics — Electrostatics, Current Electricity & Electromagnetism
13.1 Coulomb's Law, Electric Fields, Gauss's Law & Capacitors 13.2 Electric Current, Resistance, Ohm's Law, Kirchhoff's Rules & Potentiometer 13.3 Magnetic Fields, Ampere's Law, Faraday's Law, Lenz's Law & Transformers
14 Chapter 14: Physics — Alternating Current, Physics of Solids & Electronics
14.1 Alternating Current: RMS Values, Reactance, Impedance, Resonance & Power 14.2 Physics of Solids: Elasticity, Band Theory, Superconductors & Magnetic Materials 14.3 Electronics: p-n Junction, Rectifiers, Transistors, Op-Amps & Logic Gates
15 Chapter 15: Physics — Modern, Atomic & Nuclear Physics
15.1 Special Relativity, Mass–Energy Equivalence, Pair Production & Annihilation 15.2 Photoelectric Effect, Photons, Atomic Spectra, X-Rays & Nuclear Reactions 15.3 Lasers, Nuclear Reactors, Radiation Detectors, Dosimetry & Elementary Particles
16 Chapter 16: Chemistry — Basic Concepts, Atomic Structure, Bonding & States of Matter
16.1 Mole Concept, Stoichiometry, Limiting Reactants, Isotopes & Experimental Techniques 16.2 Atomic Structure, Bohr's Model, Quantum Numbers & Electronic Configurations 16.3 Chemical Bonding: Ionic, Covalent & Coordinate Bonds, VSEPR, Hybridization & MOT 16.4 Gas Laws, Ideal Gas Equation, Kinetic Molecular Theory & Real Gases 16.5 Liquids, Intermolecular Forces, Hydrogen Bonding & Crystal Lattices
17 Chapter 17: Chemistry — Energetics, Equilibrium & Kinetics
17.1 Enthalpy Changes, Calorimetry, Hess's Law & Born-Haber Cycle 17.2 Reversible Reactions, Equilibrium Constants (Kc, Kp), Le Chatelier & Ksp 17.3 Solutions, Concentration Units, Colligative Properties & Raoult's Law 17.4 Reaction Rates, Rate Equations, Order of Reaction & Activation Energy
18 Chapter 18: Chemistry — Periodic Trends, s-, p- & d-Block Elements & Electrochemistry
18.1 Periodic Trends: Atomic Radii, Ionization Energies & Electronegativities 18.2 Chemistry of s-Block and p-Block Elements (Groups I, II, III, IV, VII) 18.3 Groups V-A & VI-A: Nitrogen, Phosphorus, Oxygen & Sulphur Compounds 18.4 Transition Elements: Electronic Configurations, Complexes & Colors 18.5 Oxidation Numbers, Electrochemical Cells, Standard Potentials & Batteries
19 Chapter 19: Chemistry — Organic Chemistry & Reaction Mechanisms
19.1 Organic Functional Groups, IUPAC Nomenclature & Structural/Stereoisomerism 19.2 Aliphatic Hydrocarbons: Alkanes, Alkenes, Alkynes & Addition Reactions 19.3 Benzene: Electronic Structure, Resonance Stability & Electrophilic Substitution 19.4 Alkyl Halides (SN1/SN2), Grignard Reagents & Functional-Group Tests 19.5 Alcohols, Phenols & Ethers: Preparation and Reactions 19.6 Aldehydes, Ketones, Carboxylic Acids, Acid Derivatives & Amino Acids
20 Chapter 20: Chemistry — Macromolecules, Chemical Industries & Environment
20.1 Macromolecules: Polymers, Carbohydrates, Proteins, Lipids, Enzymes & Nucleic Acids 20.2 Chemical Industries in Pakistan & Environmental Chemistry
21 Chapter 21: English — Reading Comprehension, Vocabulary & Grammar
21.1 Reading Comprehension Strategies, Main Ideas, Inferences & Tone 21.2 Academic Vocabulary, Context Clues, Synonyms & Antonyms 21.3 Subject-Verb Agreement, Tenses & Grammatical Concord 21.4 Sentence Correction, Parallelism, Modifiers & Prepositions
8.1 Coordinates, Slopes, Straight Line Equations & Distances
Key Takeaways Explain This Topic AI
The distance between points ( x 1 , y 1 ) (x_1, y_1) ( x 1 , y 1 ) and ( x 2 , y 2 ) (x_2, y_2) ( x 2 , y 2 ) is given by Euclidean metric d = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2} d = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 , while section formula divides segments in ratio m 1 : m 2 m_1:m_2 m 1 : m 2 internally at ( m 1 x 2 + m 2 x 1 m 1 + m 2 , m 1 y 2 + m 2 y 1 m 1 + m 2 ) \left(\frac{m_1 x_2 + m_2 x_1}{m_1+m_2}, \frac{m_1 y_2 + m_2 y_1}{m_1+m_2}\right) ( m 1 + m 2 m 1 x 2 + m 2 x 1 , m 1 + m 2 m 1 y 2 + m 2 y 1 ) and externally with subtraction.
Slope m = tan θ = y 2 − y 1 x 2 − x 1 m = \tan\theta = \frac{y_2-y_1}{x_2-x_1} m = tan θ = x 2 − x 1 y 2 − y 1 represents the trigonometric rate of elevation; two non-vertical lines are parallel if and only if m 1 = m 2 m_1 = m_2 m 1 = m 2 , and perpendicular if and only if m 1 m 2 = − 1 m_1 m_2 = -1 m 1 m 2 = − 1 .
Straight lines take distinct algebraic representations: point-slope y − y 1 = m ( x − x 1 ) y - y_1 = m(x - x_1) y − y 1 = m ( x − x 1 ) , slope-intercept y = m x + c y = mx + c y = m x + c , two-intercept x a + y b = 1 \frac{x}{a} + \frac{y}{b} = 1 a x + b y = 1 , normal form x cos α + y sin α = p x\cos\alpha + y\sin\alpha = p x cos α + y sin α = p , and general linear form A x + B y + C = 0 Ax + By + C = 0 A x + B y + C = 0 .
The perpendicular distance from ( x 0 , y 0 ) (x_0, y_0) ( x 0 , y 0 ) to line A x + B y + C = 0 Ax + By + C = 0 A x + B y + C = 0 is d = ∣ A x 0 + B y 0 + C ∣ A 2 + B 2 d = \frac{|Ax_0 + By_0 + C|}{\sqrt{A^2+B^2}} d = A 2 + B 2 ∣ A x 0 + B y 0 + C ∣ , and the distance between parallel lines A x + B y + C 1 = 0 Ax + By + C_1 = 0 A x + B y + C 1 = 0 and A x + B y + C 2 = 0 Ax + By + C_2 = 0 A x + B y + C 2 = 0 is d = ∣ C 1 − C 2 ∣ A 2 + B 2 d = \frac{|C_1 - C_2|}{\sqrt{A^2+B^2}} d = A 2 + B 2 ∣ C 1 − C 2 ∣ .
The homogeneous second-degree equation a x 2 + 2 h x y + b y 2 = 0 ax^2 + 2hxy + by^2 = 0 a x 2 + 2 h x y + b y 2 = 0 represents two lines through the origin; the angle between them satisfies tan θ = 2 h 2 − a b a + b \tan\theta = \frac{2\sqrt{h^2-ab}}{a+b} tan θ = a + b 2 h 2 − ab , with lines being coincident when h 2 = a b h^2 = ab h 2 = ab and perpendicular when a + b = 0 a + b = 0 a + b = 0 .
Last updated: October 2026
Coordinates, Slopes, Straight Line Equations & Distances
Analytic geometry bridges algebraic formulation and geometric spatial intuition, serving as one of the highest-yield topics in the Intermediate Mathematics syllabus and the University of Engineering and Technology (UET) ECAT. Success on this paper requires students to transcend tedious manual graphing by deploying direct algebraic transformations, parameter identifications, and ratio shortcuts.
1. Cartesian Coordinates, Distance Metric, and Point Division
A point P P P in the Cartesian coordinate plane R 2 \mathbb{R}^2 R 2 is specified by an ordered pair of real numbers ( x , y ) (x, y) ( x , y ) , where x x x denotes the directed distance along the horizontal abscissa and y y y denotes the directed distance along the vertical ordinate.
The Euclidean Distance Metric
For two points P 1 ( x 1 , y 1 ) P_1(x_1, y_1) P 1 ( x 1 , y 1 ) and P 2 ( x 2 , y 2 ) P_2(x_2, y_2) P 2 ( x 2 , y 2 ) , the straight-line distance d = ∣ P 1 P 2 ∣ d = |P_1 P_2| d = ∣ P 1 P 2 ∣ is derived directly from the Pythagorean theorem on the right-angled triangle formed with horizontal leg ∣ x 2 − x 1 ∣ |x_2 - x_1| ∣ x 2 − x 1 ∣ and vertical leg ∣ y 2 − y 1 ∣ |y_2 - y_1| ∣ y 2 − y 1 ∣ :
d = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} d = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2
Three points A , B , A, B, A , B , and C C C are collinear if and only if the sum of the distances between two adjacent pairs equals the distance between the extremal pair (e.g., A B + B C = A C AB + BC = AC A B + BC = A C ), or equivalently, if the area of the triangle formed by them is zero.
The Section Formula
Let P ( x , y ) P(x, y) P ( x , y ) divide the line segment joining A ( x 1 , y 1 ) A(x_1, y_1) A ( x 1 , y 1 ) and B ( x 2 , y 2 ) B(x_2, y_2) B ( x 2 , y 2 ) in the ratio m 1 : m 2 m_1 : m_2 m 1 : m 2 :
Internal Division: When P P P lies strictly between A A A and B B B :
P ( x , y ) = ( m 1 x 2 + m 2 x 1 m 1 + m 2 , m 1 y 2 + m 2 y 1 m 1 + m 2 ) P(x, y) = \left( \frac{m_1 x_2 + m_2 x_1}{m_1 + m_2}, \; \frac{m_1 y_2 + m_2 y_1}{m_1 + m_2} \right) P ( x , y ) = ( m 1 + m 2 m 1 x 2 + m 2 x 1 , m 1 + m 2 m 1 y 2 + m 2 y 1 )
External Division: When P P P lies on the line extension beyond A A A or B B B ( m 1 ≠ m 2 m_1 \neq m_2 m 1 = m 2 ):
P ′ ( x , y ) = ( m 1 x 2 − m 2 x 1 m 1 − m 2 , m 1 y 2 − m 2 y 1 m 1 − m 2 ) P'(x, y) = \left( \frac{m_1 x_2 - m_2 x_1}{m_1 - m_2}, \; \frac{m_1 y_2 - m_2 y_1}{m_1 - m_2} \right) P ′ ( x , y ) = ( m 1 − m 2 m 1 x 2 − m 2 x 1 , m 1 − m 2 m 1 y 2 − m 2 y 1 )
Midpoint Formula ( m 1 = m 2 = 1 m_1 = m_2 = 1 m 1 = m 2 = 1 ):
M ( x , y ) = ( x 1 + x 2 2 , y 1 + y 2 2 ) M(x, y) = \left( \frac{x_1 + x_2}{2}, \; \frac{y_1 + y_2}{2} \right) M ( x , y ) = ( 2 x 1 + x 2 , 2 y 1 + y 2 )
ECAT Ratio Shortcut: If a point P ( x , y ) P(x, y) P ( x , y ) divides the segment A B AB A B in the ratio k : 1 k : 1 k : 1 , setting k = m 1 m 2 k = \frac{m_1}{m_2} k = m 2 m 1 yields x = k x 2 + x 1 k + 1 x = \frac{k x_2 + x_1}{k + 1} x = k + 1 k x 2 + x 1 and y = k y 2 + y 1 k + 1 y = \frac{k y_2 + y_1}{k + 1} y = k + 1 k y 2 + y 1 . If k > 0 k > 0 k > 0 , the division is internal; if k < 0 k < 0 k < 0 , the division is external.
Triangle Centers & Area
Centroid ( G G G ): The concurrency point of the three medians of a triangle with vertices ( x 1 , y 1 ) , ( x 2 , y 2 ) , ( x 3 , y 3 ) (x_1, y_1), (x_2, y_2), (x_3, y_3) ( x 1 , y 1 ) , ( x 2 , y 2 ) , ( x 3 , y 3 ) divides each median in a 2 : 1 2:1 2 : 1 ratio from vertex to midpoint:
G = ( x 1 + x 2 + x 3 3 , y 1 + y 2 + y 3 3 ) G = \left( \frac{x_1 + x_2 + x_3}{3}, \; \frac{y_1 + y_2 + y_3}{3} \right) G = ( 3 x 1 + x 2 + x 3 , 3 y 1 + y 2 + y 3 )
Area of a Triangle (Determinant Form): The signed area Δ \Delta Δ of the triangle formed by vertices ( x 1 , y 1 ) , ( x 2 , y 2 ) , ( x 3 , y 3 ) (x_1, y_1), (x_2, y_2), (x_3, y_3) ( x 1 , y 1 ) , ( x 2 , y 2 ) , ( x 3 , y 3 ) is:
Δ = 1 2 ∣ ∣ x 1 y 1 1 x 2 y 2 1 x 3 y 3 1 ∣ ∣ = 1 2 ∣ x 1 ( y 2 − y 3 ) + x 2 ( y 3 − y 1 ) + x 3 ( y 1 − y 2 ) ∣ \Delta = \frac{1}{2} \left| \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} \right| = \frac{1}{2} \bigl| x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2) \bigr| Δ = 2 1 x 1 x 2 x 3 y 1 y 2 y 3 1 1 1 = 2 1 x 1 ( y 2 − y 3 ) + x 2 ( y 3 − y 1 ) + x 3 ( y 1 − y 2 )
Collinearity of three points is verified algebraically if and only if this 3 × 3 3 \times 3 3 × 3 determinant equals zero.
2. Inclination, Slope, and Relative Orientations of Lines
The angle of inclination α \alpha α of a straight line is the directed angle measured counterclockwise from the positive x x x -axis to the line, with domain α ∈ [ 0 , π ) \alpha \in [0, \pi) α ∈ [ 0 , π ) or 0 ∘ ≤ α < 180 ∘ 0^\circ \le \alpha < 180^\circ 0 ∘ ≤ α < 18 0 ∘ .
Slope (Gradient) of a Line
The slope m m m is the tangent of the inclination angle:
m = tan α = y 2 − y 1 x 2 − x 1 ( x 1 ≠ x 2 ) m = \tan\alpha = \frac{y_2 - y_1}{x_2 - x_1} \quad (x_1 \neq x_2) m = tan α = x 2 − x 1 y 2 − y 1 ( x 1 = x 2 )
Horizontal lines have α = 0 ∘ ⟹ m = tan 0 ∘ = 0 \alpha = 0^\circ \implies m = \tan 0^\circ = 0 α = 0 ∘ ⟹ m = tan 0 ∘ = 0 .
Vertical lines have α = 90 ∘ ⟹ m = tan 90 ∘ \alpha = 90^\circ \implies m = \tan 90^\circ α = 9 0 ∘ ⟹ m = tan 9 0 ∘ is undefined (approaching ± ∞ \pm\infty ± ∞ ).
Lines inclined at an acute angle have m > 0 m > 0 m > 0 ; lines inclined at an obtuse angle have m < 0 m < 0 m < 0 .
Angle Between Two Intersecting Lines
Let two non-vertical lines L 1 L_1 L 1 and L 2 L_2 L 2 have slopes m 1 m_1 m 1 and m 2 m_2 m 2 , with inclinations α 1 \alpha_1 α 1 and α 2 \alpha_2 α 2 . The acute angle θ \theta θ between them satisfies:
tan θ = ∣ m 2 − m 1 1 + m 1 m 2 ∣ ( m 1 m 2 ≠ − 1 ) \tan\theta = \left| \frac{m_2 - m_1}{1 + m_1 m_2} \right| \quad (m_1 m_2 \neq -1) tan θ = 1 + m 1 m 2 m 2 − m 1 ( m 1 m 2 = − 1 )
Parallelism and Perpendicularity Criteria
Parallel Lines ( L 1 ∥ L 2 L_1 \parallel L_2 L 1 ∥ L 2 ): Two lines are parallel if and only if their inclinations are equal, meaning their slopes are identical:
m 1 = m 2 m_1 = m_2 m 1 = m 2
Perpendicular Lines ( L 1 ⊥ L 2 L_1 \perp L_2 L 1 ⊥ L 2 ): Two lines are mutually orthogonal if and only if θ = 90 ∘ \theta = 90^\circ θ = 9 0 ∘ , meaning the denominator vanishes:
1 + m 1 m 2 = 0 ⟺ m 1 m 2 = − 1 ⟺ m 2 = − 1 m 1 1 + m_1 m_2 = 0 \iff m_1 m_2 = -1 \iff m_2 = -\frac{1}{m_1} 1 + m 1 m 2 = 0 ⟺ m 1 m 2 = − 1 ⟺ m 2 = − m 1 1
ECAT Trap Alert: The relation m 1 m 2 = − 1 m_1 m_2 = -1 m 1 m 2 = − 1 holds only when neither line is vertical. If one line is vertical ( x = k x = k x = k , undefined slope), any perpendicular line is strictly horizontal ( y = c y = c y = c , slope m = 0 m = 0 m = 0 ).
3. Standard Algebraic Forms of Straight Lines
Form Name Algebraic Equation Required Parameters High-Speed ECAT Identification
Slope-Intercept y = m x + c y = mx + c y = m x + c Slope m m m , y y y -intercept c c c Immediate reading of gradient and axis intercept
Point-Slope y − y 1 = m ( x − x 1 ) y - y_1 = m(x - x_1) y − y 1 = m ( x − x 1 ) Slope m m m , passing point ( x 1 , y 1 ) (x_1, y_1) ( x 1 , y 1 ) Optimal when given one point and parallel/perpendicular slope
Two-Point y − y 1 = y 2 − y 1 x 2 − x 1 ( x − x 1 ) y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1) y − y 1 = x 2 − x 1 y 2 − y 1 ( x − x 1 ) Two distinct points ( x 1 , y 1 ) , ( x 2 , y 2 ) (x_1, y_1), (x_2, y_2) ( x 1 , y 1 ) , ( x 2 , y 2 ) Collinear point checking and chord equations
Two-Intercept x a + y b = 1 \frac{x}{a} + \frac{y}{b} = 1 a x + b y = 1 x x x -intercept a a a , y y y -intercept b b b Quick computation of axis-intercept triangles (Area = 1 2 ∣ a b ∣ = \frac{1}{2}\lvert ab \rvert = 2 1 ∣ ab ∣ )
Normal (Perpendicular) x cos α + y sin α = p x\cos\alpha + y\sin\alpha = p x cos α + y sin α = p Normal length p ≥ 0 p \ge 0 p ≥ 0 , normal angle α \alpha α Length of perpendicular from origin and orientation
General Linear A x + B y + C = 0 Ax + By + C = 0 A x + B y + C = 0 Coefficients A , B , C A, B, C A , B , C Slope m = − A B m = -\frac{A}{B} m = − B A , intercepts a = − C A , b = − C B a = -\frac{C}{A}, b = -\frac{C}{B} a = − A C , b = − B C
Conversion of General Form to Normal Form
To transform A x + B y + C = 0 Ax + By + C = 0 A x + B y + C = 0 into the normal form x cos α + y sin α = p x\cos\alpha + y\sin\alpha = p x cos α + y sin α = p , rearrange terms so the constant p ≥ 0 p \ge 0 p ≥ 0 appears on the right side: − A x − B y = C -Ax - By = C − A x − B y = C . Dividing both sides by ± A 2 + B 2 \pm\sqrt{A^2 + B^2} ± A 2 + B 2 yields:
( − A ± A 2 + B 2 ) x + ( − B ± A 2 + B 2 ) y = C ± A 2 + B 2 \left( -\frac{A}{\pm\sqrt{A^2+B^2}} \right)x + \left( -\frac{B}{\pm\sqrt{A^2+B^2}} \right)y = \frac{C}{\pm\sqrt{A^2+B^2}} ( − ± A 2 + B 2 A ) x + ( − ± A 2 + B 2 B ) y = ± A 2 + B 2 C
To guarantee p > 0 p > 0 p > 0 , choose the sign of the radical to match the sign of the constant C C C , so that p = ∣ C ∣ A 2 + B 2 p = \frac{|C|}{\sqrt{A^2+B^2}} p = A 2 + B 2 ∣ C ∣ . Example: 3 x − 4 y + 10 = 0 3x - 4y + 10 = 0 3 x − 4 y + 10 = 0 gives − 3 x + 4 y = 10 -3x + 4y = 10 − 3 x + 4 y = 10 ; dividing by + 5 +5 + 5 gives − 3 5 x + 4 5 y = 2 -\frac{3}{5}x + \frac{4}{5}y = 2 − 5 3 x + 5 4 y = 2 , so p = 2 p = 2 p = 2 , cos α = − 3 5 \cos\alpha = -\frac{3}{5} cos α = − 5 3 and sin α = 4 5 \sin\alpha = \frac{4}{5} sin α = 5 4 .
- 4. Perpendicular Distances and Parallel Line Separation
- Distance from an Arbitrary Point to a Line
The perpendicular distance d d d from a given point P ( x 0 , y 0 ) P(x_0, y_0) P ( x 0 , y 0 ) to the straight line L ≡ A x + B y + C = 0 L \equiv Ax + By + C = 0 L ≡ A x + B y + C = 0 is:
d = ∣ A x 0 + B y 0 + C ∣ A 2 + B 2 d = \frac{|A x_0 + B y_0 + C|}{\sqrt{A^2 + B^2}} d = A 2 + B 2 ∣ A x 0 + B y 0 + C ∣
For the special case where P P P is the origin ( 0 , 0 ) (0, 0) ( 0 , 0 ) :
- d 0 = ∣ C ∣ A 2 + B 2 d_0 = \frac{|C|}{\sqrt{A^2 + B^2}} d 0 = A 2 + B 2 ∣ C ∣
- Distance Between Two Parallel Lines
Let two parallel lines be expressed with identical linear coefficients A A A and B B B :
L 1 ≡ A x + B y + C 1 = 0 and L 2 ≡ A x + B y + C 2 = 0 L_1 \equiv Ax + By + C_1 = 0 \quad \text{and} \quad L_2 \equiv Ax + By + C_2 = 0 L 1 ≡ A x + B y + C 1 = 0 and L 2 ≡ A x + B y + C 2 = 0
The perpendicular separation distance d d d between them is:
d = ∣ C 1 − C 2 ∣ A 2 + B 2 d = \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}} d = A 2 + B 2 ∣ C 1 − C 2 ∣
ECAT Trap Alert: Before applying d = ∣ C 1 − C 2 ∣ A 2 + B 2 d = \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}} d = A 2 + B 2 ∣ C 1 − C 2 ∣ , normalize both linear equations so the coefficients of x x x and y y y are completely identical. For example, if given 3 x − 4 y + 5 = 0 3x - 4y + 5 = 0 3 x − 4 y + 5 = 0 and 6 x − 8 y − 10 = 0 6x - 8y - 10 = 0 6 x − 8 y − 10 = 0 , divide the second equation by 2 to yield 3 x − 4 y − 5 = 0 3x - 4y - 5 = 0 3 x − 4 y − 5 = 0 before computing d = ∣ 5 − ( − 5 ) ∣ 3 2 + ( − 4 ) 2 = 10 5 = 2 d = \frac{|5 - (-5)|}{\sqrt{3^2 + (-4)^2}} = \frac{10}{5} = 2 d = 3 2 + ( − 4 ) 2 ∣5 − ( − 5 ) ∣ = 5 10 = 2 .
Relative Positions of Points with Respect to a Line
Two points P ( x 1 , y 1 ) P(x_1, y_1) P ( x 1 , y 1 ) and Q ( x 2 , y 2 ) Q(x_2, y_2) Q ( x 2 , y 2 ) lie on the same side of A x + B y + C = 0 Ax + By + C = 0 A x + B y + C = 0 if ( A x 1 + B y 1 + C ) (Ax_1 + By_1 + C) ( A x 1 + B y 1 + C ) and ( A x 2 + B y 2 + C ) (Ax_2 + By_2 + C) ( A x 2 + B y 2 + C ) share the same sign. They lie on opposite sides if these evaluations have opposite algebraic signs.
5. Homogeneous Second-Degree Equation & Pairs of Straight Lines
A second-degree homogeneous algebraic equation in x x x and y y y has the standard form:
a x 2 + 2 h x y + b y 2 = 0 ax^2 + 2hxy + by^2 = 0 a x 2 + 2 h x y + b y 2 = 0
Because every term is quadratic, this equation represents a pair of straight lines passing through the origin ( 0 , 0 ) (0, 0) ( 0 , 0 ) . Dividing by x 2 x^2 x 2 ( x ≠ 0 x \neq 0 x = 0 ) and setting m = y x m = \frac{y}{x} m = x y gives:
b m 2 + 2 h m + a = 0 b m^2 + 2h m + a = 0 b m 2 + 2 hm + a = 0
Let m 1 m_1 m 1 and m 2 m_2 m 2 be the roots of this quadratic equation, corresponding to the slopes of the two lines y = m 1 x y = m_1 x y = m 1 x and y = m 2 x y = m_2 x y = m 2 x . By Vieta's formulas:
m 1 + m 2 = − 2 h b , m 1 m 2 = a b m_1 + m_2 = -\frac{2h}{b}, \qquad m_1 m_2 = \frac{a}{b} m 1 + m 2 = − b 2 h , m 1 m 2 = b a
Angle Between the Pair of Lines
The angle θ \theta θ between the two lines represented by a x 2 + 2 h x y + b y 2 = 0 ax^2 + 2hxy + by^2 = 0 a x 2 + 2 h x y + b y 2 = 0 is:
tan θ = ∣ m 1 − m 2 1 + m 1 m 2 ∣ = ( m 1 + m 2 ) 2 − 4 m 1 m 2 1 + m 1 m 2 = ( − 2 h b ) 2 − 4 ( a b ) 1 + a b = 2 h 2 − a b a + b \tan\theta = \left| \frac{m_1 - m_2}{1 + m_1 m_2} \right| = \frac{\sqrt{(m_1 + m_2)^2 - 4m_1 m_2}}{1 + m_1 m_2} = \frac{\sqrt{\left(-\frac{2h}{b}\right)^2 - 4\left(\frac{a}{b}\right)}}{1 + \frac{a}{b}} = \frac{2\sqrt{h^2 - ab}}{a + b} tan θ = 1 + m 1 m 2 m 1 − m 2 = 1 + m 1 m 2 ( m 1 + m 2 ) 2 − 4 m 1 m 2 = 1 + b a ( − b 2 h ) 2 − 4 ( b a ) = a + b 2 h 2 − ab
Geometric Conditions for the Pair of Lines
Real and Distinct Lines: h 2 − a b > 0 h^2 - ab > 0 h 2 − ab > 0 ( h 2 > a b h^2 > ab h 2 > ab ).
Real and Coincident Lines: h 2 − a b = 0 ⟺ h 2 = a b h^2 - ab = 0 \iff h^2 = ab h 2 − ab = 0 ⟺ h 2 = ab .
Imaginary Lines (intersecting only at the origin): h 2 − a b < 0 h^2 - ab < 0 h 2 − ab < 0 .
Orthogonal (Mutually Perpendicular) Lines: The lines are perpendicular if tan θ → ∞ \tan\theta \to \infty tan θ → ∞ , which occurs when the denominator equals zero:
a + b = 0 ⟺ Coefficient of x 2 + Coefficient of y 2 = 0 a + b = 0 \iff \text{Coefficient of } x^2 + \text{Coefficient of } y^2 = 0 a + b = 0 ⟺ Coefficient of x 2 + Coefficient of y 2 = 0
ECAT Speed Trick: To immediately check whether a homogeneous second-degree equation represents perpendicular lines, inspect a + b a + b a + b . If a + b = 0 a + b = 0 a + b = 0 (e.g., 3 x 2 + 7 x y − 3 y 2 = 0 3x^2 + 7xy - 3y^2 = 0 3 x 2 + 7 x y − 3 y 2 = 0 ), the lines are mutually perpendicular regardless of the value of h h h .
6. General Second-Degree Equation Representing Two Lines
The general non-homogeneous second-degree equation:
a x 2 + 2 h x y + b y 2 + 2 g x + 2 f y + c = 0 ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0 a x 2 + 2 h x y + b y 2 + 2 gx + 2 f y + c = 0
represents a pair of coplanar straight lines if and only if the determinant Δ \Delta Δ vanishes:
Δ = ∣ a h g h b f g f c ∣ = a b c + 2 f g h − a f 2 − b g 2 − c h 2 = 0 \Delta = \begin{vmatrix} a & h & g \\ h & b & f \\ g & f & c \end{vmatrix} = abc + 2fgh - af^2 - bg^2 - ch^2 = 0 Δ = a h g h b f g f c = ab c + 2 f g h − a f 2 − b g 2 − c h 2 = 0
If Δ = 0 \Delta = 0 Δ = 0 , the angle between these lines is still governed by tan θ = 2 h 2 − a b a + b \tan\theta = \frac{2\sqrt{h^2 - ab}}{a + b} tan θ = a + b 2 h 2 − ab , and they are mutually perpendicular if a + b = 0 a + b = 0 a + b = 0 and parallel if h 2 = a b h^2 = ab h 2 = ab .