The Architecture of a Circle
In Coordinate Geometry, a circle is simply a collection of points that are all exactly the same distance ($r$) away from a center point. We use Pythagoras' Theorem to define it algebraically.
Equation of a Circle
If the center is at the origin $(0,0)$, the equation is:
If the center is shifted to $(a, b)$, the equation becomes:
The Tangent Theorem
A tangent is a line that grazes the outer edge of a circle, touching it at exactly one point.
The Golden Rule:
A tangent is always perfectly perpendicular to the radius at the point of contact.
$m_{\text{radius}} \times m_{\text{tangent}} = -1$
Guided Proof: The Tangent Line
You are given the circle $x^2 + y^2 = 25$. A point exists on the edge of this circle at exactly P(3, 4). Find the linear equation of the tangent at this point.
Step 1: Gradient of the Radius
Calculate the gradient between the origin (0,0) and the point P(3,4).
Step 2: Gradient of the Tangent
Use the Golden Rule: $m_r \times m_t = -1$.
Step 3: Equation of the Line
Use $y - y_1 = m(x - x_1)$ with point P(3,4). Expand to find the y-intercept ($c$).
Parameters: The Discriminant
If you substitute a line equation into a circle equation, you get a quadratic. The Discriminant ($\Delta = b^2 - 4ac$) of this quadratic tells you exactly how the line interacts with the circle.
Circle: $x^2 + y^2 = 25$. Line: $y = x + 1$. Prove mathematically how many times they intersect.
Step 1: The Substitution Matrix
Substitute $y$: $x^2 + (x + 1)^2 = 25$. Expand it out to get the quadratic $2x^2 + 2x - 24 = 0$. What is the constant term $C$?
Step 2: Calculate the Discriminant
Calculate $\Delta = b^2 - 4ac$ using $a=2, b=2, c=-24$.
Step 3: The Conclusion
Since $\Delta = 196$ (which is $> 0$), how many intersections are there?
Circle: $x^2 + y^2 = 20$. Line: $y = 2x + c$. Find the positive value of $c$ that forces the line to be a perfect tangent.
Step 1: The Substitution Matrix
Substitute $y$: $x^2 + (2x + c)^2 = 20$. Expand it out to get the quadratic $5x^2 + 4cx + (c^2 - 20) = 0$. What is the $A$ term?
Step 2: Set the Discriminant
For a tangent, $b^2 - 4ac = 0$. Set this up: $(4c)^2 - 4(5)(c^2 - 20) = 0$. Expand to find $c^2$.
Step 3: Positive Tangent Parameter
Solve for $c$ (taking the positive root).
Circle: $x^2 + y^2 = 9$. Line: $y = x + 5$. Prove mathematically that they never cross.
Step 1: The Substitution Matrix
Substitute $y$: $x^2 + (x + 5)^2 = 9$. Expand it out to get the quadratic $2x^2 + 10x + 16 = 0$. What is the constant term $C$?
Step 2: Calculate the Discriminant
Calculate $\Delta = b^2 - 4ac$ using $a=2, b=10, c=16$.
Step 3: The Conclusion
Since $\Delta = -28$ (which is $< 0$), how many intersections are there?
Scholarship: Line of Sight Algorithm
The "Grazing" Hitscan
The Game Engine Setup
Game engines calculate "Line of Sight" around an Area of Effect (AoE) bubble using Coordinate Geometry. We need to aim lasers from an external coordinate (the player) to perfectly "graze" the edge of a shield.
The Mathematics
With an unknown gradient $m$, we substitute the generic line into the circle. By forcing the discriminant to exactly zero ($\Delta = 0$), we mathematically guarantee the laser just touches the shield bounds without passing through.
A circular shield is at $x^2 + y^2 = 20$. A ship is at coordinates E(0, 10). Calculate the gradients ($m$) required to fire lasers that graze (tangent) the shield perfectly.
Step 1: Set up the Generic Line
We know the line passes through (0, 10). What is its y-intercept $c$?
Step 2: The Substitution Matrix
Substitute $y = mx + 10$ into the circle to get $(1+m^2)x^2 + 20mx + 80 = 0$. Using $\Delta = 0$, you get $(20m)^2 - 4(1+m^2)(80) = 0$. Solve to find $m^2$.
Step 3: Fire the Lasers
There are two tangent lines. Enter the positive gradient to fire both lasers.