The Toolkit

Every basic operation on Midterm 3, from zero: what it is, what it means, how to do it, one fully worked example. Tap “Show every step” for the full algebra.

Vectors

What it is

A vector is an arrow: a direction plus a length. In 3D we write it by its components v = ⟨v₁, v₂, v₃⟩ = “go v₁ in x, v₂ in y, v₃ in z”.

What it means

Adding = walk one arrow, then the other (tip to tail). Scaling by c = stretch the arrow by c (negative c flips it). Length = straight-line distance from tail to tip (Pythagoras).

How to compute

  1. Add: add matching components.
  2. Scale: multiply every component by c.
  3. Length: |v| = √(v₁² + v₂² + v₃²).
  4. Vector from point A to point B: B − A.

Worked example

a = ⟨1, 2, 3⟩, b = ⟨4, −5, 6⟩. a + b = ⟨5, −3, 9⟩, 2a = ⟨2, 4, 6⟩, |a| = √14.

Show every step
a + b = ⟨1+4, 2+(−5), 3+6⟩
      = ⟨5, −3, 9⟩
2a    = ⟨2·1, 2·2, 2·3⟩ = ⟨2, 4, 6⟩
|a|   = √(1² + 2² + 3²)
      = √(1 + 4 + 9)
      = √14 ≈ 3.742

Trap: |a + b| is NOT |a| + |b|. Add first, then take the length.

Dot product

What it is

Multiply matching components and add. The answer is a number, not a vector.

What it means

It measures how much two vectors point the same way: a·b = |a||b|cos θ. Positive = same-ish direction, negative = opposite-ish, 0 ⇔ perpendicular.

How to compute

  1. a·b = a₁b₁ + a₂b₂ + a₃b₃
  2. For the angle: cos θ = a·b / (|a||b|).

Worked example

a = ⟨1, 2, 3⟩, b = ⟨4, −5, 6⟩: a·b = 12, cos θ = 12/√1078 ≈ 0.365 (θ ≈ 68.6°).

Show every step
a·b = (1)(4) + (2)(−5) + (3)(6)
    = 4 − 10 + 18
    = 12
|a| = √(1+4+9)   = √14
|b| = √(16+25+36) = √77
cos θ = 12 / (√14·√77) = 12/√1078 ≈ 0.3655
θ ≈ 68.6°   (positive dot → angle under 90°)

Trap: (−5)·2 is −10; sign slips in one component wreck the whole answer.

Cross product

What it is

a × b is a vector perpendicular to both a and b (3D only).

What it means

Its direction is given by the right-hand rule; its length |a × b| = |a||b|sin θ = area of the parallelogram the two vectors span. That's exactly why it shows up in surface area (dS).

aba×barea = |a×b|

How to compute (3×3 determinant + cover-up)

        | i   j   k  |
a × b = | a₁  a₂  a₃ |
        | b₁  b₂  b₃ |

= i(a₂b₃ − a₃b₂) − j(a₁b₃ − a₃b₁) + k(a₁b₂ − a₂b₁)
  1. Cover the i column; the 2×2 left over gives the i part.
  2. Cover the j column; 2×2 gives the j part, and put a MINUS in front.
  3. Cover the k column; 2×2 gives the k part.
  4. Check: dot the answer with a and with b. Both must be 0.

Worked example

a = ⟨1, 2, 3⟩, b = ⟨4, 5, 6⟩ → a × b = ⟨−3, 6, −3⟩, parallelogram area = 3√6.

Show every step
        | i  j  k |
a × b = | 1  2  3 |
        | 4  5  6 |

i: cover i → |2 3; 5 6| = 2·6 − 3·5 = 12 − 15 = −3
j: cover j → |1 3; 4 6| = 1·6 − 3·4 = 6 − 12 = −6
   with the minus: −(−6) = +6
k: cover k → |1 2; 4 5| = 1·5 − 2·4 = 5 − 8 = −3

a × b = ⟨−3, 6, −3⟩

Check: ⟨−3,6,−3⟩·⟨1,2,3⟩ = −3 + 12 − 9 = 0 ✓
       ⟨−3,6,−3⟩·⟨4,5,6⟩ = −12 + 30 − 18 = 0 ✓
Area = √(9 + 36 + 9) = √54 = 3√6

Trap: forgetting the minus on j. Also b × a = −(a × b): order flips the sign.

2×2 determinant

What it is

A single number from a 2×2 grid: |a b; c d| = ad − bc.

