Parabola–Line Intersections and Chord
Parabola–Line Intersections and Chord
Find the intersections of a parabola and a line, distinguish tangency from other single intersections and calculate the chord length when two points exist.
- 330 bytes
- COMP mode
Worked examples
Example 1
Original practice. Find the intersections, determine tangency and, for two points, calculate the chord length. y=x²−2x−2; y=x+2.
Answer
Standard solution (without a calculator)
- x²−2x−2=x+2 ⇒ (x−4)(x+1)=0
- P=(−1,1); Q=(4,6)
- PQ=√[(4+1)²+(6−1)²]=5√2
- Expand or substitute to verify each equality above.
Example 2
Original practice. Find the intersections, determine tangency and, for two points, calculate the chord length. y=x²−2x+3; y=2x−1.
Answer
Standard solution (without a calculator)
- x²−2x+3=2x−1 ⇒ (x−2)²=0
- P=(2,3); Δ=0
- a=1≠0; v=1≠0 ⇒ tangent
- Expand or substitute to verify each equality above.
Example 3
Original practice. Find the intersections, determine tangency and, for two points, calculate the chord length. y=2x²−3x+4; x=3.
Answer
Standard solution (without a calculator)
- x=3 ⇒ y=2×3²−3×3+4=13
- P=(3,13)
- v=0 ⇒ x=3; dy/dx=4x−3=9 ⇒ not tangent
- Expand or substitute to verify each equality above.
When to use it
Find the intersections of a parabola and a line, distinguish tangency from other single intersections and calculate the chord length when two points exist.
Input order
- a,b,c,u,v,w
- A=a; B=b→bv+u; C=c→cv+w; D=u; X=v; Y=w; M=Δ→x₁
- Enter every value afresh; blank EXE retains old memory and is not zero. All working variables and Ans may be overwritten.
Output order
- N=2:x₁,y₁,x₂,y₂,d; N=1:T,x,y; 0 / −1
- Enter six coefficients directly, including zeros; the line is ux+vy+w=0. First output is intersection count 0,1,2 or −1 (infinitely many). For count 1 the next output is tangent flag 1 or 0, then x,y. For count 2 read x₁,y₁,x₂,y₂,distance, ordered by x. Vertical lines and the degenerate a=0 case are supported; a unique intersection is not automatically tangency. Very small discriminants obtained by subtracting large quantities may be misclassified: use exact algebra near tangency. Coordinates are decimal approximations, not symbolic proofs.
Conditions and limits
- Use COMP and Norm 1; the images use Deg, which does not change this algebra.
- y=ax²+bx+c; ux+vy+w=0; Δ=(bv+u)²−4av(cv+w)
- Enter six coefficients directly, including zeros; the line is ux+vy+w=0. First output is intersection count 0,1,2 or −1 (infinitely many). For count 1 the next output is tangent flag 1 or 0, then x,y. For count 2 read x₁,y₁,x₂,y₂,distance, ordered by x. Vertical lines and the degenerate a=0 case are supported; a unique intersection is not automatically tangency. Very small discriminants obtained by subtracting large quantities may be misclassified: use exact algebra near tangency. Coordinates are decimal approximations, not symbolic proofs.
- Use the original equation to check signs, excluded values and endpoint inclusion. Decimal screens are numerical approximations; preserve exact fractions or radicals in written answers.
Checking access…