Mathematics for Data Science I - Week 2: Coordinate Geometry and Straight Lines

πŸ“š Table of Contents

  1. Fundamental Concepts
  2. Question Pattern Analysis
  3. Detailed Solutions by Pattern
  4. Practice Exercises
  5. Visual Learning
  6. Common Pitfalls & Traps
  7. Quick Refresher Handbook

Fundamental Concepts

🎯 Rectangular Coordinate System

The rectangular coordinate system (also called Cartesian coordinate system) is a fundamental tool for representing geometric relationships algebraically.

Key Components:

  • X-axis: Horizontal axis (represents independent variable)
  • Y-axis: Vertical axis (represents dependent variable)
  • Origin: Point (0,0) where axes intersect
  • Quadrants: Four regions created by the axes
  • Ordered Pair: (x,y) representing a point’s position

Distance Formula:

For two points and :

Section Formula:

Point dividing line segment joining and in ratio :

  • Internal Division:
  • External Division:

πŸ“ˆ Straight Lines

1. Slope of a Line

For line passing through points and :

where is the angle the line makes with positive x-axis.

2. Forms of Linear Equations

FormEquationWhen to UseKey Features
Slope-InterceptWhen slope and y-intercept are known = slope, = y-intercept
Point-SlopeWhen slope and one point are knownMost versatile form
Two-PointWhen two points are knownDirect application of slope formula
General/StandardFor theoretical analysis are constants
Intercept FormWhen intercepts are known = x-intercept, = y-intercept

3. Special Cases of Lines

Line TypeSlopeEquationCharacteristics
HorizontalParallel to x-axis
VerticalUndefinedParallel to y-axis
Line through originPasses through (0,0)

4. Parallel and Perpendicular Lines

For lines with slopes and :

  • Parallel:
  • Perpendicular:

5. Distance from Point to Line

Distance from point to line :

6. Angle Between Two Lines

For lines with slopes and :


Question Pattern Analysis

Based on analysis of previous year questions, Week 2 follows these distinct patterns:

🎯 Pattern 1: Line Intersection & Collision Detection

Frequency: High | Difficulty: Easy-Medium

  • Tests understanding of solving systems of linear equations
  • Often framed as real-world scenarios (bird/plane collision, paths)

🎯 Pattern 2: Distance & Rate Problems

Frequency: Medium | Difficulty: Medium

  • Combines geometry with calculus concepts (rates of change)
  • Circular ripples, expanding objects

🎯 Pattern 3: Reflection & Optics

Frequency: Medium | Difficulty: Medium-Hard

  • Uses laws of reflection in coordinate geometry
  • Light rays, mirror problems

🎯 Pattern 4: Geometric Properties (Parallelograms, Triangles)

Frequency: High | Difficulty: Medium

  • Tests coordinate geometry properties of quadrilaterals
  • Section formula, area calculations

🎯 Pattern 5: Linear Models & Cost Analysis

Frequency: Medium | Difficulty: Easy-Medium

  • Real-world applications (cost optimization, decision making)
  • Comparing linear equations

🎯 Pattern 6: Shortest Distance Problems

Frequency: High | Difficulty: Medium

  • Point-to-line distance formula
  • Optimization scenarios

🎯 Pattern 7: Linear Regression & Data Fitting

Frequency: High | Difficulty: Medium-Hard

  • Sum of Squared Errors (SSE)
  • Best fit lines, data interpretation

Detailed Solutions by Pattern

🎯 Pattern 1: Line Intersection & Collision Detection

Example from PYQ:

A bird is flying along the straight line . In the same plane, an aeroplane starts to fly in a straight line from the origin and passes through the point . If the bird and plane collide, enter the answer as 1, and if not, then 0.

Step-by-Step Solution:

Step 1: Convert both equations to standard form

  • Bird’s line:

    • Rearrange:
    • Simplify: ← Slope = 3, y-intercept = 3
  • Plane’s line: Passes through and

    • Slope:
    • Equation: ← Slope = 3, y-intercept = 0

Step 2: Check for collision

  • Two lines collide if they intersect
  • For collision: Lines must have same slope AND same y-intercept
  • Here: Both have slope = 3 βœ“
  • But: y-intercepts are 3 and 0 βœ—

Step 3: Conclusion Since lines are parallel but distinct, they never intersect.

Answer: 0

πŸ’‘ Key Insight:

Parallel lines with different intercepts never meet. This is a fundamental property used in collision detection problems.


🎯 Pattern 2: Distance & Rate Problems

Example from PYQ:

A rock is thrown in a pond and creates circular ripples whose radius increases at a rate of 0.2 meters per second. What will be the value of , where is the area (in square meters) of the circle after 5 seconds?