What it means

If the columns are two arrows, |det| is the area of the parallelogram they span: the signed area scale factor of the map. Negative sign means orientation flipped (mirror image).

How to compute

  1. Multiply down-right diagonal (a·d).
  2. Multiply up-right diagonal (b·c).
  3. Subtract: ad − bc.

Worked example

|3 1; 2 4| = 10: the map stretches every area by 10.

Show every step
| 3  1 |
| 2  4 |   ad − bc = (3)(4) − (1)(2)
                    = 12 − 2
                    = 10

Trap: it's (main diagonal) − (other diagonal), not the reverse.

3×3 determinant

What it is

A number from a 3×3 grid, built from three 2×2 determinants. (The cross product is this with i, j, k in the top row.)

What it means

|det| = volume of the box (parallelepiped) spanned by the three rows. Volume scale factor.

How to compute (expand along top row)

  1. For each top entry, cover its row and column; take the 2×2 that remains.
  2. Signs alternate + − +.
  3. det = a·M₁ − b·M₂ + c·M₃.

Worked example

det [[1,2,3],[0,4,5],[1,0,6]] = 22.

Show every step
| 1  2  3 |
| 0  4  5 |
| 1  0  6 |

+1 · |4 5; 0 6| = 1·(4·6 − 5·0) = 1·24  =  24
−2 · |0 5; 1 6| = −2·(0·6 − 5·1) = −2·(−5) = +10
+3 · |0 4; 1 0| = 3·(0·0 − 4·1) = 3·(−4)  = −12

det = 24 + 10 − 12 = 22

Trap: the middle term gets a minus, and then a negative minor makes it plus.

Partial derivatives

What it is

∂f/∂x (also written f_x) = the ordinary derivative in x while you freeze every other variable as a constant number.

What it means

Slope of the surface when you walk only in the x direction.

How to compute

  1. Pick the variable you're differentiating in.
  2. Pretend every other letter is a number like 7.
  3. Use normal rules (power, chain, product).

Worked examples

f = u·v            f_u = v              f_v = u
f = u²v            f_u = 2uv            f_v = u²
f = √(1+u²+v²)     f_u = u/√(1+u²+v²)   f_v = v/√(1+u²+v²)
f = x²y + sin(xy)  f_x = 2xy + y cos(xy)
                   f_y = x² + x cos(xy)
Show every step
u²v, in u: v is a constant c → d/du (c·u²) = 2cu
f_u = 2u·v = 2uv
u²v, in v: u² is a constant → d/dv (u²·v) = u²
f_v = u²

√(1+u²+v²) = (1+u²+v²)^(1/2), chain rule in u:
f_u = ½(1+u²+v²)^(−1/2) · ∂/∂u(1+u²+v²)
    = ½(1+u²+v²)^(−1/2) · 2u
    = u / √(1+u²+v²)

sin(xy) in x: chain rule, inside = xy, ∂/∂x(xy) = y
∂/∂x sin(xy) = cos(xy)·y

Trap: the frozen variable's chain factor: ∂/∂x sin(xy) = y cos(xy), not cos(xy).

Jacobian (change of variables)

What it is

When you substitute x = x(u,v), y = y(u,v), the Jacobian J is the determinant of the matrix of partials:

J = | x_u  x_v |  = x_u·y_v − x_v·y_u
    | y_u  y_v |

dA = dx dy = |J| du dv

What it means

A tiny du × dv square in the uv-plane gets stretched into a tiny parallelogram in the xy-plane. |J| is how many times bigger its area is. So you must multiply by |J| to count area correctly. Take the absolute value: area is never negative.

How to compute

  1. Write x and y in terms of u, v.
  2. Take the four partials.
  3. 2×2 determinant (ad − bc).
  4. Absolute value; replace dA by |J| du dv.

Worked example (linear)

x = 2u + v, y = u − 3v → J = −7, dA = 7 du dv.

Show every step
x_u = 2   x_v = 1
y_u = 1   y_v = −3

J = | 2   1 |
    | 1  −3 | = (2)(−3) − (1)(1) = −6 − 1 = −7
|J| = 7  →  dA = 7 du dv

Worked example (nonlinear: polar)

x = u cos v, y = u sin v → J = u. This is why polar has dA = r dr dθ.

Show every step
x_u = cos v       x_v = −u sin v
y_u = sin v       y_v =  u cos v

J = (cos v)(u cos v) − (−u sin v)(sin v)
  = u cos²v + u sin²v
  = u (cos²v + sin²v)
  = u · 1 = u

