Mathematics for Data Science I - Week 2: Coordinate Geometry and Straight Lines
π Table of Contents
- Fundamental Concepts
- Question Pattern Analysis
- Detailed Solutions by Pattern
- Practice Exercises
- Visual Learning
- Common Pitfalls & Traps
- 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
| Form | Equation | When to Use | Key Features |
|---|---|---|---|
| Slope-Intercept | When slope and y-intercept are known | = slope, = y-intercept | |
| Point-Slope | When slope and one point are known | Most versatile form | |
| Two-Point | When two points are known | Direct application of slope formula | |
| General/Standard | For theoretical analysis | are constants | |
| Intercept Form | When intercepts are known | = x-intercept, = y-intercept |
3. Special Cases of Lines
| Line Type | Slope | Equation | Characteristics |
|---|---|---|---|
| Horizontal | Parallel to x-axis | ||
| Vertical | Undefined | Parallel to y-axis | |
| Line through origin | Passes 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 | Error | ErrorΒ² | |
|---|---|---|---|---|
| 0 | 98 | 98 | 0 | 0 |
| 1 | 90 | 90 | 0 | 0 |
| 2 | 82 | 82 | 0 | 0 |
| 3 | 74 | 74 | 0 | 0 |
| 4 | 66 | 66 | 0 | 0 |
| 5 | 57 | 58 | -1 | 1 |
| 6 | 49 | 50 | -1 | 1 |
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
| Concept | Formula |
|---|---|
| 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 Errors | SSE = |
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
- Read Carefully: Identify whatβs given and whatβs asked
- Choose Right Formula: Match the problem type to the correct formula
- Draw Diagram: Visual representation helps avoid errors
- Check Units: Ensure consistency throughout calculations
- 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
| Pattern | Key Concept | Solution Strategy | Frequency |
|---|---|---|---|
| Line Intersection | System of equations | Solve simultaneously or compare slopes | High |
| Distance & Rate | Distance formula + rates | Find relationship, substitute time | Medium |
| Reflection | Coordinate transformation | Reflect point, use collinearity | Medium |
| Geometric Properties | Section formula, area | Apply coordinate geometry theorems | High |
| Linear Models | Cost comparison | Set up equations, compare | Medium |
| Shortest Distance | Point-to-line distance | Use formula directly | High |
| Data Fitting | SSE calculation | Compute predicted values, sum squares | High |
π― Practice Recommendations
- Master the Basics: Ensure you can quickly apply all formulas
- Pattern Recognition: Learn to identify question types quickly
- Time Management: Allocate time based on question frequency
- Verification: Always check your answers
- 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.