691 words
3 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# Mathematics I · Week 3 — Quadratic functions Parabolas link algebra (polynomial degree 2), graphs (vertex and symmetry), and root-finding. ## Week map Standard form $ax^2+bx+c$ → graph shape → factoring and roots → quadratic formula → vertex and axis → discriminant → parameter problems.

Mathematics I · Week 3 — Quadratic functions

Parabolas link algebra (polynomial degree 2), graphs (vertex and symmetry), and root-finding.

Week map

Standard form ax2+bx+cax^2+bx+c → graph shape → factoring and roots → quadratic formula → vertex and axis → discriminant → parameter problems.

Quadratic notation

  • f(x)=ax2+bx+cf(x) = ax^2 + bx + c → standard quadratic → a≠0a \neq 0 → f(x)=2x2−4x+1f(x) = 2x^2 - 4x + 1.
  • aa → leading coefficient → sign sets cup up (a>0a>0) or down (a<0a<0).
  • Root / zero → input where f(x)=0f(x)=0 → solve ax2+bx+c=0ax^2+bx+c=0.
  • h=−b2ah = -\frac{b}{2a} → xx-coordinate of vertex → axis of symmetry vertical line x=hx=h.
  • D=b2−4acD = b^2 - 4ac → discriminant → classifies real roots.

Vertex form

f(x)=a(x−h)2+kf(x) = a(x-h)^2 + k → vertex (h,k)(h,k) → graph shifts hh horizontal, kk vertical.
Mini-example: f(x)=3(x−2)2−5f(x) = 3(x-2)^2 - 5 has vertex (2,−5)(2,-5), opens upward (a=3>0a=3>0).

Roots and the discriminant

DDReal roots
D>0D > 0two distinct
D=0D = 0one repeated (touch axis)
D<0D < 0none (no horizontal crossing)
Quadratic formula: x=−b±D2ax = \frac{-b \pm \sqrt{D}}{2a} when solving ax2+bx+c=0ax^2+bx+c=0.
Mini-example: x2−5x+6=0x^2 - 5x + 6 = 0. Factor (x−2)(x−3)=0(x-2)(x-3)=0 → roots 2,32,3. Check D=25−24=1>0D = 25-24 = 1 > 0.

Factoring strategy (monic a=1a=1)

Find integers p,qp,q with pq=cpq = c and p+q=bp+q = b for x2+bx+cx^2+bx+c.
x2+x−12x^2 + x - 12: need product −12-12, sum 11 → 44 and −3-3 → (x+4)(x−3)(x+4)(x-3).
If no integer pair works, use formula or completing the square.

Completing the square sketch

x2+6x+1=(x2+6x+9)−9+1=(x+3)2−8x^2 + 6x + 1 = (x^2+6x+9) - 9 + 1 = (x+3)^2 - 8. Vertex (−3,−8)(-3,-8).

Graph features

  • Axis of symmetry: x=hx = h.
  • yy-intercept: f(0)=cf(0) = c.
  • Direction: min value at vertex if a>0a>0; max if a<0a<0.
  • Width: larger ∣a∣|a| → narrower parabola.

Pattern families

Easy — Factor and solve

  • Monic quadratics with integer roots.
  • Read vertex from (x−h)2+k(x-h)^2+k when given.
  • State yy-intercept from cc.

Medium — Vertex and transformation

  • Convert standard to vertex form by completing square or formula for h,kh,k.
  • Given roots, write quadratic in factored form a(x−r1)(x−r2)a(x-r_1)(x-r_2).
  • Use symmetry: roots equidistant from axis at hh.

Hard — Discriminant parameters

  • Find values of kk so x2+kx+9=0x^2 + kx + 9 = 0 has exactly one real root → D=0D=0.
  • Inequalities on DD for “no real roots” or “two real roots”.
  • Word constraints linking vertex height to domain (e.g. minimum cost).

Worked mini-examples

Example 1 — Factoring. 2x2−8x+6=02x^2 - 8x + 6 = 0. Divide 2: x2−4x+3=0x^2 - 4x + 3 = 0 → (x−1)(x−3)=0(x-1)(x-3)=0 → x=1,3x=1,3.
Example 2 — Vertex. f(x)=−x2+4x+1f(x) = -x^2 + 4x + 1. h=−4/(2⋅−1)=2h = -4/(2\cdot -1) = 2. f(2)=−4+8+1=5f(2) = -4+8+1 = 5. Vertex (2,5)(2,5), max (since a=−1a=-1).
Example 3 — Discriminant. 3x2−2x+k=03x^2 - 2x + k = 0 has no real roots when D=4−12k<0D = 4 - 12k < 0 → k>13k > \frac{1}{3}.
Example 4 — From roots. Roots −2-2 and 55: f(x)=a(x+2)(x−5)f(x) = a(x+2)(x-5). If a=1a=1, f(x)=x2−3x−10f(x) = x^2 - 3x - 10. c=−10c = -10 is yy-intercept.

Traps

  • Sign error in h=−b/(2a)h = -b/(2a) when bb negative.
  • Vertex (h,k)(h,k) confused with roots (zeros on xx-axis).
  • Forgetting aa when using formula: divide by 2a2a, not 2.
  • D=0D=0 means one repeated root, not “no roots”.
  • Opening direction from sign of aa, not cc.

Diagnostic (try yourself)

  1. Solve x2+7x+10=0x^2 + 7x + 10 = 0 by factoring.
  2. Find the vertex and axis of symmetry of f(x)=2x2−12x+5f(x) = 2x^2 - 12x + 5.
  3. For what values of mm does x2+mx+16=0x^2 + mx + 16 = 0 have exactly one real solution?
  4. A parabola has roots at x=1x = 1 and x=9x = 9 and passes through (0,18)(0, 18). Write f(x)f(x) in standard form.
  5. Without fully solving, how many real roots does 2x2+3x−7=02x^2 + 3x - 7 = 0 have? Use the discriminant.
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.