Trap: if the problem gives u, v in terms of x, y, then J(x,y→u,v) = 1 / J(u,v→x,y). Don't forget the absolute value.

Linear map: square → parallelogram

What it is

A formula T(u,v) that sends the unit square 0≤u≤1, 0≤v≤1 onto a given parallelogram: T(u,v) = P + u·a + v·b.

What it means

P = a corner (where u = v = 0 lands). a, b = the two edge arrows out of P. u slides you along a, v along b.

P=T(0,0)T(1,0)=P+aT(0,1)=P+bT(1,1)=P+a+b

How to compute

  1. Pick a corner P.
  2. Find its two neighbor corners Q, R (the ones joined to P by an edge, NOT the opposite corner).
  3. a = Q − P, b = R − P.
  4. Write T component-wise. Check all 4 corners, including T(1,1) = P + a + b = the opposite corner.
  5. |J| = |det[a b]| (a, b as columns) = parallelogram area.

Worked example

Parallelogram with corners (1,0), (4,1), (2,3), (5,4). T(u,v) = (1 + 3u + v, u + 3v), |J| = 8.

Show every step
P = (1,0); neighbors Q = (4,1), R = (2,3)
a = Q − P = (4−1, 1−0) = (3, 1)
b = R − P = (2−1, 3−0) = (1, 3)

T(u,v) = P + u·a + v·b
       = (1, 0) + (3u, u) + (v, 3v)
x = 1 + 3u + v
y = 0 + u + 3v

Corner check:
T(0,0) = (1, 0)                    = P ✓
T(1,0) = (1+3, 0+1)       = (4, 1) = Q ✓
T(0,1) = (1+1, 0+3)       = (2, 3) = R ✓
T(1,1) = (1+3+1, 0+1+3)   = (5, 4) = opposite ✓

J = | 3  1 |
    | 1  3 | = 9 − 1 = 8  → area 8, dA = 8 du dv

Trap: using the opposite corner as a neighbor. Opposite corner = P + a + b; if T(1,1) doesn't hit it, you picked wrong.

Polar coordinates

What it is

Describe a point by distance r from the origin and angle θ from the +x axis: x = r cos θ, y = r sin θ, x² + y² = r².

What it means

A tiny polar box is about dr thick and r·dθ wide (arc length), so dA = r dr dθ. The r is the Jacobian: boxes farther out are bigger.

Common curves

PolarPicture
r = acircle radius a, center origin
r = cos θcircle through origin, center (½, 0), radius ½; θ from −π/2 to π/2
r = 2a sin θcircle through origin, center (0, a); θ from 0 to π
θ = cray from origin at angle c

How to compute

  1. Replace x²+y² by r², x by r cos θ, y by r sin θ.
  2. Replace dA by r dr dθ.
  3. Read r bounds (inner curve to outer curve) and θ bounds (sweep).

Worked example

∬ (x² + y²) dA over the disk of radius 2 = 8π.

Show every step
∬ (x²+y²) dA = ∫₀^2π ∫₀² r² · r dr dθ
             = ∫₀^2π ∫₀² r³ dr dθ
inner: ∫₀² r³ dr = [r⁴/4]₀² = 16/4 − 0 = 4
outer: ∫₀^2π 4 dθ = 4·2π = 8π

Why r = cos θ is a circle:
r = cos θ → r² = r cos θ → x² + y² = x
x² − x + ¼ + y² = ¼ → (x − ½)² + y² = ¼

Trap: forgetting the extra r in dA.

Cylindrical coordinates

What it is

Polar in the xy-plane plus plain z: x = r cos θ, y = r sin θ, z = z; dV = r dz dr dθ.

What it means

Good for anything round around the z-axis: cylinders, paraboloids, cones. Think “a floor and a ceiling over a polar region”.

How to compute

  1. Floor = the lower surface z = bottom(r,θ); ceiling = upper surface z = top(r,θ). These are the z bounds.
  2. Shadow on the xy-plane (where floor meets ceiling, or given) = r, θ bounds.
  3. Integrate z first, then r, then θ. Keep the r.

Worked example

Volume under z = 4 − x² − y², above z = 0: 8π.

Show every step
ceiling: z = 4 − r²    floor: z = 0
meet: 4 − r² = 0 → r = 2   → 0 ≤ r ≤ 2, 0 ≤ θ ≤ 2π