Step-by-Step Solution:

Step 1: Understand the relationship

  • Radius increases at constant rate: m/s
  • Time: seconds
  • Area of circle:

Step 2: Find radius after 5 seconds

  • meter

Step 3: Calculate area

  • square meters

Step 4: Find

Answer: 1.0

πŸ’‘ Key Insight:

When asked for in circle problems, they’re simplifying to find , avoiding calculations.


🎯 Pattern 3: Reflection & Optics

Example from PYQ:

A ray of light passing through the point is reflected at a point on the X-axis and then passes through the point . What is the equation of the straight line segment ?

Step-by-Step Solution:

Step 1: Understand reflection law

  • Angle of incidence = Angle of reflection
  • For reflection on x-axis: y-coordinate changes sign, x-coordinate remains same
  • If is reflection point, then reflected point of is

Step 2: Use collinearity

  • Points , , and are collinear
  • Slope between and = Slope between and

Step 3: Calculate slopes

  • Slope to :
  • Slope to :

Step 4: Equate slopes

Step 5: Find equation of AB

  • Points: and
  • Slope:

Using point-slope form with point :

Answer:

πŸ’‘ Key Insight:

Reflection problems use the property that the incident ray, reflected ray, and normal make equal angles. For coordinate axes reflections, simply change the sign of the perpendicular coordinate.


🎯 Pattern 4: Geometric Properties

Example from PYQ:

Let be a parallelogram with vertices , , and . Which of the following always denotes the coordinate of the fourth vertex ?

Step-by-Step Solution:

Step 1: Use parallelogram property

  • In a parallelogram, diagonals bisect each other
  • Midpoint of = Midpoint of

Step 2: Apply midpoint formula

  • Midpoint of :
  • Let
  • Midpoint of :

Step 3: Equate midpoints

Step 4: Solve for

Answer:

πŸ’‘ Key Insight:

The fourth vertex formula comes from vector addition: , so .


🎯 Pattern 5: Linear Models & Cost Analysis

Example from PYQ:

Lalith wants to buy a new mobile and needs 200 minutes of calls per month. He has two options: Company Offer: Mobile and a 1-year Astron Network plan (unlimited calls) for β‚Ή34000. Separate Purchase: Buy only the mobile for β‚Ή22000 and choose a network provider…

Step-by-Step Solution:

Step 1: Calculate costs for Company Offer

  • Total cost = β‚Ή34,000

Step 2: Calculate costs for Separate Purchase

  • Mobile cost = β‚Ή22,000
  • Network costs for 200 minutes/month:
    • Astron: β‚Ή100/month + β‚Ή2/min Γ— 200 = β‚Ή100 + β‚Ή400 = β‚Ή500/month
    • Proton: β‚Ή200/month + β‚Ή0.5/min Γ— 200 = β‚Ή200 + β‚Ή100 = β‚Ή300/month
  • Annual network costs:
    • Astron: β‚Ή500 Γ— 12 = β‚Ή6,000
    • Proton: β‚Ή300 Γ— 12 = β‚Ή3,600
  • Total separate costs:
    • With Astron: β‚Ή22,000 + β‚Ή6,000 = β‚Ή28,000
    • With Proton: β‚Ή22,000 + β‚Ή3,600 = β‚Ή25,600

Step 3: Find best option and savings

  • Best separate option: β‚Ή25,600 (with Proton)
  • Savings: β‚Ή34,000 - β‚Ή25,600 = β‚Ή8,400

Answer: 8400

πŸ’‘ Key Insight:

Always compare all options systematically. The β€œcheaper” per-minute rate may not always give the lowest total cost due to fixed charges.


🎯 Pattern 6: Shortest Distance Problems

Example from PYQ:

The government wants to connect a town to a national highway. The national highway is a straight line connecting points and . There are 3 possible locations in the town to build the connecting road from: A(3,8), B(5,7), and C(6,9)…

Step-by-Step Solution:

Step 1: Find equation of highway line

  • Points: and
  • Slope:
  • Equation:

Step 2: Use distance formula from point to line For point to line :

Here: , ,

Step 3: Calculate distances

  • For :
  • For :
  • For :

Step 4: Convert to meters and select minimum

  • Minimum distance = 3 units = 3 Γ— 100 = 300 meters
  • Best location: Point B

Answers: Location B, 300 meters

πŸ’‘ Key Insight:

The shortest distance from a point to a line is always along the perpendicular. This is why we use the point-to-line distance formula.


🎯 Pattern 7: Linear Regression & Data Fitting

Example from PYQ:

