import React, { useRef, useState, useEffect } from "react"; import { ArrowDown, Check, BookOpen, Target, Grid } from "lucide-react"; import RationalExplorer from "../../../components/lessons/RationalExplorer"; import RadicalSolutionWidget from "../../../components/lessons/RadicalSolutionWidget"; import Quiz from "../../../components/lessons/Quiz"; import { ADV_RATIONAL_QUIZ } from "../../../utils/constants"; import { Frac } from "../../../components/Math"; interface LessonProps { onFinish?: () => void; } const RationalRadicalLesson: React.FC = ({ onFinish }) => { const [activeSection, setActiveSection] = useState(0); const sectionsRef = useRef<(HTMLElement | null)[]>([]); const scrollToSection = (index: number) => { setActiveSection(index); sectionsRef.current[index]?.scrollIntoView({ behavior: "smooth", block: "start", }); }; useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { const index = sectionsRef.current.indexOf( entry.target as HTMLElement, ); if (index !== -1) setActiveSection(index); } }); }, { rootMargin: "-20% 0px -60% 0px" }, ); sectionsRef.current.forEach((section) => { if (section) observer.observe(section); }); return () => observer.disconnect(); }, []); const SectionMarker = ({ index, title, icon: Icon, }: { index: number; title: string; icon: any; }) => { const isActive = activeSection === index; const isPast = activeSection > index; return ( ); }; return (
{/* Section 1: Rational Functions */}
{ sectionsRef.current[0] = el; }} className="min-h-screen flex flex-col justify-center mb-24 pt-20 lg:pt-0" >

Rational Functions & Discontinuities

A rational function is any function of the form f(x) = P(x) ÷ Q(x), where both P and Q are polynomials. Wherever Q(x) = 0, the function is undefined — creating a{" "} discontinuity. There are two types of discontinuities: holes and vertical asymptotes.

{/* Holes vs Vertical Asymptotes */}

Holes vs. Vertical Asymptotes

Key Step: Always Factor Both Numerator and Denominator First

Once factored, look at the denominator's zeros. If a zero also cancels with the numerator → hole. If it does not cancel → vertical asymptote.

Hole (Removable Discontinuity)

Occurs when a factor in the denominator{" "} also cancels with a factor in the numerator. The function is undefined at that x-value, but there's no asymptote.

f(x) =

After canceling: f(x) =

Hole at x = 2 (canceled factor)

V. asymptote at x = 1 (remains)

To find the y-coordinate of the hole: plug x = 2 into the simplified function: f(2) = (2 + 3) ÷ (2 − 1) = 5. Hole is at (2, 5).

Vertical Asymptote

Occurs when a denominator factor does{" "} NOT cancel. The function approaches ±∞ near that x-value. The graph has a vertical line it never crosses.

f(x) =

No factors cancel.

V. asymptotes at x = 3 and x = −2

The denominator has zeros at x = 3 and x = −2. Neither cancels with the numerator, so both are vertical asymptotes.

{/* Horizontal Asymptotes */}

Horizontal Asymptotes — End Behavior of Rational Functions

Compare the degree of the numerator (n) to the degree of the denominator (d):

Condition Horizontal Asymptote
n < d (numerator degree lower) y = 0
n = d (same degree) y ={" "}
n > d (numerator degree higher) No horizontal asymptote (oblique asymptote instead)

f(x) = : n = d = 2 → H.A. at y ={" "} ={" "} 3

{/* Section 2: Radical Equations */}
{ sectionsRef.current[1] = el; }} className="min-h-screen flex flex-col justify-center mb-24" >

Radical Equations & Extraneous Solutions

A radical equation has the variable under a square root (or other radical). The key strategy is to isolate the radical and then raise both sides to the appropriate power to eliminate it. This process can introduce{" "} extraneous solutions — values that satisfy the transformed equation but not the original. You{" "} must always check your answers in the original equation.

Solving Radical Equations: Step-by-Step

General Process

{[ { step: "1", text: "Isolate the radical on one side of the equation.", }, { step: "2", text: "Square both sides (for square roots) or cube both sides (for cube roots).", }, { step: "3", text: "Solve the resulting equation (may be linear or quadratic).", }, { step: "4", text: "CHECK all solutions in the ORIGINAL equation. Reject any that make the original false.", }, ].map((item) => (
{item.step}

{item.text}

))}

Example 1 — No Extraneous Solution

√(x + 3) = 5

Square both sides:

x + 3 = 25

x = 22

Check: √(22 + 3) = √25 = 5 ✓

x = 22 ✓ (valid)

Example 2 — Extraneous Solution Found!

√(2x + 1) = x − 1

Square both sides:

2x + 1 = x² − 2x + 1

0 = x² − 4x → x(x − 4) = 0

x = 0 or x = 4

Check x = 0: √1 = 0 − 1 → 1 ≠ −1 ✗

Check x = 4: √9 = 4 − 1 → 3 = 3 ✓

x = 0 is extraneous! Only x = 4.

{/* Why Extraneous Solutions Occur */}

Why Do Extraneous Solutions Appear?

Squaring both sides is not a reversible step — if you square a negative number, it becomes positive. For example, if the original equation has √x = A, then A must be non-negative (a square root can never give a negative output). But squaring produces solutions for both A and −A. Any solution that would require the radical to equal a negative number is extraneous.

{/* Rational Exponents */}

Rational Exponents: Connecting Radicals and Powers

xm/n = (n√x)m = n √(xm)

x1/2 = √x

Exponent ½ = square root

x1/3 = 3√x

Exponent ⅓ = cube root

x2/3 = (3√x)²

Numerator = power, denominator = root

Solve: x2/3 = 4

Raise both sides to power 3/2: x = 43/2 = (√4)³ = 2³ = 8

SAT Trap: The Domain of Radical Functions

For even roots (square root, fourth root, etc.), the expression under the radical must be ≥ 0. The SAT may test this by asking for the domain of f(x) = √(2x − 6). Set 2x − 6 ≥ 0 → x ≥ 3. The domain is x ≥ 3.

{/* Section 3: Quiz */}
{ sectionsRef.current[2] = el; }} className="min-h-screen flex flex-col justify-center" >

Practice Time

{ADV_RATIONAL_QUIZ.map((quiz, idx) => (
))}

Topic Mastered!

); }; export default RationalRadicalLesson;