V = ∫₀^2π ∫₀² ∫₀^(4−r²) r dz dr dθ
z:  ∫₀^(4−r²) r dz = r·(4 − r²) = 4r − r³
r:  ∫₀² (4r − r³) dr = [2r² − r⁴/4]₀² = 8 − 4 = 4
θ:  ∫₀^2π 4 dθ = 8π

Trap: dV = r dz dr dθ, not dz dr dθ.

Spherical coordinates

What it is

ρ = distance from origin, φ = angle down from the +z axis (0 to π), θ = same as polar.

x = ρ sinφ cosθ    y = ρ sinφ sinθ    z = ρ cosφ
x² + y² + z² = ρ²         x² + y² = ρ² sin²φ
dV = ρ² sinφ dρ dφ dθ
zyxρφθ

Common surfaces

SurfaceSpherical
sphere x²+y²+z² = a²ρ = a
cone z = √(x²+y²)φ = π/4
xy-plane z = 0φ = π/2
upper half0 ≤ φ ≤ π/2

How to compute

  1. Convert integrand and surfaces with the formulas above.
  2. Replace dV by ρ² sinφ dρ dφ dθ.
  3. Integrate ρ, then φ, then θ (usually each separates).

Worked example

Volume inside ρ = 2 and above the cone φ = π/4: (8π/3)(2 − √2).

Show every step
V = ∫₀^2π ∫₀^(π/4) ∫₀² ρ² sinφ dρ dφ dθ
ρ:  ∫₀² ρ² dρ = [ρ³/3]₀² = 8/3
φ:  ∫₀^(π/4) sinφ dφ = [−cosφ]₀^(π/4) = −√2/2 + 1 = 1 − √2/2
θ:  ∫₀^2π dθ = 2π
V = 2π · (1 − √2/2) · 8/3
  = (16π/3)(1 − √2/2)
  = (8π/3)(2 − √2) ≈ 4.91

Why the cone is φ = π/4:
z = √(x²+y²) → ρ cosφ = ρ sinφ → tanφ = 1 → φ = π/4

Trap: φ is measured from the +z axis (not the xy-plane), and dV needs ρ² sinφ.

Iterated integrals

What it is

An integral of an integral. ∫ₐᵇ ∫_c^d f dy dx means: do the dy integral first, then dx.

What it means

The integral signs and the d's nest like parentheses: the innermost ∫ pairs with the first d. The inner bounds may depend on outer variables; the outermost bounds must be numbers.

∫₀¹ ( ∫₀^x (x+y) dy ) dx
 └── outer x ──┘  └── inner y ──┘

How to compute

  1. Match each ∫ with its d, inside-out.
  2. Do the innermost integral, treating all outer variables as constants.
  3. Plug in its bounds (they may contain outer variables).
  4. Repeat outward.

Worked example

∫₀¹ ∫₀^x (x + y) dy dx = 1/2.

Show every step
inner (x is a constant):
∫₀^x (x + y) dy = [xy + y²/2] from y=0 to y=x
                = (x·x + x²/2) − (0 + 0)
                = x² + x²/2
                = 3x²/2
outer:
∫₀¹ 3x²/2 dx = [x³/2]₀¹ = 1/2 − 0 = 1/2

Trap: plugging bounds into the wrong variable. The inner bounds go into y, not x.

Reversing the order

What it is

Rewrite ∫∫ … dx dy as ∫∫ … dy dx (same region, described the other way). Used when the inner integral is impossible, like ∫ e^(x²) dx.

What it means

Same region, sliced the other direction: vertical strips vs horizontal strips.

How to compute

  1. Read the bounds as inequalities and sketch the region.
  2. Find the overall range of the new outer variable (numbers).
  3. For a fixed value of it, read the new inner variable from the lower curve to the upper curve.

Worked example

∫₀¹ ∫_y¹ e^(x²) dx dy = (e − 1)/2.

y = xx=1
Show every step
Old: 0 ≤ y ≤ 1,  y ≤ x ≤ 1   → triangle (0,0),(1,0),(1,1)
New: 0 ≤ x ≤ 1,  0 ≤ y ≤ x

∫₀¹ ∫₀^x e^(x²) dy dx
inner: ∫₀^x e^(x²) dy = e^(x²)·[y]₀^x = x e^(x²)
outer: ∫₀¹ x e^(x²) dx     w = x², dw = 2x dx
     = ½ ∫₀¹ e^w dw = ½(e − 1)