A fitness trainer models a client’s weight loss with the equation , where is weight in Kg and is time in months. The actual data is in the table below… An equation is a β€œgood fit” if its Sum of Squared Errors (SSE) is less than 5. Is the trainer’s equation a good fit?

Step-by-Step Solution:

Step 1: Understand SSE where = actual value, = predicted value

Step 2: Calculate predicted values Using :

  • :
  • :
  • :
  • :
  • :
  • :
  • :

Step 3: Calculate squared errors

Actual Predicted ErrorErrorΒ²
0989800
1909000
2828200
3747400
4666600
55758-11
64950-11

Step 4: Calculate SSE

Step 5: Compare with threshold

  • SSE = 2 < 5 βœ“

Answer: True (it is a good fit)

πŸ’‘ Key Insight:

Perfect matches contribute 0 to SSE. Even small deviations can make SSE exceed the threshold, so precision matters.


4. Handbook / Quick Refresher

ConceptFormula
Slope
Slope-Intercept Form
Point-Slope Form
General Form
Parallel Lines
Perpendicular Lines
Distance (Point-Point)
Distance (Point-Line)
Midpoint
Section Formula (Internal)
Area of Triangle
Sum of Squared ErrorsSSE =

Practice Exercises

🎯 Exercise Set 1: Fundamental Concepts

Exercise 1.1: Find the equation of the line passing through and .

Hint Use the two-point form: $\frac{y-y_1}{x-x_1} = \frac{y_2-y_1}{x_2-x_1}$
Solution

Step 1: Calculate slope

Step 2: Use point-slope form with

Step 3: Convert to standard form

Answer: or


Exercise 1.2: Find the distance between parallel lines and .

Hint First check if lines are parallel, then find distance from any point on one line to the other line.
Solution

Step 1: Check if parallel

  • Line 1:
  • Line 2: or
  • Both have same coefficients for and β†’ Parallel βœ“

Step 2: Find a point on Line 1 When : Point:

Step 3: Use distance formula Line 2 in standard form: Distance from to Line 2:

Answer: units


🎯 Exercise Set 2: Application Problems

Exercise 2.1: A laser beam is aimed from point to a mirror placed along the line . After reflection, the beam passes through . Find the point of incidence on the mirror.

Hint For reflection on a horizontal line $y = k$, the y-coordinate becomes $2k - y$ while x-coordinate remains the same.
Solution

Step 1: Find reflected point

  • Mirror:
  • Original point:
  • Reflected point:

Step 2: Use collinearity Points , incidence point , and are collinear.

Step 3: Calculate using section formula Since and have same y-coordinate, the incidence point must have:

  • (midpoint)
  • (on mirror)

Answer:


Exercise 2.2: A company produces two products. Product A costs β‚Ή50 per unit plus β‚Ή2000 setup cost. Product B costs β‚Ή80 per unit plus β‚Ή1500 setup cost. Find the break-even point where total costs are equal.

Hint Set up linear cost equations for both products and solve for equality.
Solution

Step 1: Set up cost equations

  • Product A:
  • Product B:

Step 2: Find break-even point

Step 3: Calculate cost at break-even

Answer: At approximately 16.67 units, costing β‚Ή2833.33


Visual Learning

πŸ“Š Coordinate System Visualization

graph TD
    A[Origin 0,0] --> B[Quadrant I +,+]
    A --> C[Quadrant II -,+]
    A --> D[Quadrant III -,-]
    A --> E[Quadrant IV +,-]

    F[Point x₁,y₁] --> G[Distance Formula]
    G --> H["√xβ‚‚-x₁² + yβ‚‚-y₁²"]

    I[Line Properties] --> J[Slope m = Ξ”y/Ξ”x]
    I --> K[Parallel m₁ = mβ‚‚]
    I --> L[Perpendicular m₁ Γ— mβ‚‚ = -1]

πŸ“ˆ Line Relationships

graph LR
    subgraph Parallel Lines
        direction LR
        L1[Line 1: y = 2x + 3]
        L2[Line 2: y = 2x - 1]
        L1 -.-> L2
    end

    subgraph Perpendicular Lines
        direction TB
        L3[Line 3: y = -1/2x + 4]
        L4[Line 4: y = 2x + 1]
        L3 -- 90Β° --> L4
    end

    subgraph Distance Problem
        direction RL
        P[Point xβ‚€,yβ‚€]
        L[Line: Ax + By + C = 0]
        P -.->|Shortest Distance| L
        D["d = |Axβ‚€ + Byβ‚€ + C|/√AΒ² + BΒ²"]
    end

πŸ” Reflection Geometry