Trap: just swapping the bounds. Always re-derive them from a sketch.

Parametrizing surfaces

What it is

A formula r(u,v) = ⟨x, y, z⟩ that draws the surface as u and v range over a flat region. u and v are “map coordinates” on the surface, like latitude/longitude.

Standard ones

Surfacer(u,v)|r_u × r_v|
graph z = g(x,y)⟨u, v, g(u,v)⟩√(1+g_u²+g_v²)
plane P + u·a + v·bP + u a + v b|a × b|
cylinder x²+y² = a²⟨a cos u, a sin u, v⟩a
sphere ρ = a⟨a sin u cos v, a sin u sin v, a cos u⟩ (u=φ, v=θ)a² sin u
cone z = √(x²+y²)⟨u cos v, u sin v, u⟩√2 u
revolve y = f(x) about x-axis⟨u, f(u) cos v, f(u) sin v⟩|f(u)|√(1+f′(u)²)

How to compute

  1. Recognize the shape.
  2. Pick the matching template.
  3. Find the u, v ranges from the given bounds (e.g. z between 0 and 3 → v from 0 to 3).

Worked example

Part of the cylinder x² + y² = 9 with 0 ≤ z ≤ 5: r(u,v) = ⟨3 cos u, 3 sin u, v⟩, 0 ≤ u ≤ 2π, 0 ≤ v ≤ 5.

Show every step
Check: x² + y² = 9cos²u + 9sin²u = 9 ✓
r_u = ⟨−3 sin u, 3 cos u, 0⟩
r_v = ⟨0, 0, 1⟩
r_u × r_v = i(3cos u·1 − 0) − j(−3 sin u·1 − 0) + k(0)
          = ⟨3 cos u, 3 sin u, 0⟩
|r_u × r_v| = √(9cos²u + 9sin²u) = 3
Area = ∫₀^2π ∫₀⁵ 3 dv du = 3·5·2π = 30π  (= 2π·3·5 ✓)

Trap: on the sphere, u = φ runs 0..π (not 2π).

r_u, r_v and dS

What it is

r_u = ∂r/∂u and r_v = ∂r/∂v are the two tangent arrows on the surface. Their cross product's length is the area-stretch factor: dS = |r_u × r_v| du dv.

What it means

A tiny du × dv square becomes a tiny parallelogram on the surface with sides r_u du and r_v dv; its area is |r_u × r_v| du dv (cross product = parallelogram area).

How to compute

  1. Parametrize r(u,v).
  2. Differentiate each component in u → r_u; in v → r_v.
  3. Cross product (watch the minus on j).
  4. Length.
  5. Surface area = ∬ |r_u × r_v| du dv; ∬ f dS = ∬ f(r(u,v)) |r_u × r_v| du dv.

Worked example

Surface area of z = x² + y² over the unit disk: |r_u × r_v| = √(1+4u²+4v²), Area = (π/6)(5√5 − 1) ≈ 5.33.

Show every step
r(u,v) = ⟨u, v, u² + v²⟩
r_u = ⟨1, 0, 2u⟩
r_v = ⟨0, 1, 2v⟩

            | i  j  k  |
r_u × r_v = | 1  0  2u |
            | 0  1  2v |
i: 0·2v − 2u·1 = −2u
j: −(1·2v − 2u·0) = −2v
k: 1·1 − 0·0 = 1
r_u × r_v = ⟨−2u, −2v, 1⟩
|r_u × r_v| = √(4u² + 4v² + 1)

Area = ∬_disk √(1 + 4u² + 4v²) du dv   → polar, u²+v² = r²
     = ∫₀^2π ∫₀¹ √(1+4r²) · r dr dθ
inner (see u-sub): (1/12)(1+4r²)^(3/2) |₀¹ = (5√5 − 1)/12
outer: 2π · (5√5 − 1)/12 = (π/6)(5√5 − 1)

Sign/symmetry trick: if the surface is symmetric under x → −x and the integrand is odd in x (like x, xy, x³), then ∬ f dS = 0 with no work. Same for y, z.

Trap: dS needs the length |r_u × r_v|, not the vector; and in polar you still need the extra r.

Green's theorem

What it is

∮_C P dx + Q dy = ∬_D (Q_x − P_y) dA

A line integral around a closed curve C equals a double integral over the region D inside.

What it means

Q_x − P_y measures the little bit of “swirl” at each point; adding all the swirl inside equals the total circulation around the edge. Lets you trade a messy line integral for an easy area integral.

How to compute

  1. Identify P (the dx part) and Q (the dy part).
  2. Compute Q_x − P_y.
  3. Check orientation: counterclockwise = positive (region on your left). Clockwise → flip the sign.
  4. Integrate over D. If Q_x − P_y = k (constant), answer = k · area(D).

Worked example 1 (k · area)

∮ −y dx + x dy, circle radius 3, counterclockwise = 18π.

Show every step
P = −y → P_y = −1
Q =  x → Q_x =  1
Q_x − P_y = 1 − (−1) = 2   (constant)
∬ 2 dA = 2 · area = 2 · π·3² = 18π
(clockwise would be −18π)

Worked example 2

∮ xy dx + x² dy around the unit square [0,1]², counterclockwise = 1/2.

Show every step
P = xy → P_y = x
Q = x² → Q_x = 2x
Q_x − P_y = 2x − x = x
∫₀¹ ∫₀¹ x dx dy = ∫₀¹ [x²/2]₀¹ dy = ∫₀¹ ½ dy = 1/2

Trap: it's Q_x − P_y (Q first, x-derivative), and the curve must be closed.

The trig integrals that keep showing up

What it is

Polar/spherical problems constantly produce these. Memorize them.

sin²θ = (1 − cos2θ)/2      cos²θ = (1 + cos2θ)/2
∫ sin²θ dθ = θ/2 − sin2θ/4 + C
∫ cos²θ dθ = θ/2 + sin2θ/4 + C
∫₀^2π sin²θ dθ = ∫₀^2π cos²θ dθ = π
∫₀^π  sin²θ dθ = ∫₀^π  cos²θ dθ = π/2
∫ sinθ cosθ dθ = sin²θ/2 + C   (over 0..2π: 0)
∫₀^π sinφ dφ = [−cosφ]₀^π = 1 + 1 = 2
∫₀^2π sinθ dθ = ∫₀^2π cosθ dθ = 0

How to compute

  1. Square of sin/cos → half-angle identity.
  2. sin·cos → u = sinθ.
  3. Odd function over a symmetric interval [−a, a] → 0 immediately.

Worked example

∫₀^2π cos²θ dθ = π.

Show every step
∫₀^2π (1 + cos2θ)/2 dθ
= [θ/2 + sin2θ/4]₀^2π
= (π + sin4π/4) − (0 + 0)
= π + 0 = π

Trap: ∫₀^π sinφ dφ is 2, not 0 (sin is positive on 0..π).

u-substitution refresher

What it is

Rename an inside chunk w = g(x) so the integral becomes simple. Works when g′(x) is sitting outside (up to a constant).

How to compute

  1. Pick w = the inside of the ugly part.
  2. dw = g′(x) dx; solve for the piece you have.
  3. Rewrite everything in w (and change bounds, or switch back at the end).

Worked example

∫₀¹ r√(1 + 4r²) dr = (5√5 − 1)/12 ≈ 0.85.

Show every step
w = 1 + 4r²   dw = 8r dr  → r dr = dw/8
bounds: r=0 → w=1,  r=1 → w=5
∫₁⁵ √w · dw/8 = (1/8) ∫₁⁵ w^(1/2) dw
             = (1/8) · (2/3) [w^(3/2)]₁⁵
             = (1/12)(5^(3/2) − 1)
             = (5√5 − 1)/12

Trap: forgetting the 1/8 (from dw = 8r dr) or forgetting to change the bounds.

Area formulas (for “k × area”)

What it is

When the integrand is a constant k (Green with constant Q_x − P_y, a constant Jacobian, ∬ 1 dA), the answer is just k × area. No integrating needed.

ShapeArea
rectanglewidth · height
triangle½ · base · height
triangle from vectors a,b½ |det[a b]|
circle/disk radius RπR²
sector angle α (radians)½ R² α
annulus r₁ ≤ r ≤ r₂π(r₂² − r₁²)
parallelogram, edges a, b|det[a b]| = |a₁b₂ − a₂b₁|
trapezoid½ (b₁ + b₂) · h
ellipse semi-axes a, bπab

Worked example

∬_D 3 dA where D is the parallelogram from #linmap (edges (3,1), (1,3)) = 24.

Show every step
area = |3·3 − 1·1| = |9 − 1| = 8
∬ 3 dA = 3 · 8 = 24

Trap: a half-disk or quarter-disk is ½πR² or ¼πR², not πR².

Every worked example checked with sympy. Good luck tonight.