sequenceDiagram
    participant Light as Light Ray
    participant Mirror as Mirror Line
    participant Point as Original Point
    participant Reflected as Reflected Point

    Point->>Mirror: Incident Ray
    Note over Mirror: Angle of Incidence
    Mirror->>Reflected: Reflected Ray
    Note over Mirror: Angle of Reflection

    Note right of Point: For horizontal mirror:<br/>y-coordinate changes sign<br/>x-coordinate stays same

Common Pitfalls & Traps

🚨 Pitfall 1: Sign Errors in Distance Formula

Problem: Forgetting absolute value in distance formula

Trap: Using (without absolute value)

Example: Distance from to line

  • ❌ Wrong:
  • βœ… Correct:

Prevention: Always use absolute value for distance calculations.


🚨 Pitfall 2: Confusing Parallel and Perpendicular Conditions

Problem: Mixing up the conditions for parallel and perpendicular lines

Common Mistakes:

  • Thinking parallel means ❌
  • Thinking perpendicular means ❌

Correct Conditions:

  • Parallel: βœ…
  • Perpendicular: βœ…

Memory Trick:

  • Parallel = β€œSame direction” = same slope
  • Perpendicular = β€œOpposite direction” = negative reciprocal

🚨 Pitfall 3: Section Formula Direction

Problem: Not distinguishing between internal and external division

Internal Division (point between the two points):

External Division (point outside the segment):

Trap: Using internal division formula for external division problems

Prevention: Check if the dividing point lies between the given points.


🚨 Pitfall 4: Rate Problems Unit Conversion

Problem: Not converting units properly in rate problems

Example: Radius increases at 0.2 m/s for 5 seconds

  • ❌ Wrong: (forgetting units)
  • ❌ Wrong: (wrong conversion)
  • βœ… Correct: m/s Γ— s = m

Prevention: Always track units throughout the calculation.


🚨 Pitfall 5: SSE Calculation Errors

Problem: Order of operations in Sum of Squared Errors

Common Error: instead of

Example: Actual = 10, Predicted = 8

  • ❌ Wrong:
  • βœ… Correct:

Prevention: Calculate the difference first, then square the result.


Quick Refresher Handbook

πŸ“‹ Essential Formulas (Week 2)

| Concept | Formula | When to Use | | ------------------------------ | ------------------------------------------------ | ----------------------------------- | ------------------ | ------------------------------------ | | Distance between points | | Finding distance between two points | | Slope | | Finding inclination of line | | Point-slope form | | When slope and one point known | | Point to line distance | | Shortest distance from point to line | | Section formula (internal) | | Point dividing segment internally | | Angle between lines | | Finding angle between two lines | | SSE | | Measuring fit quality |

🎯 Problem-Solving Strategy

  1. Read Carefully: Identify what’s given and what’s asked
  2. Choose Right Formula: Match the problem type to the correct formula
  3. Draw Diagram: Visual representation helps avoid errors
  4. Check Units: Ensure consistency throughout calculations
  5. Verify Answer: Plug back into original conditions

πŸ” Quick Check Techniques

For Line Equations:

  • Does the point satisfy the equation?
  • Is the slope correct for given points?

For Distance Problems:

  • Is the result positive?
  • Does it make sense in context?

For Parallel/Perpendicular:

  • Check the condition: or

πŸ’‘ Memory Tricks

  • SLOPE: β€œRise over Run” =
  • Parallel Lines: β€œSame family” = same slope
  • Perpendicular: β€œNegative reciprocal” = flip and change sign
  • Distance Formula: β€œABC over root AΒ²+B²” =

πŸ“ Consolidated Question Patterns

Pattern Summary with Solution Approaches

PatternKey ConceptSolution StrategyFrequency
Line IntersectionSystem of equationsSolve simultaneously or compare slopesHigh
Distance & RateDistance formula + ratesFind relationship, substitute timeMedium
ReflectionCoordinate transformationReflect point, use collinearityMedium
Geometric PropertiesSection formula, areaApply coordinate geometry theoremsHigh
Linear ModelsCost comparisonSet up equations, compareMedium
Shortest DistancePoint-to-line distanceUse formula directlyHigh
Data FittingSSE calculationCompute predicted values, sum squaresHigh

🎯 Practice Recommendations

  1. Master the Basics: Ensure you can quickly apply all formulas
  2. Pattern Recognition: Learn to identify question types quickly
  3. Time Management: Allocate time based on question frequency
  4. Verification: Always check your answers
  5. Real-world Applications: Practice converting word problems to mathematical form

This comprehensive guide covers all essential concepts, patterns, and strategies for Mathematics Week 2. Practice regularly with these approaches to build strong foundational skills in coordinate geometry and straight lines.