Ran Wei/ Calculus/Module 16
中文
Calculus · Part V · Several variables

Module 16Curves and vectors

Describe curves by a moving point and by polar coordinates, and find their slopes, lengths and areas. Then learn the language of calculus in several variables, vectors in the plane and in space, and use it to describe lines, planes and motion along a path.

⏱ 270 minYou need: Modules 1 to 15, especially the chain rule (Module 5), derivatives of inverse functions (Module 6), the closed interval method (Module 8), substitution (Module 10) and arc length (Module 12)

In this module you will

  • Describe curves by parametric equations and in polar coordinates, and convert between descriptions
  • Find the tangent lines and arc lengths of parametric curves, and the slopes and areas of polar curves
  • Compute with vectors in the plane and in space, including lengths, angles, projections and the dot and cross products
  • Write equations of lines and planes in space, and find the distance from a point to a plane
  • Differentiate and integrate vector functions to find velocity, acceleration and the length of a space curve
  • Model projectile motion, and find the launch angle that gives the greatest range
1

Parametric curves

So far the curves in this series have mostly been graphs of functions, y=f(x).y = f(x)\mathclose{\text{.}} Many curves are not: a circle fails the vertical line test of Section 1.3, and so do the orbit of a satellite and the track of a point on a rolling wheel. An equation such as the circle’s x2+y2=25x^2 + y^2 = 25 (Section 6.4) says where such a curve goes, but not how a point travels along it. This module describes a curve the way physics describes motion: by the position of a moving point at each time t.t\mathclose{\text{.}}

Suppose a point moves so that at time tt it is at x=t2,x = t^2\mathclose{\text{,}} y=t3−3t.y = t^3 - 3t\mathclose{\text{.}} Its positions at a few times:

ttx=t2x = t^2y=t3−3ty = t^3 - 3t
−2-244−2-2
−1.5-1.52.252.251.1251.125
−1-11122
−0.5-0.50.250.251.3751.375
000000
0.50.50.250.25−1.375-1.375
1111−2-2
1.51.52.252.25−1.125-1.125
224422

Plot the points in order of tt and join them (Figure 16.1, left). The point comes in from the lower right, at (4,−2)(4, -2) when t=−2,t = -2\mathclose{\text{,}} and climbs to (1,2)(1, 2) at t=−1.t = -1\mathclose{\text{.}} There it turns, sweeps down through the origin at t=0t = 0 to (1,−2)(1, -2) at t=1,t = 1\mathclose{\text{,}} turns again and heads up to (4,2).(4, 2)\mathclose{\text{.}} On the way it passes through (3,0)(3, 0) twice, at t=−3t = -\sqrt3 and at t=3,t = \sqrt3\mathclose{\text{,}} since then x=3x = 3 and y=t(t2−3)=0.y = t(t^2 - 3) = 0\mathclose{\text{.}} The curve is not the graph of a function of x:x\mathclose{\text{:}} the vertical line x=1x = 1 meets it at (1,2)(1, 2) and at (1,−2).(1, -2)\mathclose{\text{.}}

Left: the curve x = t^2, y = t^3 - 3t for -2 le t le 2, with the points of the table at whole-number t; arrows show the direction of increasing t. It crosses itself at (3, 0), where it has two tangent lines (dashed; Example 16.3). Right: the graphs of x(t) = t^2 and y(t) = t^3 - 3t against t, the two functions that the curve is built from.
Figure 16.1

Left: the curve x=t2,x = t^2\mathclose{\text{,}} y=t3−3ty = t^3 - 3t for −2≤t≤2,-2 \le t \le 2\mathclose{\text{,}} with the points of the table at whole-number t;t\mathclose{\text{;}} arrows show the direction of increasing t.t\mathclose{\text{.}} It crosses itself at (3,0),(3, 0)\mathclose{\text{,}} where it has two tangent lines (dashed; Example 16.3). Right: the graphs of x(t)=t2x(t) = t^2 and y(t)=t3−3ty(t) = t^3 - 3t against t,t\mathclose{\text{,}} the two functions that the curve is built from.

Definition 16.1Parametric curve

Let ff and gg be continuous functions on an interval I.I\mathclose{\text{.}} As tt runs through I,I\mathclose{\text{,}} the point (f(t),g(t))\big(f(t), g(t)\big) traces a parametric curve, given by the parametric equations

x=f(t),y=g(t).x = f(t), \qquad y = g(t).

The variable tt is the parameter. If I=[a,b],I = [a, b]\mathclose{\text{,}} the curve starts at its initial point (f(a),g(a))\big(f(a), g(a)\big) and ends at its terminal point (f(b),g(b)).\big(f(b), g(b)\big)\mathclose{\text{.}}

The parameter is often time, but it need not be: in Section 16.3 it is an angle. Equations x=f(t),x = f(t)\mathclose{\text{,}} y=g(t)y = g(t) that trace a given curve are a parametrisation of it, and the direction in which the point moves as tt increases is the curve’s orientation, shown in figures by arrows.

Example 16.1Circles and ellipses✓ Checked

Describe the curves traced for 0≤t≤2π0 \le t \le 2\pi by (a) x=cos⁡t,x = \cos t\mathclose{\text{,}} y=sin⁡t;y = \sin t\mathclose{\text{;}} (b) x=3cos⁡t,x = 3\cos t\mathclose{\text{,}} y=2sin⁡t;y = 2\sin t\mathclose{\text{;}} (c) x=cos⁡2t,x = \cos 2t\mathclose{\text{,}} y=sin⁡2t;y = \sin 2t\mathclose{\text{;}} (d) x=sin⁡t,x = \sin t\mathclose{\text{,}} y=cos⁡t.y = \cos t\mathclose{\text{.}}

(a) By the definition of sine and cosine in Section 1.4, (cos⁡t,sin⁡t)(\cos t, \sin t) is the point of the unit circle at angle t.t\mathclose{\text{.}} So as tt runs from 0 to 2π2\pi the point goes once round the unit circle, anticlockwise, from (1,0)(1, 0) back to (1,0).(1, 0)\mathclose{\text{.}} Every point satisfies x2+y2=cos⁡2t+sin⁡2t=1.x^2 + y^2 = \cos^2 t + \sin^2 t = 1\mathclose{\text{.}}

(b) Here x/3=cos⁡tx/3 = \cos t and y/2=sin⁡t,y/2 = \sin t\mathclose{\text{,}} so

x29+y24=cos⁡2t+sin⁡2t=1.\frac{x^2}{9} + \frac{y^2}{4} = \cos^2 t + \sin^2 t = 1.

This is an ellipse: the unit circle stretched horizontally by the factor 3 and vertically by the factor 2 (Section 1.5). It crosses the xx-axis at ±3\pm3 and the yy-axis at ±2,\pm2\mathclose{\text{,}} and the point goes round it once anticlockwise from (3,0).(3, 0)\mathclose{\text{.}} In general, for a,b>0,a, b > 0\mathclose{\text{,}} x=acos⁡t,x = a\cos t\mathclose{\text{,}} y=bsin⁡ty = b\sin t traces the ellipse x2a2+y2b2=1;\dfrac{x^2}{a^2} + \dfrac{y^2}{b^2} = 1\mathclose{\text{;}} with a=b=ra = b = r it is the circle of radius rr centred at the origin.

(c) Again x2+y2=1,x^2 + y^2 = 1\mathclose{\text{,}} but the point is at angle 2t:2t\mathclose{\text{:}} it goes round the unit circle twice as fast, and twice as tt runs from 0 to 2π.2\pi\mathclose{\text{.}}

(d) Again x2+y2=sin⁡2t+cos⁡2t=1.x^2 + y^2 = \sin^2 t + \cos^2 t = 1\mathclose{\text{.}} The point starts at (0,1)(0, 1) when t=0t = 0 and is at (1,0)(1, 0) when t=π/2:t = \pi/2\mathclose{\text{:}} it goes once round the circle clockwise, starting at the top.

So one curve has many parametrisations, which differ in where they start, how fast they go and in which direction.

Watch out

Do not confuse the curve with the graphs of x(t)x(t) and y(t)y(t) (Figure 16.1, right). Those graphs have tt on the horizontal axis; the curve lives in the xyxy-plane, where tt is not a coordinate but a label on its points.

Eliminating the parameter

To recognise a parametric curve, look for an equation in xx and yy alone that its points satisfy. That is eliminating the parameter: solve one equation for tt and substitute into the other, or combine the two so that tt disappears, as cos⁡2t+sin⁡2t=1\cos^2 t + \sin^2 t = 1 did in Example 16.1.

Example 16.2Eliminating the parameter✓ Checked

Eliminate the parameter, and describe each curve, for all real t:t\mathclose{\text{:}} (a) x=1+2t,x = 1 + 2t\mathclose{\text{,}} y=3−t;y = 3 - t\mathclose{\text{;}} (b) x=t2,x = t^2\mathclose{\text{,}} y=t3−3t;y = t^3 - 3t\mathclose{\text{;}} (c) x=et,x = e^t\mathclose{\text{,}} y=e2t.y = e^{2t}\mathclose{\text{.}}

(a) Solve the first equation for t:t\mathclose{\text{:}} t=(x−1)/2.t = (x - 1)/2\mathclose{\text{.}} Substitute into the second:

y=3−x−12=7−x2.y = 3 - \frac{x - 1}{2} = \frac{7 - x}{2}.

The curve is the line of slope −12-\tfrac12 through (1,3),(1, 3)\mathclose{\text{,}} the point at t=0.t = 0\mathclose{\text{.}} As tt runs through R,\R\mathclose{\text{,}} so does x=1+2t,x = 1 + 2t\mathclose{\text{,}} so the whole line is traced, from left to right.

(b) Solving x=t2x = t^2 for tt gives two answers, t=±x.t = \pm\sqrt{x}\mathclose{\text{.}} Instead, square y:y\mathclose{\text{:}}

y2=t2(t2−3)2=x(x−3)2.y^2 = t^2\big(t^2 - 3\big)^2 = x(x - 3)^2.

Conversely, every point with y2=x(x−3)2y^2 = x(x - 3)^2 is on the curve: such a point has x≥0x \ge 0 (for x<0x < 0 the right side is negative), and its two possible values y=±x (x−3)y = \pm\sqrt{x}\,(x - 3) come from t=xt = \sqrt x and t=−x.t = -\sqrt x\mathclose{\text{.}} So the curve is exactly y2=x(x−3)2;y^2 = x(x - 3)^2\mathclose{\text{;}} Figure 16.1 shows its part with −2≤t≤2.-2 \le t \le 2\mathclose{\text{.}}

(c) y=e2t=(et)2=x2.y = e^{2t} = \big(e^t\big)^2 = x^2\mathclose{\text{.}} But x=etx = e^t is always positive, and takes every positive value. So the curve is only the right half of the parabola y=x2,y = x^2\mathclose{\text{,}} the part with x>0:x > 0\mathclose{\text{:}} the origin and the left half are never reached.

Watch out

Eliminating the parameter forgets which part of the curve is traced, and how. In Example 16.2(c) the equation y=x2y = x^2 describes a whole parabola, but the point reaches only its right half. The curve x=sin⁡t,x = \sin t\mathclose{\text{,}} y=sin⁡2ty = \sin^2 t also satisfies y=x2,y = x^2\mathclose{\text{,}} yet it moves back and forth for ever along the arc from (−1,1)(-1, 1) to (1,1).(1, 1)\mathclose{\text{.}} After eliminating t,t\mathclose{\text{,}} always check which values xx and yy can take.

The cycloid

A cycloid is the curve traced by a point on the rim of a wheel that rolls along a straight line: a reflector on a bicycle wheel, seen from the side. It has no simple equation in xx and y,y\mathclose{\text{,}} but its parametric equations follow from one fact about rolling.

Let a circle of radius r>0r > 0 roll to the right along the xx-axis, without slipping, and let PP be the point of the circle that touches the ground at the origin at the start. As the parameter, take the angle tt (in radians) through which the circle has turned. Rolling without slipping means that the arc of the circle that has touched the ground is as long as the stretch of ground it touched. An arc of angle tt on a circle of radius rr has length rt,rt\mathclose{\text{,}} so the circle has rolled the distance rt:rt\mathclose{\text{:}} its centre is at C=(rt,r),C = (rt, r)\mathclose{\text{,}} above the point of contact T=(rt,0)T = (rt, 0) (Figure 16.2).

Where is P?P\mathclose{\text{?}} Seen from C,C\mathclose{\text{,}} it started straight down, at angle −π/2,-\pi/2\mathclose{\text{,}} and the circle rolls to the right by turning clockwise, so after turning through tt the point PP is at angle −π/2−t.-\pi/2 - t\mathclose{\text{.}} By the definition of sine and cosine, it is displaced from CC by

(rcos⁡(−π2−t), rsin⁡(−π2−t))=(−rsin⁡t, −rcos⁡t).\Big(r\cos\big(-\tfrac{\pi}{2} - t\big),\ r\sin\big(-\tfrac{\pi}{2} - t\big)\Big) = (-r\sin t,\ -r\cos t).

For 0<t<π/2,0 < t < \pi/2\mathclose{\text{,}} as in Figure 16.2, that is rsin⁡tr\sin t to the left of CC and rcos⁡tr\cos t below it. Adding C=(rt,r):C = (rt, r)\mathclose{\text{:}}

x=r(t−sin⁡t),y=r(1−cos⁡t).x = r(t - \sin t), \qquad y = r(1 - \cos t).

As tt runs from 0 to 2π,2\pi\mathclose{\text{,}} PP traces one arch of the cycloid: up from the origin to its highest point (πr,2r)(\pi r, 2r) at t=π,t = \pi\mathclose{\text{,}} and down to (2πr,0),(2\pi r, 0)\mathclose{\text{,}} where it touches the ground again. The whole cycloid is a row of such arches, each 2πr2\pi r wide and 2r2r high.

A circle of radius r rolls to the right along the x-axis. When it has turned through the angle t, it has rolled the distance rt (the green segment, as long as the green arc), so its centre is C = (rt, r), and the point P that started at the origin is rsin t to the left of C and rcos t below it. The dashed part of the arch is still to come.
Figure 16.2

A circle of radius rr rolls to the right along the xx-axis. When it has turned through the angle t,t\mathclose{\text{,}} it has rolled the distance rtrt (the green segment, as long as the green arc), so its centre is C=(rt,r),C = (rt, r)\mathclose{\text{,}} and the point PP that started at the origin is rsin⁡tr\sin t to the left of CC and rcos⁡tr\cos t below it. The dashed part of the arch is still to come.

Lissajous curves. Let xx and yy oscillate at different rates: x=sin⁡2t,x = \sin 2t\mathclose{\text{,}} y=sin⁡3t,y = \sin 3t\mathclose{\text{,}} 0≤t≤2π.0 \le t \le 2\pi\mathclose{\text{.}} The point stays in the square −1≤x≤1,-1 \le x \le 1\mathclose{\text{,}} −1≤y≤1,-1 \le y \le 1\mathclose{\text{,}} swinging left and right twice while it swings up and down three times, and returns to its start at t=2π.t = 2\pi\mathclose{\text{.}} Such a Lissajous curve appears on an oscilloscope when two sine waves drive the horizontal and the vertical deflection of its beam, and the ratio of their frequencies can be read off the picture: this curve touches the top and the bottom of the square three times each (at t=π/6,5π/6,3π/2t = \pi/6, 5\pi/6, 3\pi/2 and t=π/2,7π/6,11π/6)t = \pi/2, 7\pi/6, 11\pi/6\mathclose{\text{)}} and each side twice. Trace it in the widget of Section 16.2.

2

Calculus with parametric curves

Tangent lines

Near most of its points, a parametric curve is the graph of a function and has a tangent line, whose slope comes from the chain rule. If near some tt the curve x=f(t),x = f(t)\mathclose{\text{,}} y=g(t)y = g(t) is the graph of a differentiable function y=F(x),y = F(x)\mathclose{\text{,}} then g(t)=F(f(t)),g(t) = F\big(f(t)\big)\mathclose{\text{,}} and the chain rule (Section 5.5) gives g′(t)=F′(f(t)) f′(t),g'(t) = F'\big(f(t)\big)\,f'(t)\mathclose{\text{,}} that is,

dydt=dydx⋅dxdt,\frac{dy}{dt} = \frac{dy}{dx}\cdot\frac{dx}{dt},

and where dx/dt≠0dx/dt \ne 0 you can divide by it. The theorem says when the assumption holds.

Theorem 16.1The slope of a parametric curve

Let ff and gg be differentiable on an open interval I,I\mathclose{\text{,}} with f′f' continuous on I,I\mathclose{\text{,}} and let t0t_0 be a point of II with f′(t0)≠0.f'(t_0) \ne 0\mathclose{\text{.}} Then there is an open interval JJ around t0t_0 on which ff is one-to-one; the part of the curve x=f(t),x = f(t)\mathclose{\text{,}} y=g(t)y = g(t) with tt in JJ is the graph of a function y=F(x);y = F(x)\mathclose{\text{;}} and FF is differentiable at x0=f(t0),x_0 = f(t_0)\mathclose{\text{,}} with

F′(x0)=g′(t0)f′(t0),that is,dydx=dy/dtdx/dt.F'(x_0) = \frac{g'(t_0)}{f'(t_0)}, \quad\text{that is,}\quad \frac{dy}{dx} = \frac{dy/dt}{dx/dt}.
Proof

As t→t0,t \to t_0\mathclose{\text{,}} f′(t)→f′(t0),f'(t) \to f'(t_0)\mathclose{\text{,}} because f′f' is continuous; since f′(t0)≠0,f'(t_0) \ne 0\mathclose{\text{,}} f′(t)f'(t) has the sign of f′(t0)f'(t_0) for all tt in some open interval JJ around t0.t_0\mathclose{\text{.}} A function whose derivative is positive on an interval is strictly increasing there, and one whose derivative is negative is strictly decreasing (Module 8, a consequence of the Mean Value Theorem). Either way ff is one-to-one on J,J\mathclose{\text{,}} and continuous, being differentiable. So each value x=f(t)x = f(t) with tt in JJ comes from exactly one t=f−1(x),t = f^{-1}(x)\mathclose{\text{,}} and the part of the curve with tt in JJ is the graph of F(x)=g(f−1(x)).F(x) = g\big(f^{-1}(x)\big)\mathclose{\text{.}} By the theorem on the derivative of an inverse function (Section 6.2), f−1f^{-1} is differentiable at x0,x_0\mathclose{\text{,}} with derivative 1/f′(t0).1/f'(t_0)\mathclose{\text{.}} By the chain rule, FF is differentiable at x0x_0 and

F′(x0)=g′(f−1(x0)) (f−1)′(x0)=g′(t0)f′(t0).F'(x_0) = g'\big(f^{-1}(x_0)\big)\,\big(f^{-1}\big)'(x_0) = \frac{g'(t_0)}{f'(t_0)}.
∎

The continuity of f′f' is what makes ff one-to-one near t0.t_0\mathclose{\text{.}} The Leibniz form is easy to remember, as if dtdt cancelled. Two special cases matter most.

Key idea

On the curve x=f(t),x = f(t)\mathclose{\text{,}} y=g(t),y = g(t)\mathclose{\text{,}} with f′f' and g′g' continuous near the parameter value in question:

  • where dydt=0\dfrac{dy}{dt} = 0 and dxdt≠0,\dfrac{dx}{dt} \ne 0\mathclose{\text{,}} the tangent line is horizontal;
  • where dxdt=0\dfrac{dx}{dt} = 0 and dydt≠0,\dfrac{dy}{dt} \ne 0\mathclose{\text{,}} the tangent line is vertical (Theorem 16.1 with the roles of xx and yy swapped: near such a point the curve is a graph x=G(y)x = G(y) with dx/dy=0);dx/dy = 0\mathclose{\text{);}}
  • where both are 0, the formula says nothing: look more closely.
Example 16.3Tangents of a self-crossing curve✓ Checked

For the curve x=t2,x = t^2\mathclose{\text{,}} y=t3−3ty = t^3 - 3t of Figure 16.1, find dy/dx,dy/dx\mathclose{\text{,}} the points where the tangent line is horizontal or vertical, and the tangent lines at (3,0).(3, 0)\mathclose{\text{.}}

Here dxdt=2t\dfrac{dx}{dt} = 2t and dydt=3t2−3=3(t−1)(t+1).\dfrac{dy}{dt} = 3t^2 - 3 = 3(t - 1)(t + 1)\mathclose{\text{.}} For t≠0,t \ne 0\mathclose{\text{,}}

dydx=3t2−32t.\frac{dy}{dx} = \frac{3t^2 - 3}{2t}.

Horizontal: dy/dt=0dy/dt = 0 at t=±1,t = \pm1\mathclose{\text{,}} where dx/dt=±2≠0.dx/dt = \pm2 \ne 0\mathclose{\text{.}} The tangent line is horizontal at (1,−2)(1, -2) (t=1)t = 1\mathclose{\text{)}} and at (1,2)(1, 2) (t=−1),t = -1\mathclose{\text{),}} where y(t)y(t) turns.

Vertical: dx/dt=0dx/dt = 0 only at t=0,t = 0\mathclose{\text{,}} where dy/dt=−3≠0.dy/dt = -3 \ne 0\mathclose{\text{.}} The tangent line is vertical at the origin, where x(t)x(t) turns.

At (3,0):(3, 0)\mathclose{\text{:}} the point is reached twice, at t=3t = \sqrt3 and at t=−3.t = -\sqrt3\mathclose{\text{.}} At t=3t = \sqrt3 the slope is 9−323=33=3;\dfrac{9 - 3}{2\sqrt3} = \dfrac{3}{\sqrt3} = \sqrt3\mathclose{\text{;}} at t=−3t = -\sqrt3 it is 6−23=−3.\dfrac{6}{-2\sqrt3} = -\sqrt3\mathclose{\text{.}} So the curve has two tangent lines there, one for each pass:

y=3 (x−3)andy=−3 (x−3).y = \sqrt3\,(x - 3) \quad\text{and}\quad y = -\sqrt3\,(x - 3).

The slope is a function of t,t\mathclose{\text{,}} not of the point: to find the slope at a point, first find the values of tt that give it.

Example 16.4The slope of the cycloid✓ Checked

Find the slope of the cycloid x=r(t−sin⁡t),x = r(t - \sin t)\mathclose{\text{,}} y=r(1−cos⁡t),y = r(1 - \cos t)\mathclose{\text{,}} and describe the curve where it touches the ground.

dxdt=r(1−cos⁡t)\dfrac{dx}{dt} = r(1 - \cos t) and dydt=rsin⁡t.\dfrac{dy}{dt} = r\sin t\mathclose{\text{.}} The first is 0 exactly when cos⁡t=1,\cos t = 1\mathclose{\text{,}} at t=0,±2π,±4π,…:t = 0, \pm2\pi, \pm4\pi, \dots\mathclose{\text{:}} where PP touches the ground. Elsewhere

dydx=rsin⁡tr(1−cos⁡t)=sin⁡t1−cos⁡t.\frac{dy}{dx} = \frac{r\sin t}{r(1 - \cos t)} = \frac{\sin t}{1 - \cos t}.

This simplifies. The addition formulas of Section 1.4, with both angles equal to t/2,t/2\mathclose{\text{,}} give the double-angle formulas

sin⁡t=2sin⁡t2cos⁡t2,cos⁡t=cos⁡2t2−sin⁡2t2=1−2sin⁡2t2,\begin{aligned} \sin t &= 2\sin\tfrac{t}{2}\cos\tfrac{t}{2}, \\ \cos t &= \cos^2\tfrac{t}{2} - \sin^2\tfrac{t}{2} = 1 - 2\sin^2\tfrac{t}{2}, \end{aligned}

the last step by cos⁡2+sin⁡2=1.\cos^2 + \sin^2 = 1\mathclose{\text{.}} So 1−cos⁡t=2sin⁡2t2,1 - \cos t = 2\sin^2\tfrac{t}{2}\mathclose{\text{,}} and

dydx=2sin⁡t2cos⁡t22sin⁡2t2=cos⁡t2sin⁡t2=cot⁡t2.\frac{dy}{dx} = \frac{2\sin\frac{t}{2}\cos\frac{t}{2}}{2\sin^2\frac{t}{2}} = \frac{\cos\frac{t}{2}}{\sin\frac{t}{2}} = \cot\frac{t}{2}.

At t=π,t = \pi\mathclose{\text{,}} the top of the arch, the slope is cot⁡π2=0.\cot\tfrac{\pi}{2} = 0\mathclose{\text{.}} As t→0+,t \to 0^+\mathclose{\text{,}} cos⁡t2→1\cos\tfrac{t}{2} \to 1 and sin⁡t2→0+,\sin\tfrac{t}{2} \to 0^+\mathclose{\text{,}} so the slope tends to +∞;+\infty\mathclose{\text{;}} as t→2π−t \to 2\pi^- it tends to −∞.-\infty\mathclose{\text{.}} So each arch leaves the ground vertically and comes back down vertically, and neighbouring arches meet in a sharp point, a cusp. There both dx/dtdx/dt and dy/dtdy/dt are 0: PP is momentarily at rest, as the point of a rolling wheel that touches the ground always is.

Watch out

The slope is dy/dtdx/dt,\dfrac{dy/dt}{dx/dt}\mathclose{\text{,}} not dx/dtdy/dt:\dfrac{dx/dt}{dy/dt}\mathclose{\text{:}} the second is dx/dy,dx/dy\mathclose{\text{,}} the slope with the axes swapped. And where dx/dtdx/dt and dy/dtdy/dt are both 0, no conclusion follows. The curve x=t3,x = t^3\mathclose{\text{,}} y=t2y = t^2 has a cusp at the origin (it is y=x2/3),y = x^{2/3}\mathclose{\text{),}} while x=t3,x = t^3\mathclose{\text{,}} y=t3y = t^3 is the smooth line y=x,y = x\mathclose{\text{,}} traced with a pause at the origin; both have dx/dt=dy/dt=0dx/dt = dy/dt = 0 at t=0.t = 0\mathclose{\text{.}}

Velocity. If tt is time, draw an arrow from the point (x,y)(x, y) with horizontal part dx/dtdx/dt and vertical part dy/dt,dy/dt\mathclose{\text{,}} the rates at which the point moves across and up. When dx/dt≠0,dx/dt \ne 0\mathclose{\text{,}} its slope is dy/dtdx/dt=dydx;\dfrac{dy/dt}{dx/dt} = \dfrac{dy}{dx}\mathclose{\text{;}} when dx/dt=0dx/dt = 0 and dy/dt≠0,dy/dt \ne 0\mathclose{\text{,}} the arrow is vertical. In either case it lies along the tangent line, pointing the way the curve is traced. Its length (dx/dt)2+(dy/dt)2\sqrt{(dx/dt)^2 + (dy/dt)^2} is the speed of the point (integrating it gives the distance travelled, as the next subsection shows). If both derivatives are 0, the speed is 0 and the arrow has no direction. Section 16.4 calls such an arrow a vector, and Section 16.8 calls this one the velocity.

Try it

Choose a curve and press Play, or move the slider. The blue curve is traced up to the current value of the parameter, and the orange arrow is the velocity ⟨x′,y′⟩,\langle x', y'\rangle\mathclose{\text{,}} drawn to the scale stated under the plot; the readout gives its components and speed, rounded where needed. With the circle, check Example 16.1(a) at t=π/2:t = \pi/2\mathclose{\text{:}} where is the point, and which way does the arrow point? With the cycloid, watch the arrow shrink to nothing as PP reaches the ground (Example 16.4). For the polar curves of Section 16.3 the parameter is the angle θ,\theta\mathclose{\text{,}} and a dashed ray shows the direction θ:\theta\mathclose{\text{:}} with the rose r=cos⁡3θ,r = \cos 3\theta\mathclose{\text{,}} watch where the point is when r<0.r < 0\mathclose{\text{.}}

Arc length

Module 12 defined the length of the graph of a function as the limit of the lengths of inscribed polygons, and found the formula L=∫ab1+f′(x)2 dx.L = \int_a^b \sqrt{1 + f'(x)^2}\,dx\mathclose{\text{.}} The same polygons measure a parametric curve. Cut [a,b][a, b] into nn equal pieces, at a=t0<t1<⋯<tn=b,a = t_0 < t_1 < \dots < t_n = b\mathclose{\text{,}} with Δt=(b−a)/n,\Delta t = (b - a)/n\mathclose{\text{,}} and join the points Pi=(f(ti),g(ti))P_i = \big(f(t_i), g(t_i)\big) in order. With Δxi=f(ti)−f(ti−1)\Delta x_i = f(t_i) - f(t_{i-1}) and Δyi=g(ti)−g(ti−1),\Delta y_i = g(t_i) - g(t_{i-1})\mathclose{\text{,}} the chord from Pi−1P_{i-1} to PiP_i has length

(Δxi)2+(Δyi)2=(ΔxiΔt)2+(ΔyiΔt)2  Δt.\sqrt{(\Delta x_i)^2 + (\Delta y_i)^2} = \sqrt{\Big(\frac{\Delta x_i}{\Delta t}\Big)^2 + \Big(\frac{\Delta y_i}{\Delta t}\Big)^2}\;\Delta t.

As Δt→0,\Delta t \to 0\mathclose{\text{,}} the two difference quotients approach f′(t)f'(t) and g′(t),g'(t)\mathclose{\text{,}} so the sum of the chords should approach an integral. The length of the path traced from t=at = a to t=bt = b is the limit of the lengths of these polygons as n→∞,n \to \infty\mathclose{\text{,}} if the limit exists; when the path traces a curve once, it is the length of the curve.

Theorem 16.2Arc length of a parametric curve

If f′f' and g′g' are continuous on [a,b],[a, b]\mathclose{\text{,}} the length of the path x=f(t),x = f(t)\mathclose{\text{,}} y=g(t),y = g(t)\mathclose{\text{,}} a≤t≤b,a \le t \le b\mathclose{\text{,}} is

L=∫ab(dxdt)2+(dydt)2 dt.L = \int_a^b \sqrt{\Big(\frac{dx}{dt}\Big)^2 + \Big(\frac{dy}{dt}\Big)^2}\,dt.

The idea of the proof. By the Mean Value Theorem (Module 8), Δxi=f′(ti∗) Δt\Delta x_i = f'(t_i^*)\,\Delta t and Δyi=g′(ti∗∗) Δt\Delta y_i = g'(t_i^{**})\,\Delta t for some points ti∗t_i^* and ti∗∗t_i^{**} in [ti−1,ti].[t_{i-1}, t_i]\mathclose{\text{.}} So the polygon has length

∑i=1nf′(ti∗)2+g′(ti∗∗)2  Δt.\sum_{i=1}^{n} \sqrt{f'(t_i^*)^2 + g'(t_i^{**})^2}\;\Delta t.

If ti∗∗t_i^{**} were ti∗,t_i^*\mathclose{\text{,}} this would be a Riemann sum of the continuous function f′(t)2+g′(t)2,\sqrt{f'(t)^2 + g'(t)^2}\mathclose{\text{,}} and it would approach the integral (Module 9), exactly as in Module 12. The two points may differ, but they are at most Δt\Delta t apart, so g′(ti∗∗)g'(t_i^{**}) is close to g′(ti∗)g'(t_i^*) when Δt\Delta t is small. The Going deeper box makes “close” precise.

Going deeperWhy the polygons approach the integral

Let PnP_n be the length of the polygon, and Qn=∑f′(ti∗)2+g′(ti∗)2 Δt,Q_n = \sum \sqrt{f'(t_i^*)^2 + g'(t_i^*)^2}\,\Delta t\mathclose{\text{,}} a Riemann sum that tends to LL (Module 9). For any numbers p,p\mathclose{\text{,}} qq and q′,q'\mathclose{\text{,}}

∣p2+q2−p2+q′2∣≤∣q−q′∣:\Big|\sqrt{p^2 + q^2} - \sqrt{p^2 + q'^2}\Big| \le \abs{q - q'}:

the square roots are the distances from the origin to the points (p,q)(p, q) and (p,q′),(p, q')\mathclose{\text{,}} which are ∣q−q′∣\abs{q - q'} apart, and by the triangle inequality two such distances differ by at most that much. So

∣Pn−Qn∣≤∑i=1n∣g′(ti∗∗)−g′(ti∗)∣ Δt.\abs{P_n - Q_n} \le \sum_{i=1}^{n} \abs{g'(t_i^{**}) - g'(t_i^*)}\,\Delta t.

A function continuous on a closed interval is uniformly continuous there: for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 such that ∣g′(s)−g′(s′)∣<ε\abs{g'(s) - g'(s')} < \varepsilon whenever ss and s′s' in [a,b][a, b] are less than δ\delta apart. (This theorem, like the integrability of continuous functions in Module 9, needs the completeness of the real numbers; the series uses it without proof.) Once Δt<δ,\Delta t < \delta\mathclose{\text{,}} every term of the sum is less than ε Δt,\varepsilon\,\Delta t\mathclose{\text{,}} so ∣Pn−Qn∣<ε(b−a).\abs{P_n - Q_n} < \varepsilon(b - a)\mathclose{\text{.}} Hence Pn−Qn→0,P_n - Q_n \to 0\mathclose{\text{,}} and Pn→L.P_n \to L\mathclose{\text{.}}

If tt is time, the integrand is the speed, and Theorem 16.2 says that the distance travelled is the integral of the speed: like the car of Section 1.1, whose odometer adds up its speedometer’s readings. For the graph of y=f(x),y = f(x)\mathclose{\text{,}} take x=t,x = t\mathclose{\text{,}} y=f(t):y = f(t)\mathclose{\text{:}} the integrand becomes 1+f′(t)2,\sqrt{1 + f'(t)^2}\mathclose{\text{,}} and Theorem 16.2 gives Module 12’s formula.

Example 16.5Two lengths✓ Checked

Let r>0.r > 0\mathclose{\text{.}} Find the length of (a) the circle x=rcos⁡t,x = r\cos t\mathclose{\text{,}} y=rsin⁡t,y = r\sin t\mathclose{\text{,}} 0≤t≤2π,0 \le t \le 2\pi\mathclose{\text{,}} and (b) one arch of the cycloid x=r(t−sin⁡t),x = r(t - \sin t)\mathclose{\text{,}} y=r(1−cos⁡t),y = r(1 - \cos t)\mathclose{\text{,}} 0≤t≤2π.0 \le t \le 2\pi\mathclose{\text{.}}

(a) dxdt=−rsin⁡t\dfrac{dx}{dt} = -r\sin t and dydt=rcos⁡t,\dfrac{dy}{dt} = r\cos t\mathclose{\text{,}} so the integrand is r2sin⁡2t+r2cos⁡2t=r,\sqrt{r^2\sin^2 t + r^2\cos^2 t} = r\mathclose{\text{,}} and

L=∫02πr dt=2πr,L = \int_0^{2\pi} r\,dt = 2\pi r,

the circumference, as it should be.

(b) Square and add the derivatives of Example 16.4, and use cos⁡2t+sin⁡2t=1\cos^2 t + \sin^2 t = 1 and then 1−cos⁡t=2sin⁡2t2:1 - \cos t = 2\sin^2\tfrac{t}{2}\mathclose{\text{:}}

(dxdt)2+(dydt)2=r2(1−cos⁡t)2+r2sin⁡2t=r2(1−2cos⁡t+cos⁡2t+sin⁡2t)=r2(2−2cos⁡t)=4r2sin⁡2t2.\begin{aligned} \Big(\frac{dx}{dt}\Big)^2 + \Big(\frac{dy}{dt}\Big)^2 &= r^2(1 - \cos t)^2 + r^2\sin^2 t \\ &= r^2\big(1 - 2\cos t + \cos^2 t + \sin^2 t\big) \\ &= r^2(2 - 2\cos t) = 4r^2\sin^2\tfrac{t}{2}. \end{aligned}

For 0≤t≤2π,0 \le t \le 2\pi\mathclose{\text{,}} the angle t/2t/2 lies in [0,π],[0, \pi]\mathclose{\text{,}} where sin⁡t2≥0;\sin\tfrac{t}{2} \ge 0\mathclose{\text{;}} so the square root is 2rsin⁡t2.2r\sin\tfrac{t}{2}\mathclose{\text{.}} Substitute u=t/2,u = t/2\mathclose{\text{,}} du=12 dtdu = \tfrac12\,dt (Section 10.7); the limits t=0t = 0 and t=2πt = 2\pi become u=0u = 0 and u=π:u = \pi\mathclose{\text{:}}

L=∫02π2rsin⁡t2 dt=4r∫0πsin⁡u du=4r[−cos⁡u]0π=4r(1+1)=8r.\begin{aligned} L &= \int_0^{2\pi} 2r\sin\tfrac{t}{2}\,dt = 4r\int_0^{\pi} \sin u\,du \\ &= 4r\big[-\cos u\big]_0^{\pi} = 4r(1 + 1) = 8r. \end{aligned}

One arch of a cycloid is exactly 8r8r long, four times the diameter of the wheel, although its base is only 2πr≈6.28r.2\pi r \approx 6.28r\mathclose{\text{.}} In one turn of a bicycle wheel, the reflector travels 8/(2π)≈1.2738/(2\pi) \approx 1.273 times as far as the bicycle: about 27% further.

Watch out

sin⁡2(t/2)\sqrt{\sin^2(t/2)} is ∣sin⁡(t/2)∣,\abs{\sin(t/2)}\mathclose{\text{,}} not sin⁡(t/2).\sin(t/2)\mathclose{\text{.}} Over two arches, 0≤t≤4π,0 \le t \le 4\pi\mathclose{\text{,}} sin⁡t2\sin\tfrac{t}{2} is negative for 2π<t<4π,2\pi < t < 4\pi\mathclose{\text{,}} and ∫04π2rsin⁡t2 dt=0:\int_0^{4\pi} 2r\sin\tfrac{t}{2}\,dt = 0\mathclose{\text{:}} nonsense for a length. Split the interval where the sign changes, or use symmetry: two arches are 16r16r long. In the same way, a path that retraces itself is measured with each pass: x=cos⁡2t,x = \cos 2t\mathclose{\text{,}} y=sin⁡2t,y = \sin 2t\mathclose{\text{,}} 0≤t≤2π,0 \le t \le 2\pi\mathclose{\text{,}} has speed 2 and gives ∫02π2 dt=4π,\int_0^{2\pi} 2\,dt = 4\pi\mathclose{\text{,}} the distance travelled twice round the unit circle, not the circle’s length.

3

Polar coordinates

A radar station does not report an aircraft as “40 km east and 30 km north”. It reports a distance, 50 km, and a direction. Describing points by a distance and an angle gives polar coordinates, in which circles centred at the origin, spirals and flower-like curves have short equations.

Definition 16.2Polar coordinates

Fix the origin O,O\mathclose{\text{,}} called the pole, and the positive xx-axis, called the polar axis. A point PP has polar coordinates (r,θ)(r, \theta) if

x=rcos⁡θ,y=rsin⁡θ.x = r\cos\theta, \qquad y = r\sin\theta.

For r>0,r > 0\mathclose{\text{,}} rr is the distance from OO to P,P\mathclose{\text{,}} and θ\theta is an angle (in radians) from the polar axis to the ray from OO through P,P\mathclose{\text{,}} measured anticlockwise. For r<0,r < 0\mathclose{\text{,}} the point (r,θ)(r, \theta) lies on the opposite ray, at distance ∣r∣\abs{r} from O.O\mathclose{\text{.}} The pole is (0,θ)(0, \theta) for every θ.\theta\mathclose{\text{.}}

Figure 16.3 (top left) shows a point with its polar coordinates. Unlike Cartesian coordinates, polar coordinates are not unique: (r,θ),(r, \theta)\mathclose{\text{,}} (r,θ+2π)(r, \theta + 2\pi) and (−r,θ+π)(-r, \theta + \pi) are the same point, because sine and cosine have period 2π,2\pi\mathclose{\text{,}} while cos⁡(θ+π)=−cos⁡θ\cos(\theta + \pi) = -\cos\theta and sin⁡(θ+π)=−sin⁡θ.\sin(\theta + \pi) = -\sin\theta\mathclose{\text{.}} To go back, square and add, and divide:

r2=x2+y2,tan⁡θ=yx(x≠0).r^2 = x^2 + y^2, \qquad \tan\theta = \frac{y}{x} \quad (x \ne 0).
Example 16.6Converting coordinates✓ Checked

(a) Find the Cartesian coordinates of the points with polar coordinates (4,5π/6)(4, 5\pi/6) and (−2,π/4).(-2, \pi/4)\mathclose{\text{.}} (b) Find polar coordinates, with r>0r > 0 and 0≤θ<2π,0 \le \theta < 2\pi\mathclose{\text{,}} of the points (−1,3)(-1, \sqrt3) and (−3,−3).(-3, -3)\mathclose{\text{.}}

(a) For (4,5π/6):(4, 5\pi/6)\mathclose{\text{:}} x=4cos⁡5π6=4(−32)=−23x = 4\cos\tfrac{5\pi}{6} = 4\big(-\tfrac{\sqrt3}{2}\big) = -2\sqrt3 and y=4sin⁡5π6=4⋅12=2,y = 4\sin\tfrac{5\pi}{6} = 4\cdot\tfrac12 = 2\mathclose{\text{,}} so the point is (−23,2).\big(-2\sqrt3, 2\big)\mathclose{\text{.}} For (−2,π/4):(-2, \pi/4)\mathclose{\text{:}} x=−2cos⁡π4=−2x = -2\cos\tfrac{\pi}{4} = -\sqrt2 and y=−2sin⁡π4=−2.y = -2\sin\tfrac{\pi}{4} = -\sqrt2\mathclose{\text{.}} The point (−2,−2)\big(-\sqrt2, -\sqrt2\big) is in the third quadrant, opposite to the direction π/4,\pi/4\mathclose{\text{,}} as a negative rr requires.

(b) For (−1,3):(-1, \sqrt3)\mathclose{\text{:}} r=1+3=2,r = \sqrt{1 + 3} = 2\mathclose{\text{,}} and θ\theta must satisfy cos⁡θ=x/r=−12\cos\theta = x/r = -\tfrac12 and sin⁡θ=y/r=32,\sin\theta = y/r = \tfrac{\sqrt3}{2}\mathclose{\text{,}} so θ=2π3\theta = \tfrac{2\pi}{3} (Example 1.8). For (−3,−3):(-3, -3)\mathclose{\text{:}} r=18=32,r = \sqrt{18} = 3\sqrt2\mathclose{\text{,}} and cos⁡θ=sin⁡θ=−12,\cos\theta = \sin\theta = -\tfrac{1}{\sqrt2}\mathclose{\text{,}} so θ=5π4.\theta = \tfrac{5\pi}{4}\mathclose{\text{.}}

Watch out

When choosing r>0,r > 0\mathclose{\text{,}} θ=arctan⁡(y/x)\theta = \arctan(y/x) is right only when x>0:x > 0\mathclose{\text{:}} the arctangent gives angles between −π/2-\pi/2 and π/2,\pi/2\mathclose{\text{,}} which point into the right half of the plane. For (−3,−3),(-3, -3)\mathclose{\text{,}} arctan⁡−3−3=arctan⁡1=π4\arctan\dfrac{-3}{-3} = \arctan 1 = \dfrac{\pi}{4} points into the first quadrant, exactly the wrong way; the right angle is π4+π=5π4.\dfrac{\pi}{4} + \pi = \dfrac{5\pi}{4}\mathclose{\text{.}} Decide the quadrant from the signs of xx and yy first. (Python’s math.atan2(y, x) does this, and returns an angle in [−π,π].)[-\pi, \pi]\mathclose{\text{.)}}

Polar curves

The graph of a polar equation r=f(θ)r = f(\theta) is the set of points with polar coordinates (f(θ),θ).\big(f(\theta), \theta\big)\mathclose{\text{.}} It is a parametric curve with the angle as the parameter:

x=f(θ)cos⁡θ,y=f(θ)sin⁡θ.x = f(\theta)\cos\theta, \qquad y = f(\theta)\sin\theta.

The simplest are r=a,r = a\mathclose{\text{,}} for a constant a>0,a > 0\mathclose{\text{,}} the circle of radius aa centred at the pole, and θ=α,\theta = \alpha\mathclose{\text{,}} the line through the pole at angle α\alpha (with negative rr included, the whole line). Others need a calculation. Multiplying r=2sin⁡θr = 2\sin\theta by rr gives r2=2rsin⁡θ,r^2 = 2r\sin\theta\mathclose{\text{,}} that is, x2+y2=2y;x^2 + y^2 = 2y\mathclose{\text{;}} completing the square, x2+(y−1)2=1.x^2 + (y - 1)^2 = 1\mathclose{\text{.}} So r=2sin⁡θr = 2\sin\theta is the circle of radius 1 centred at (0,1),(0, 1)\mathclose{\text{,}} traced once as θ\theta runs from 0 to π\pi (Figure 16.3, top right). For π≤θ≤2π,\pi \le \theta \le 2\pi\mathclose{\text{,}} r=2sin⁡θ≤0,r = 2\sin\theta \le 0\mathclose{\text{,}} and the point goes round the same circle again.

A table shows how a less familiar curve, the cardioid r=1+cos⁡θr = 1 + \cos\theta (Greek for “heart-shaped”), is traced:

θ\thetar=1+cos⁡θr = 1 + \cos\thetax=rcos⁡θx = r\cos\thetay=rsin⁡θy = r\sin\theta
00222200
π6\frac{\pi}{6}1.8661.8661.6161.6160.93300.9330
π3\frac{\pi}{3}1.51.50.750.751.2991.299
π2\frac{\pi}{2}110011
2π3\frac{2 \pi}{3}0.50.5−0.25-0.250.43300.4330
5π6\frac{5 \pi}{6}0.13400.1340−0.1160-0.11600.066990.06699
π\pi000000

As θ\theta increases from 0 to π,\pi\mathclose{\text{,}} rr shrinks from 2 to 0: the point starts at (2,0),(2, 0)\mathclose{\text{,}} swings round through the upper half-plane and arrives at the pole. Since cos⁡(−θ)=cos⁡θ,\cos(-\theta) = \cos\theta\mathclose{\text{,}} the lower half is the mirror image of the upper half in the xx-axis, traced as θ\theta runs on from π\pi to 2π2\pi (Figure 16.3, bottom left).

Polar coordinates and polar curves, on a grey polar grid. Top left: the point (r, theta) = (2, pi/3) is (rcostheta, rsintheta) = big(1, sqrt3big). Top middle: a region bounded by a polar curve and two rays, sliced by rays from the pole; the shaded slice is nearly a sector of area tfrac12 r^2,Deltatheta (Theorem 16.3). Top right: the circle r = 2sintheta. Bottom: the cardioid r = 1 + costheta (area 3pi/2), the rose r = cos 3theta with one petal (area pi/12) shaded, and the spiral r = theta/2 for 0 le theta le 4pi.
Figure 16.3

Polar coordinates and polar curves, on a grey polar grid. Top left: the point (r,θ)=(2,π/3)(r, \theta) = (2, \pi/3) is (rcos⁡θ,rsin⁡θ)=(1,3).(r\cos\theta, r\sin\theta) = \big(1, \sqrt3\big)\mathclose{\text{.}} Top middle: a region bounded by a polar curve and two rays, sliced by rays from the pole; the shaded slice is nearly a sector of area 12r2 Δθ\tfrac12 r^2\,\Delta\theta (Theorem 16.3). Top right: the circle r=2sin⁡θ.r = 2\sin\theta\mathclose{\text{.}} Bottom: the cardioid r=1+cos⁡θr = 1 + \cos\theta (area 3π/2),3\pi/2\mathclose{\text{),}} the rose r=cos⁡3θr = \cos 3\theta with one petal (area π/12)\pi/12\mathclose{\text{)}} shaded, and the spiral r=θ/2r = \theta/2 for 0≤θ≤4π.0 \le \theta \le 4\pi\mathclose{\text{.}}

Two more families. The rose r=cos⁡3θr = \cos 3\theta (Figure 16.3, bottom middle) has three petals. For −π/6≤θ≤π/6,-\pi/6 \le \theta \le \pi/6\mathclose{\text{,}} r≥0,r \ge 0\mathclose{\text{,}} and the point draws the petal along the polar axis. For π/6≤θ≤π/2,\pi/6 \le \theta \le \pi/2\mathclose{\text{,}} r≤0,r \le 0\mathclose{\text{,}} so the point lies on the ray opposite to θ\theta and draws the petal pointing in the direction 4π/34\pi/3 (its tip, r=−1,r = -1\mathclose{\text{,}} comes at θ=π/3);\theta = \pi/3\mathclose{\text{);}} the third petal points in the direction 2π/3.2\pi/3\mathclose{\text{.}} After θ=π\theta = \pi the curve repeats, because cos⁡(3(θ+π))=−cos⁡3θ\cos\big(3(\theta + \pi)\big) = -\cos 3\theta and (−r,θ+π)(-r, \theta + \pi) is the same point as (r,θ).(r, \theta)\mathclose{\text{.}} In general, for a positive integer n,n\mathclose{\text{,}} r=cos⁡nθr = \cos n\theta has nn petals when nn is odd and 2n2n when nn is even.

The spiral r=θ/2,r = \theta/2\mathclose{\text{,}} θ≥0\theta \ge 0 (Figure 16.3, bottom right), is an Archimedean spiral: each full turn adds 2π2\pi to θ\theta and π\pi to r,r\mathclose{\text{,}} so successive turns are the same distance π\pi apart, like the layers of a rolled carpet seen from the end.

Slopes of polar curves

For ff with a continuous derivative, the polar curve r=f(θ)r = f(\theta) is the parametric curve x=f(θ)cos⁡θ,x = f(\theta)\cos\theta\mathclose{\text{,}} y=f(θ)sin⁡θ,y = f(\theta)\sin\theta\mathclose{\text{,}} so Theorem 16.1 gives its slopes. By the product rule,

dxdθ=f′(θ)cos⁡θ−f(θ)sin⁡θ,dydθ=f′(θ)sin⁡θ+f(θ)cos⁡θ,\begin{aligned} \frac{dx}{d\theta} &= f'(\theta)\cos\theta - f(\theta)\sin\theta, \\ \frac{dy}{d\theta} &= f'(\theta)\sin\theta + f(\theta)\cos\theta, \end{aligned}

and, where dx/dθ≠0,dx/d\theta \ne 0\mathclose{\text{,}}

dydx=f′(θ)sin⁡θ+f(θ)cos⁡θf′(θ)cos⁡θ−f(θ)sin⁡θ.\frac{dy}{dx} = \frac{f'(\theta)\sin\theta + f(\theta)\cos\theta}{f'(\theta)\cos\theta - f(\theta)\sin\theta}.

At the pole the formula is especially simple. If f(θ0)=0f(\theta_0) = 0 and f′(θ0)≠0,f'(\theta_0) \ne 0\mathclose{\text{,}} the terms with f(θ0)f(\theta_0) drop out and the slope is tan⁡θ0\tan\theta_0 (when cos⁡θ0≠0;\cos\theta_0 \ne 0\mathclose{\text{;}} if cos⁡θ0=0\cos\theta_0 = 0 the tangent line is vertical): the curve passes through the pole along the line θ=θ0.\theta = \theta_0\mathclose{\text{.}} The rose r=cos⁡3θr = \cos 3\theta is 0 at θ=π/6,\theta = \pi/6\mathclose{\text{,}} π/2\pi/2 and 5π/6,5\pi/6\mathclose{\text{,}} so its petals meet at the pole along the lines at those three angles.

Example 16.7Tangents to the cardioid✓ Checked

Find the tangent line to the cardioid r=1+cos⁡θr = 1 + \cos\theta at the point where θ=π/2,\theta = \pi/2\mathclose{\text{,}} and the points where the tangent line is horizontal.

Here f(θ)=1+cos⁡θf(\theta) = 1 + \cos\theta and f′(θ)=−sin⁡θ,f'(\theta) = -\sin\theta\mathclose{\text{,}} so

dxdθ=−sin⁡θcos⁡θ−(1+cos⁡θ)sin⁡θ=−sin⁡θ (1+2cos⁡θ),dydθ=−sin⁡2θ+(1+cos⁡θ)cos⁡θ=2cos⁡2θ+cos⁡θ−1,\begin{aligned} \frac{dx}{d\theta} &= -\sin\theta\cos\theta - (1 + \cos\theta)\sin\theta = -\sin\theta\,(1 + 2\cos\theta), \\ \frac{dy}{d\theta} &= -\sin^2\theta + (1 + \cos\theta)\cos\theta \\ &= 2\cos^2\theta + \cos\theta - 1, \end{aligned}

where the last step replaced sin⁡2θ\sin^2\theta by 1−cos⁡2θ.1 - \cos^2\theta\mathclose{\text{.}} The quadratic in cos⁡θ\cos\theta factors: dydθ=(2cos⁡θ−1)(cos⁡θ+1).\dfrac{dy}{d\theta} = (2\cos\theta - 1)(\cos\theta + 1)\mathclose{\text{.}}

At θ=π/2:\theta = \pi/2\mathclose{\text{:}} r=1,r = 1\mathclose{\text{,}} so the point is (0,1),(0, 1)\mathclose{\text{,}} and dxdθ=−1,\dfrac{dx}{d\theta} = -1\mathclose{\text{,}} dydθ=−1.\dfrac{dy}{d\theta} = -1\mathclose{\text{.}} The slope is −1−1=1,\dfrac{-1}{-1} = 1\mathclose{\text{,}} and the tangent line is y=x+1.y = x + 1\mathclose{\text{.}}

Horizontal tangents: dy/dθ=0dy/d\theta = 0 when cos⁡θ=12,\cos\theta = \tfrac12\mathclose{\text{,}} at θ=π/3\theta = \pi/3 and 5π/3,5\pi/3\mathclose{\text{,}} or when cos⁡θ=−1,\cos\theta = -1\mathclose{\text{,}} at θ=π.\theta = \pi\mathclose{\text{.}} At θ=π/3,\theta = \pi/3\mathclose{\text{,}} r=32r = \tfrac32 and the point is (34,334)≈(0.75,1.299);\big(\tfrac34, \tfrac{3\sqrt3}{4}\big) \approx (0.75, 1.299)\mathclose{\text{;}} there dxdθ=−32⋅2=−3≠0,\dfrac{dx}{d\theta} = -\tfrac{\sqrt3}{2}\cdot 2 = -\sqrt3 \ne 0\mathclose{\text{,}} so the tangent line is horizontal: this is the top of the cardioid. By symmetry, θ=5π/3\theta = 5\pi/3 gives the bottom, (34,−334).\big(\tfrac34, -\tfrac{3\sqrt3}{4}\big)\mathclose{\text{.}} At θ=π\theta = \pi the point is the pole, and dx/dθ=0dx/d\theta = 0 as well, so the derivative formula says nothing. Instead, consider a secant from the pole to a nearby point of the curve. Its slope is

yx=(1+cos⁡θ)sin⁡θ(1+cos⁡θ)cos⁡θ=tan⁡θ⟶0(θ→π).\frac{y}{x} = \frac{(1 + \cos\theta)\sin\theta}{(1 + \cos\theta)\cos\theta} = \tan\theta \longrightarrow 0 \qquad (\theta \to \pi).

Thus the cusp at the pole also has a horizontal tangent, y=0.y = 0\mathclose{\text{.}} The three points with horizontal tangent lines are the top, the bottom and the pole.

Area in polar coordinates

The natural building block for areas in polar coordinates is not a rectangle but a sector. A sector of a circle of radius rr with angle Δθ\Delta\theta (in radians) is the fraction Δθ/(2π)\Delta\theta/(2\pi) of the disc, so its area is

Δθ2π⋅πr2=12r2 Δθ.\frac{\Delta\theta}{2\pi}\cdot\pi r^2 = \frac12 r^2\,\Delta\theta.
Theorem 16.3Area in polar coordinates

Let ff be continuous and f(θ)≥0f(\theta) \ge 0 on [α,β],[\alpha, \beta]\mathclose{\text{,}} where 0<β−α≤2π.0 < \beta - \alpha \le 2\pi\mathclose{\text{.}} The region bounded by the polar curve r=f(θ)r = f(\theta) and the rays θ=α\theta = \alpha and θ=β\theta = \beta has area

A=∫αβ12f(θ)2 dθ=12∫αβr2 dθ.A = \int_\alpha^\beta \frac12 f(\theta)^2\,d\theta = \frac12\int_\alpha^\beta r^2\,d\theta.
Proof

Cut [α,β][\alpha, \beta] into nn pieces of width Δθ=(β−α)/n;\Delta\theta = (\beta - \alpha)/n\mathclose{\text{;}} the rays at the cuts slice the region into nn thin pieces (Figure 16.3, top middle). The condition β−α≤2π\beta - \alpha \le 2\pi makes sure that the pieces do not overlap. On the iith piece of [α,β],[\alpha, \beta]\mathclose{\text{,}} let mim_i and MiM_i be the least and the greatest value of f;f\mathclose{\text{;}} they exist by the Extreme Value Theorem (Module 3). The iith slice contains the sector of radius mim_i and lies inside the sector of radius Mi,M_i\mathclose{\text{,}} both with angle Δθ,\Delta\theta\mathclose{\text{,}} so its area is between 12mi2 Δθ\tfrac12 m_i^2\,\Delta\theta and 12Mi2 Δθ.\tfrac12 M_i^2\,\Delta\theta\mathclose{\text{.}} Adding over the slices,

∑i=1n12mi2 Δθ≤A≤∑i=1n12Mi2 Δθ.\sum_{i=1}^{n} \frac12 m_i^2\,\Delta\theta \le A \le \sum_{i=1}^{n} \frac12 M_i^2\,\Delta\theta.

Since f≥0,f \ge 0\mathclose{\text{,}} 12mi2\tfrac12 m_i^2 and 12Mi2\tfrac12 M_i^2 are the least and greatest values of 12f2\tfrac12 f^2 on the iith piece, so the two sides are Riemann sums of the continuous function 12f(θ)2,\tfrac12 f(\theta)^2\mathclose{\text{,}} with nn equal subintervals. As n→∞n \to \infty both approach ∫αβ12f(θ)2 dθ\int_\alpha^\beta \tfrac12 f(\theta)^2\,d\theta (Module 9), and A,A\mathclose{\text{,}} caught between them for every n,n\mathclose{\text{,}} is that integral.

∎
Example 16.8The area of a cardioid and of a petal✓ Checked

Find (a) the area inside the cardioid r=1+cos⁡θ,r = 1 + \cos\theta\mathclose{\text{,}} and (b) the area of one petal of the rose r=cos⁡3θ.r = \cos 3\theta\mathclose{\text{.}}

Both need the integral of a squared cosine. The addition formula for cos⁡(u+u)\cos(u + u) gives cos⁡2u=cos⁡2u−sin⁡2u=2cos⁡2u−1,\cos 2u = \cos^2 u - \sin^2 u = 2\cos^2 u - 1\mathclose{\text{,}} so

cos⁡2u=1+cos⁡2u2.\cos^2 u = \frac{1 + \cos 2u}{2}.

(a) The cardioid is traced once as θ\theta runs from 0 to 2π,2\pi\mathclose{\text{,}} with r≥0.r \ge 0\mathclose{\text{.}} Expand the square and replace cos⁡2θ:\cos^2\theta\mathclose{\text{:}}

A=12∫02π(1+cos⁡θ)2 dθ=12∫02π(1+2cos⁡θ+cos⁡2θ) dθ=12∫02π(32+2cos⁡θ+12cos⁡2θ) dθ=12[3θ2+2sin⁡θ+14sin⁡2θ]02π=12⋅3π=3π2.\begin{aligned} A &= \frac12\int_0^{2\pi} (1 + \cos\theta)^2\,d\theta = \frac12\int_0^{2\pi} \big(1 + 2\cos\theta + \cos^2\theta\big)\,d\theta \\ &= \frac12\int_0^{2\pi} \Big(\frac32 + 2\cos\theta + \frac12\cos 2\theta\Big)\,d\theta \\ &= \frac12\Big[\frac{3\theta}{2} + 2\sin\theta + \frac14\sin 2\theta\Big]_0^{2\pi} \\ &= \frac12\cdot 3\pi = \frac{3\pi}{2}. \end{aligned}

The cardioid encloses 3π/2≈4.712,3\pi/2 \approx 4.712\mathclose{\text{,}} one and a half times the area of the unit circle.

(b) One petal is traced as θ\theta runs from −π/6-\pi/6 to π/6,\pi/6\mathclose{\text{,}} where r=cos⁡3θ≥0.r = \cos 3\theta \ge 0\mathclose{\text{.}} With u=3θu = 3\theta in the formula for cos⁡2u:\cos^2 u\mathclose{\text{:}}

A=12∫−π/6π/6cos⁡23θ dθ=12∫−π/6π/61+cos⁡6θ2 dθ=14[θ+sin⁡6θ6]−π/6π/6=14⋅π3=π12,\begin{aligned} A &= \frac12\int_{-\pi/6}^{\pi/6} \cos^2 3\theta\,d\theta = \frac12\int_{-\pi/6}^{\pi/6} \frac{1 + \cos 6\theta}{2}\,d\theta \\ &= \frac14\Big[\theta + \frac{\sin 6\theta}{6}\Big]_{-\pi/6}^{\pi/6} \\ &= \frac14\cdot\frac{\pi}{3} = \frac{\pi}{12}, \end{aligned}

since sin⁡6θ=sin⁡(±π)=0\sin 6\theta = \sin(\pm\pi) = 0 at both limits. One petal has area π/12≈0.2618,\pi/12 \approx 0.2618\mathclose{\text{,}} and the three petals together 3⋅π/12=π/4.3\cdot\pi/12 = \pi/4\mathclose{\text{.}}

Watch out

Choose limits that trace the region exactly once. 12∫02πcos⁡23θ dθ=π/2,\tfrac12\int_0^{2\pi} \cos^2 3\theta\,d\theta = \pi/2\mathclose{\text{,}} twice the area of the rose, because the rose is traced twice as θ\theta runs from 0 to 2π.2\pi\mathclose{\text{.}} For the region between two polar curves, suppose that ff and gg are continuous, 0≤g(θ)≤f(θ)0 \le g(\theta) \le f(\theta) on [α,β],[\alpha, \beta]\mathclose{\text{,}} and 0<β−α≤2π.0 < \beta - \alpha \le 2\pi\mathclose{\text{.}} Subtract the inner sectors from the outer ones: the area is 12∫αβ(f(θ)2−g(θ)2) dθ,\tfrac12\int_\alpha^\beta \big(f(\theta)^2 - g(\theta)^2\big)\,d\theta\mathclose{\text{,}} not 12∫αβ(f(θ)−g(θ))2 dθ.\tfrac12\int_\alpha^\beta \big(f(\theta) - g(\theta)\big)^2\,d\theta\mathclose{\text{.}} Negative radii point along the opposite ray, so translate them into nonnegative radii before using this rule.

Compute itCurves with SymPy

SymPy finds slopes and the points where they are 0 or undefined. For the curve of Example 16.3:

Python
import sympy as sp
t = sp.symbols('t')
x, y = t**2, t**3 - 3*t
slope = sp.diff(y, t)/sp.diff(x, t)
print(slope)
print(sp.solve(sp.diff(y, t), t), sp.solve(sp.diff(x, t), t))
print([slope.subs(t, v) for v in (sp.sqrt(3), -sp.sqrt(3))])
Output
(3*t**2 - 3)/(2*t)
[-1, 1] [0]
[sqrt(3), -sqrt(3)]

The first list gives the horizontal tangents (t=±1),t = \pm1\mathclose{\text{),}} the second the vertical one (t=0),t = 0\mathclose{\text{),}} and the last line the two slopes at the crossing point (3,0).(3, 0)\mathclose{\text{.}} Arc lengths are harder. Asked for the length of a cycloid arch, SymPy simplifies the speed but cannot integrate it:

Python
r = sp.symbols('r', positive=True)
X, Y = r*(t - sp.sin(t)), r*(1 - sp.cos(t))
speed = sp.sqrt(sp.diff(X, t)**2 + sp.diff(Y, t)**2)
print(sp.simplify(speed))
print(sp.integrate(speed, (t, 0, 2*sp.pi)))
Output
r*sqrt(2 - 2*cos(t))
r*Integral(sqrt(sin(t)**2 + cos(t)**2 - 2*cos(t) + 1), (t, 0, 2*pi))

SymPy returns the integral unevaluated: it did not see that 2−2cos⁡t=4sin⁡2t2,2 - 2\cos t = 4\sin^2\tfrac{t}{2}\mathclose{\text{,}} nor that the square root of that is 2sin⁡t22\sin\tfrac{t}{2} for 0≤t≤2π.0 \le t \le 2\pi\mathclose{\text{.}} Give it the simplified integrand of Example 16.5, and it finds the length. Many lengths have no formula in elementary functions: the perimeter of the ellipse of Example 16.1(b) is an elliptic integral, whose integrand has no elementary antiderivative, so it is computed numerically:

Python
print(sp.integrate(2*r*sp.sin(t/2), (t, 0, 2*sp.pi)))
ellipse = sp.Integral(sp.sqrt(9*sp.sin(t)**2 + 4*sp.cos(t)**2), (t, 0, 2*sp.pi))
print(ellipse.evalf(10))
Output
8*r
15.86543959

Polar areas are ordinary integrals in θ;\theta\mathclose{\text{;}} here are the cardioid and the petal of Example 16.8:

Python
th = sp.symbols('theta')
print(sp.integrate((1 + sp.cos(th))**2/2, (th, 0, 2*sp.pi)))
print(sp.integrate(sp.cos(3*th)**2/2, (th, -sp.pi/6, sp.pi/6)))
Output
3*pi/2
pi/12
4

Vectors

Calculus in several variables needs a language for quantities that have a direction as well as a size: a displacement, a velocity, a force, and in Module 17 the gradient. That language is vectors, and it works the same way in the plane and in space. First, space itself.

Points in space

To locate a point in space, take three number lines through one point O,O\mathclose{\text{,}} the origin, each perpendicular to the other two: the xx-, yy- and zz-axes. Think of a corner of a room, with the xx- and yy-axes along the edges of the floor and the zz-axis up the vertical edge. The axes are arranged by the right-hand rule: when the fingers of your right hand curl from the positive xx-axis towards the positive yy-axis, your thumb points along the positive zz-axis. A point PP has coordinates (a,b,c)(a, b, c) if you reach it from OO by moving aa along the xx-axis, then bb parallel to the yy-axis, then cc parallel to the zz-axis (Figure 16.4, left). The plane z=0z = 0 is the xyxy-plane (the floor); x=0x = 0 and y=0y = 0 are the yzyz- and xzxz-planes.

The distance between P1(x1,y1,z1)P_1(x_1, y_1, z_1) and P2(x2,y2,z2)P_2(x_2, y_2, z_2) is

∣P1P2∣=(x2−x1)2+(y2−y1)2+(z2−z1)2.\abs{P_1P_2} = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}.

This is Pythagoras’ theorem twice: the point Q(x2,y2,z1),Q(x_2, y_2, z_1)\mathclose{\text{,}} level with P1P_1 and directly above or below P2,P_2\mathclose{\text{,}} has ∣P1Q∣2=(x2−x1)2+(y2−y1)2,\abs{P_1Q}^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2\mathclose{\text{,}} and the triangle P1QP2P_1QP_2 has a right angle at Q,Q\mathclose{\text{,}} so ∣P1P2∣2=∣P1Q∣2+(z2−z1)2.\abs{P_1P_2}^2 = \abs{P_1Q}^2 + (z_2 - z_1)^2\mathclose{\text{.}} For example, the distance from (1,2,−1)(1, 2, -1) to (3,−1,5)(3, -1, 5) is 4+9+36=49=7.\sqrt{4 + 9 + 36} = \sqrt{49} = 7\mathclose{\text{.}} The points at distance RR from a point (a,b,c)(a, b, c) form the sphere (x−a)2+(y−b)2+(z−c)2=R2.(x - a)^2 + (y - b)^2 + (z - c)^2 = R^2\mathclose{\text{.}}

Vectors and their components

Definition 16.3Vector

A vector is a quantity with a length and a direction. It is drawn as an arrow; arrows with the same length and the same direction represent the same vector, wherever they start. The vector from A(x1,y1,z1)A(x_1, y_1, z_1) to B(x2,y2,z2)B(x_2, y_2, z_2) is

AB→=⟨x2−x1, y2−y1, z2−z1⟩,\overrightarrow{AB} = \langle x_2 - x_1,\ y_2 - y_1,\ z_2 - z_1\rangle,

and these three numbers are its components. The length (or magnitude) of a=⟨a1,a2,a3⟩\vb{a} = \langle a_1, a_2, a_3\rangle is

∥a∥=a12+a22+a32.\norm{\vb{a}} = \sqrt{a_1^2 + a_2^2 + a_3^2}.

Vectors in the plane have two components, a=⟨a1,a2⟩,\vb{a} = \langle a_1, a_2\rangle\mathclose{\text{,}} and ∥a∥=a12+a22.\norm{\vb{a}} = \sqrt{a_1^2 + a_2^2}\mathclose{\text{.}}

Vectors are printed in bold, a,\vb{a}\mathclose{\text{,}} and handwritten with an arrow, a⃗.\vec a\mathclose{\text{.}} The angle brackets keep the vector ⟨a1,a2,a3⟩\langle a_1, a_2, a_3\rangle apart from the point (a1,a2,a3);(a_1, a_2, a_3)\mathclose{\text{;}} the arrow from OO to that point, which represents the vector, is the point’s position vector. ∥a∥\norm{\vb{a}} reads “the length of a” (also called its norm). By the distance formula, the length of AB→\overrightarrow{AB} is the distance from AA to B.B\mathclose{\text{.}} The zero vector 0=⟨0,0,0⟩\vb{0} = \langle 0, 0, 0\rangle has length 0 and no direction, and ordinary numbers are called scalars.

Adding and scaling

Walk along the arrow a\vb{a} and then along b,\vb{b}\mathclose{\text{,}} drawn from where a\vb{a} ends: the arrow from your start to your finish is the sum a+b\vb{a} + \vb{b} (Figure 16.4, middle). Walking along b\vb{b} first and then along a\vb{a} gets you to the same place: the two routes are the sides of a parallelogram, and a+b\vb{a} + \vb{b} is its diagonal. A scalar multiple c ac\,\vb{a} is a\vb{a} stretched by the factor ∣c∣,\abs{c}\mathclose{\text{,}} and reversed if c<0c < 0 (Figure 16.4, right). In components, both act one component at a time:

a+b=⟨a1+b1, a2+b2, a3+b3⟩,c a=⟨ca1, ca2, ca3⟩.\begin{aligned} \vb{a} + \vb{b} &= \langle a_1 + b_1,\ a_2 + b_2,\ a_3 + b_3\rangle, \\ c\,\vb{a} &= \langle c a_1,\ c a_2,\ c a_3\rangle. \end{aligned}

The length of c ac\,\vb{a} is c2a12+c2a22+c2a32=∣c∣ ∥a∥.\sqrt{c^2a_1^2 + c^2a_2^2 + c^2a_3^2} = \abs{c}\,\norm{\vb{a}}\mathclose{\text{.}} The difference is a−b=a+(−1)b;\vb{a} - \vb{b} = \vb{a} + (-1)\vb{b}\mathclose{\text{;}} when a\vb{a} and b\vb{b} start at the same point, a−b\vb{a} - \vb{b} is the arrow from the tip of b\vb{b} to the tip of a.\vb{a}\mathclose{\text{.}} Two nonzero vectors are parallel if one is a scalar multiple of the other. Because everything works component by component, the rules of ordinary algebra hold, such as a+b=b+a,\vb{a} + \vb{b} = \vb{b} + \vb{a}\mathclose{\text{,}} (a+b)+c=a+(b+c),(\vb{a} + \vb{b}) + \vb{c} = \vb{a} + (\vb{b} + \vb{c})\mathclose{\text{,}} c(a+b)=ca+cbc(\vb{a} + \vb{b}) = c\vb{a} + c\vb{b} and (c+d)a=ca+da.(c + d)\vb{a} = c\vb{a} + d\vb{a}\mathclose{\text{.}}

Left: the point P(2, 4, 3), reached from the origin by moving 2 along the x-axis, 4 parallel to the y-axis and 3 up, with its position vector langle 2, 4, 3rangle and the unit vectors vb{i}, vb{j}, vb{k}. Middle: vb{a} = langle 3, 1rangle and vb{b} = langle 1, 2rangle add to vb{a} + vb{b} = langle 4, 3rangle, the diagonal of their parallelogram, whichever is drawn first. Right: multiples of vb{v} = langle 2, 1rangle.
Figure 16.4

Left: the point P(2,4,3),P(2, 4, 3)\mathclose{\text{,}} reached from the origin by moving 2 along the xx-axis, 4 parallel to the yy-axis and 3 up, with its position vector ⟨2,4,3⟩\langle 2, 4, 3\rangle and the unit vectors i,\vb{i}\mathclose{\text{,}} j,\vb{j}\mathclose{\text{,}} k.\vb{k}\mathclose{\text{.}} Middle: a=⟨3,1⟩\vb{a} = \langle 3, 1\rangle and b=⟨1,2⟩\vb{b} = \langle 1, 2\rangle add to a+b=⟨4,3⟩,\vb{a} + \vb{b} = \langle 4, 3\rangle\mathclose{\text{,}} the diagonal of their parallelogram, whichever is drawn first. Right: multiples of v=⟨2,1⟩.\vb{v} = \langle 2, 1\rangle\mathclose{\text{.}}

A unit vector has length 1. The standard unit vectors

i=⟨1,0,0⟩,j=⟨0,1,0⟩,k=⟨0,0,1⟩\vb{i} = \langle 1, 0, 0\rangle, \qquad \vb{j} = \langle 0, 1, 0\rangle, \qquad \vb{k} = \langle 0, 0, 1\rangle

point along the axes, and every vector is made of them: ⟨a1,a2,a3⟩=a1i+a2j+a3k.\langle a_1, a_2, a_3\rangle = a_1\vb{i} + a_2\vb{j} + a_3\vb{k}\mathclose{\text{.}} (In the plane, i=⟨1,0⟩\vb{i} = \langle 1, 0\rangle and j=⟨0,1⟩.)\vb{j} = \langle 0, 1\rangle\mathclose{\text{.)}} For a vector a≠0,\vb{a} \ne \vb{0}\mathclose{\text{,}} the unit vector in the same direction is

u=a∥a∥,\vb{u} = \frac{\vb{a}}{\norm{\vb{a}}},

since its length is ∥a∥/∥a∥=1.\norm{\vb{a}}/\norm{\vb{a}} = 1\mathclose{\text{.}} Dividing a vector by its length is called normalising it.

Example 16.9Vector arithmetic✓ Checked

Let a=⟨2,−1,2⟩\vb{a} = \langle 2, -1, 2\rangle and b=⟨1,3,0⟩.\vb{b} = \langle 1, 3, 0\rangle\mathclose{\text{.}} Find a+b,\vb{a} + \vb{b}\mathclose{\text{,}} 2a−3b,2\vb{a} - 3\vb{b}\mathclose{\text{,}} ∥a∥,\norm{\vb{a}}\mathclose{\text{,}} ∥b∥,\norm{\vb{b}}\mathclose{\text{,}} and the unit vector in the direction of a.\vb{a}\mathclose{\text{.}} Write a\vb{a} with i,\vb{i}\mathclose{\text{,}} j\vb{j} and k.\vb{k}\mathclose{\text{.}}

Work component by component:

a+b=⟨2+1, −1+3, 2+0⟩=⟨3,2,2⟩,2a−3b=⟨4−3, −2−9, 4−0⟩=⟨1,−11,4⟩.\begin{aligned} \vb{a} + \vb{b} &= \langle 2 + 1,\ -1 + 3,\ 2 + 0\rangle = \langle 3, 2, 2\rangle, \\ 2\vb{a} - 3\vb{b} &= \langle 4 - 3,\ -2 - 9,\ 4 - 0\rangle = \langle 1, -11, 4\rangle. \end{aligned}

The lengths are ∥a∥=4+1+4=3\norm{\vb{a}} = \sqrt{4 + 1 + 4} = 3 and ∥b∥=1+9+0=10.\norm{\vb{b}} = \sqrt{1 + 9 + 0} = \sqrt{10}\mathclose{\text{.}} The unit vector in the direction of a\vb{a} is 13a=⟨23,−13,23⟩;\tfrac13\vb{a} = \big\langle \tfrac23, -\tfrac13, \tfrac23\big\rangle\mathclose{\text{;}} check: 49+19+49=1.\tfrac49 + \tfrac19 + \tfrac49 = 1\mathclose{\text{.}} Finally, a=2i−j+2k.\vb{a} = 2\vb{i} - \vb{j} + 2\vb{k}\mathclose{\text{.}}

These two vectors return in Sections 16.5 and 16.6.

In applications, a displacement is the vector from where something starts to where it ends; a nonzero velocity has the direction of motion and the speed as its length; and a nonzero force has the direction of its push or pull and its strength (in newtons, N) as its length. Forces acting on one object add as vectors, and on an object that remains at rest they add to 0.\vb{0}\mathclose{\text{.}} Being momentarily at rest is not enough: a ball at the top of a vertical throw still has gravity acting on it.

Example 16.10Velocities and forces✓ Checked

(a) A boat heads due north across a river at 4 m/s relative to the water, while the current carries the water due east at 3 m/s. Find the boat’s velocity relative to the ground, and its speed. (b) A weight of 100 N hangs at rest from two ropes, which make angles of 30∘30^\circ and 60∘60^\circ with the horizontal, one on each side. Find the tension in each rope. (The numbers in both parts are made up.)

(a) Take xx east and yy north. Relative to the water the boat moves with velocity ⟨0,4⟩,\langle 0, 4\rangle\mathclose{\text{,}} and the water moves with velocity ⟨3,0⟩,\langle 3, 0\rangle\mathclose{\text{,}} so relative to the ground the boat moves with

⟨0,4⟩+⟨3,0⟩=⟨3,4⟩,\langle 0, 4\rangle + \langle 3, 0\rangle = \langle 3, 4\rangle,

at speed 9+16=5\sqrt{9 + 16} = 5 m/s, in a direction east of north by the angle arctan⁡34≈36.87∘.\arctan\tfrac34 \approx 36.87^\circ\mathclose{\text{.}}

(b) Let the ropes pull with tensions T1T_1 (the 30∘30^\circ rope, on the left) and T2T_2 (the 60∘60^\circ rope, on the right), as vectors T1⟨−cos⁡30∘,sin⁡30∘⟩T_1\langle -\cos 30^\circ, \sin 30^\circ\rangle and T2⟨cos⁡60∘,sin⁡60∘⟩.T_2\langle \cos 60^\circ, \sin 60^\circ\rangle\mathclose{\text{.}} The weight is ⟨0,−100⟩.\langle 0, -100\rangle\mathclose{\text{.}} At rest the three forces add to 0;\vb{0}\mathclose{\text{;}} comparing components,

−32T1+12T2=0,12T1+32T2−100=0.-\frac{\sqrt3}{2}T_1 + \frac12 T_2 = 0, \qquad \frac12 T_1 + \frac{\sqrt3}{2}T_2 - 100 = 0.

The first equation gives T2=3 T1;T_2 = \sqrt3\,T_1\mathclose{\text{;}} then the second becomes 12T1+32T1=100,\tfrac12 T_1 + \tfrac32 T_1 = 100\mathclose{\text{,}} so T1=50T_1 = 50 N and T2=503≈86.60T_2 = 50\sqrt3 \approx 86.60 N. The steeper rope carries more of the weight. The two tensions add up to more than 100 N, because their horizontal pulls cancel each other and do nothing to hold up the weight.

Watch out

Lengths do not in general add: ∥a+b∥\norm{\vb{a} + \vb{b}} need not equal ∥a∥+∥b∥.\norm{\vb{a}} + \norm{\vb{b}}\mathclose{\text{.}} In Example 16.10(a) the speeds 4 and 3 m/s combine to 5 m/s, not 7. The sides of the triangle in Figure 16.4 (middle) show the triangle inequality, ∥a+b∥≤∥a∥+∥b∥,\norm{\vb{a} + \vb{b}} \le \norm{\vb{a}} + \norm{\vb{b}}\mathclose{\text{,}} with equality when either vector is zero or when both are nonzero and point the same way (Exercise 16.11 proves it).

5

The dot product

Pull a sled along level ground with a rope at an angle θ\theta to the ground. Only the part of the pull along the ground, ∥F∥cos⁡θ,\norm{\vb{F}}\cos\theta\mathclose{\text{,}} moves the sled forward. So physics defines the work done by a constant force F\vb{F} along a straight displacement D\vb{D} as that part of the force times the distance moved:

W=∥F∥ ∥D∥cos⁡θ.W = \norm{\vb{F}}\,\norm{\vb{D}}\cos\theta.

Such products of two lengths and the cosine of the angle between them have a simple formula in components.

Definition 16.4Dot product

The dot product of a=⟨a1,a2,a3⟩\vb{a} = \langle a_1, a_2, a_3\rangle and b=⟨b1,b2,b3⟩\vb{b} = \langle b_1, b_2, b_3\rangle is the number

a⋅b=a1b1+a2b2+a3b3,\vb{a}\cdot\vb{b} = a_1b_1 + a_2b_2 + a_3b_3,

read “a dot b”. In the plane, a⋅b=a1b1+a2b2.\vb{a}\cdot\vb{b} = a_1b_1 + a_2b_2\mathclose{\text{.}}

The dot product of two vectors is a scalar, not a vector; it is also called the scalar product. From the definition, for all vectors a,\vb{a}\mathclose{\text{,}} b,\vb{b}\mathclose{\text{,}} c\vb{c} and scalars k:k\mathclose{\text{:}}

a⋅a=∥a∥2,a⋅b=b⋅a,a⋅(b+c)=a⋅b+a⋅c,(ka)⋅b=k(a⋅b)=a⋅(kb).\begin{aligned} \vb{a}\cdot\vb{a} &= \norm{\vb{a}}^2, \qquad \vb{a}\cdot\vb{b} = \vb{b}\cdot\vb{a}, \\ \vb{a}\cdot(\vb{b} + \vb{c}) &= \vb{a}\cdot\vb{b} + \vb{a}\cdot\vb{c}, \\ (k\vb{a})\cdot\vb{b} &= k(\vb{a}\cdot\vb{b}) = \vb{a}\cdot(k\vb{b}). \end{aligned}

For example, with a=⟨2,−1,2⟩\vb{a} = \langle 2, -1, 2\rangle and b=⟨1,3,0⟩\vb{b} = \langle 1, 3, 0\rangle from Example 16.9, a⋅b=2−3+0=−1\vb{a}\cdot\vb{b} = 2 - 3 + 0 = -1 and a⋅a=4+1+4=9=∥a∥2.\vb{a}\cdot\vb{a} = 4 + 1 + 4 = 9 = \norm{\vb{a}}^2\mathclose{\text{.}}

Theorem 16.4The dot product and the angle

If θ\theta is the angle between the nonzero vectors a\vb{a} and b,\vb{b}\mathclose{\text{,}} drawn from the same point (0≤θ≤π),0 \le \theta \le \pi\mathclose{\text{),}} then

a⋅b=∥a∥ ∥b∥cos⁡θ.\vb{a}\cdot\vb{b} = \norm{\vb{a}}\,\norm{\vb{b}}\cos\theta.
Proof

The proof uses the law of cosines: in a triangle with sides p,p\mathclose{\text{,}} qq and s,s\mathclose{\text{,}} where γ\gamma is the angle between the sides pp and q,q\mathclose{\text{,}}

s2=p2+q2−2pqcos⁡γ.s^2 = p^2 + q^2 - 2pq\cos\gamma.

To prove it, put the corner at γ\gamma at the origin and the side pp along the positive xx-axis, ending at (p,0).(p, 0)\mathclose{\text{.}} By the definition of sine and cosine the side qq ends at (qcos⁡γ,qsin⁡γ),(q\cos\gamma, q\sin\gamma)\mathclose{\text{,}} and the distance formula gives

s2=(qcos⁡γ−p)2+q2sin⁡2γ=q2(cos⁡2γ+sin⁡2γ)−2pqcos⁡γ+p2=p2+q2−2pqcos⁡γ.\begin{aligned} s^2 &= (q\cos\gamma - p)^2 + q^2\sin^2\gamma \\ &= q^2\big(\cos^2\gamma + \sin^2\gamma\big) - 2pq\cos\gamma + p^2 \\ &= p^2 + q^2 - 2pq\cos\gamma. \end{aligned}

If a\vb{a} and b\vb{b} are not parallel, they are two sides of a triangle whose third side is a−b,\vb{a} - \vb{b}\mathclose{\text{,}} from the tip of b\vb{b} to the tip of a,\vb{a}\mathclose{\text{,}} and the angle between a\vb{a} and b\vb{b} is θ.\theta\mathclose{\text{.}} The law of cosines gives

∥a−b∥2=∥a∥2+∥b∥2−2∥a∥ ∥b∥cos⁡θ.\norm{\vb{a} - \vb{b}}^2 = \norm{\vb{a}}^2 + \norm{\vb{b}}^2 - 2\norm{\vb{a}}\,\norm{\vb{b}}\cos\theta.

The rules of the dot product give the same left side another way:

∥a−b∥2=(a−b)⋅(a−b)=a⋅a−2 a⋅b+b⋅b=∥a∥2−2 a⋅b+∥b∥2.\begin{aligned} \norm{\vb{a} - \vb{b}}^2 &= (\vb{a} - \vb{b})\cdot(\vb{a} - \vb{b}) \\ &= \vb{a}\cdot\vb{a} - 2\,\vb{a}\cdot\vb{b} + \vb{b}\cdot\vb{b} \\ &= \norm{\vb{a}}^2 - 2\,\vb{a}\cdot\vb{b} + \norm{\vb{b}}^2. \end{aligned}

Comparing the two, a⋅b=∥a∥ ∥b∥cos⁡θ.\vb{a}\cdot\vb{b} = \norm{\vb{a}}\,\norm{\vb{b}}\cos\theta\mathclose{\text{.}} If a\vb{a} and b\vb{b} are parallel, b=ka\vb{b} = k\vb{a} with k≠0;k \ne 0\mathclose{\text{;}} then a⋅b=k∥a∥2,\vb{a}\cdot\vb{b} = k\norm{\vb{a}}^2\mathclose{\text{,}} while θ=0\theta = 0 (if k>0)k > 0\mathclose{\text{)}} or π\pi (if k<0),k < 0\mathclose{\text{),}} and ∥a∥ ∥b∥cos⁡θ=∣k∣ ∥a∥2⋅(±1)=k∥a∥2\norm{\vb{a}}\,\norm{\vb{b}}\cos\theta = \abs{k}\,\norm{\vb{a}}^2\cdot(\pm1) = k\norm{\vb{a}}^2 as well.

∎

So the dot product measures how far two vectors point the same way. Solving for the angle,

cos⁡θ=a⋅b∥a∥ ∥b∥.\cos\theta = \frac{\vb{a}\cdot\vb{b}}{\norm{\vb{a}}\,\norm{\vb{b}}}.

For nonzero vectors, the sign of a⋅b\vb{a}\cdot\vb{b} is the sign of cos⁡θ:\cos\theta\mathclose{\text{:}} positive for 0≤θ<π/2,0 \le \theta < \pi/2\mathclose{\text{,}} negative for π/2<θ≤π,\pi/2 < \theta \le \pi\mathclose{\text{,}} and 0 at a right angle. Two vectors are orthogonal (perpendicular) if a⋅b=0;\vb{a}\cdot\vb{b} = 0\mathclose{\text{;}} the zero vector counts as orthogonal to every vector, although it has no direction or angle. For the vectors of Example 16.9, cos⁡θ=−1310≈−0.1054,\cos\theta = \dfrac{-1}{3\sqrt{10}} \approx -0.1054\mathclose{\text{,}} so θ≈96.05∘,\theta \approx 96.05^\circ\mathclose{\text{,}} a little more than a right angle.

Angles and orthogonality

Example 16.11The angle in a methane molecule✓ Checked

In a molecule of methane, CH₄, the carbon atom sits at the centre of a regular tetrahedron and the four hydrogen atoms at its corners. Put the carbon at the origin and the hydrogens at (1,1,1),(1, 1, 1)\mathclose{\text{,}} (1,−1,−1),(1, -1, -1)\mathclose{\text{,}} (−1,1,−1)(-1, 1, -1) and (−1,−1,1),(-1, -1, 1)\mathclose{\text{,}} four corners of a cube, no two of them joined by an edge of the cube. Find the angle between two of the bonds.

The bonds from the carbon to the first two hydrogens are a=⟨1,1,1⟩\vb{a} = \langle 1, 1, 1\rangle and b=⟨1,−1,−1⟩.\vb{b} = \langle 1, -1, -1\rangle\mathclose{\text{.}} Then a⋅b=1−1−1=−1\vb{a}\cdot\vb{b} = 1 - 1 - 1 = -1 and ∥a∥=∥b∥=3,\norm{\vb{a}} = \norm{\vb{b}} = \sqrt3\mathclose{\text{,}} so

cos⁡θ=−13⋅3=−13,θ=arccos⁡(−13)≈1.9106≈109.47∘.\cos\theta = \frac{-1}{\sqrt3\cdot\sqrt3} = -\frac13, \qquad \theta = \arccos\Big(-\frac13\Big) \approx 1.9106 \approx 109.47^\circ.

Every pair of the four bond vectors has dot product −1,-1\mathclose{\text{,}} so every angle between two bonds is the same: this is the tetrahedral angle, about 109.5∘,109.5^\circ\mathclose{\text{,}} the angle between the bonds of a methane molecule.

The formula cos⁡θ=a⋅b∥a∥ ∥b∥\cos\theta = \dfrac{\vb{a}\cdot\vb{b}}{\norm{\vb{a}}\,\norm{\vb{b}}} makes sense for nonzero vectors with any number of components. One application represents words and documents by vectors and compares their directions: the cosine of the angle between them is their cosine similarity. Its usefulness as a measure of similarity depends on how the vectors were chosen. (Exercise 16.11 shows that the fraction always lies between −1-1 and 1, so that the angle exists.) It is undefined if either vector is zero.

Projections

Drop a perpendicular from the tip of b\vb{b} to the line of a\vb{a} (Figure 16.5, left). It cuts off the shadow of b\vb{b} on that line, the part of b\vb{b} that points along a.\vb{a}\mathclose{\text{.}} Its signed length, ∥b∥cos⁡θ,\norm{\vb{b}}\cos\theta\mathclose{\text{,}} is the scalar projection of b\vb{b} onto a,\vb{a}\mathclose{\text{,}} and the shadow itself is the vector projection. By Theorem 16.4, for a≠0,\vb{a} \ne \vb{0}\mathclose{\text{,}}

comp⁡ab=∥b∥cos⁡θ=a⋅b∥a∥,proj⁡ab=a⋅b∥a∥⋅a∥a∥=a⋅ba⋅a a,\begin{aligned} \operatorname{comp}_{\vb{a}}\vb{b} &= \norm{\vb{b}}\cos\theta = \frac{\vb{a}\cdot\vb{b}}{\norm{\vb{a}}}, \\ \operatorname{proj}_{\vb{a}}\vb{b} &= \frac{\vb{a}\cdot\vb{b}}{\norm{\vb{a}}}\cdot\frac{\vb{a}}{\norm{\vb{a}}} = \frac{\vb{a}\cdot\vb{b}}{\vb{a}\cdot\vb{a}}\,\vb{a}, \end{aligned}

read “the component of b along a” and “the projection of b onto a”. The angle form assumes b≠0\vb{b} \ne \vb{0} too; the dot-product formulas also define the projection of 0,\vb{0}\mathclose{\text{,}} giving scalar projection 0 and vector projection 0.\vb{0}\mathclose{\text{.}} The rest of b\vb{b} is orthogonal to a:\vb{a}\mathclose{\text{:}}

a⋅(b−proj⁡ab)=a⋅b−a⋅ba⋅a (a⋅a)=0.\vb{a}\cdot\big(\vb{b} - \operatorname{proj}_{\vb{a}}\vb{b}\big) = \vb{a}\cdot\vb{b} - \frac{\vb{a}\cdot\vb{b}}{\vb{a}\cdot\vb{a}}\,(\vb{a}\cdot\vb{a}) = 0.

So every vector b\vb{b} splits into a part along a\vb{a} and a part perpendicular to it, b=proj⁡ab+(b−proj⁡ab);\vb{b} = \operatorname{proj}_{\vb{a}}\vb{b} + \big(\vb{b} - \operatorname{proj}_{\vb{a}}\vb{b}\big)\mathclose{\text{;}} engineers split the weight of a box on a ramp this way, into a part along the ramp and a part pressing into it.

Example 16.12A projection✓ Checked

Find the scalar and vector projections of b=⟨3,4⟩\vb{b} = \langle 3, 4\rangle onto a=⟨2,1⟩,\vb{a} = \langle 2, 1\rangle\mathclose{\text{,}} and split b\vb{b} into a part along a\vb{a} and a part perpendicular to it.

a⋅b=6+4=10\vb{a}\cdot\vb{b} = 6 + 4 = 10 and a⋅a=5,\vb{a}\cdot\vb{a} = 5\mathclose{\text{,}} so

comp⁡ab=105=25≈4.472,proj⁡ab=105 a=⟨4,2⟩.\begin{aligned} \operatorname{comp}_{\vb{a}}\vb{b} &= \frac{10}{\sqrt5} = 2\sqrt5 \approx 4.472, \\ \operatorname{proj}_{\vb{a}}\vb{b} &= \frac{10}{5}\,\vb{a} = \langle 4, 2\rangle. \end{aligned}

The perpendicular part is b−⟨4,2⟩=⟨−1,2⟩;\vb{b} - \langle 4, 2\rangle = \langle -1, 2\rangle\mathclose{\text{;}} check: ⟨−1,2⟩⋅⟨2,1⟩=−2+2=0.\langle -1, 2\rangle\cdot\langle 2, 1\rangle = -2 + 2 = 0\mathclose{\text{.}} So ⟨3,4⟩=⟨4,2⟩+⟨−1,2⟩\langle 3, 4\rangle = \langle 4, 2\rangle + \langle -1, 2\rangle (Figure 16.5, left). The angle between a\vb{a} and b\vb{b} has cos⁡θ=10/(5⋅5)=2/5,\cos\theta = 10/(\sqrt5\cdot5) = 2/\sqrt5\mathclose{\text{,}} about 26.57∘.26.57^\circ\mathclose{\text{.}}

Watch out

The vector projection divides by a⋅a=∥a∥2,\vb{a}\cdot\vb{a} = \norm{\vb{a}}^2\mathclose{\text{,}} not by ∥a∥:\norm{\vb{a}}\mathclose{\text{:}} one factor ∥a∥\norm{\vb{a}} turns a⋅b\vb{a}\cdot\vb{b} into a length, and the other turns a\vb{a} into a unit vector. In Example 16.12, a⋅b∥a∥ a=25 ⟨2,1⟩\dfrac{\vb{a}\cdot\vb{b}}{\norm{\vb{a}}}\,\vb{a} = 2\sqrt5\,\langle 2, 1\rangle is 5\sqrt5 times too long. And the order matters: proj⁡ba=1025⟨3,4⟩=⟨65,85⟩\operatorname{proj}_{\vb{b}}\vb{a} = \tfrac{10}{25}\langle 3, 4\rangle = \big\langle \tfrac65, \tfrac85\big\rangle lies along b,\vb{b}\mathclose{\text{,}} not along a.\vb{a}\mathclose{\text{.}}

Work

With the dot product, the work done by a constant force F\vb{F} along a straight displacement D\vb{D} is

W=F⋅D=∥F∥ ∥D∥cos⁡θ.W = \vb{F}\cdot\vb{D} = \norm{\vb{F}}\,\norm{\vb{D}}\cos\theta.

The angle form assumes that both vectors are nonzero; if either is zero, the dot-product form gives W=0.W = 0\mathclose{\text{.}} With F\vb{F} in newtons and D\vb{D} in metres, WW is in joules (J). A force at right angles to the motion does no work, and a force against it does negative work. Module 12 computes the work of a force that varies along a straight line, W=∫abF(x) dx;W = \int_a^b F(x)\,dx\mathclose{\text{;}} Module 20 combines the two ideas, for a varying force along a curved path.

Example 16.13Pulling a sled✓ Checked

(a) A sled is pulled 50 m along level ground by a rope at 30∘30^\circ above the horizontal, with a constant tension of 40 N. How much work does the rope do? (b) A constant force F=⟨3,4,5⟩\vb{F} = \langle 3, 4, 5\rangle N moves an object in a straight line from (2,1,0)(2, 1, 0) to (4,6,2),(4, 6, 2)\mathclose{\text{,}} in metres. How much work does it do?

(a) W=∥F∥ ∥D∥cos⁡θ=40⋅50⋅cos⁡30∘=2000⋅32=10003≈1732W = \norm{\vb{F}}\,\norm{\vb{D}}\cos\theta = 40\cdot 50\cdot\cos 30^\circ = 2000\cdot\tfrac{\sqrt3}{2} = 1000\sqrt3 \approx 1732 J. In components, F=⟨40cos⁡30∘,40sin⁡30∘⟩=⟨203,20⟩\vb{F} = \langle 40\cos 30^\circ, 40\sin 30^\circ\rangle = \big\langle 20\sqrt3, 20\big\rangle and D=⟨50,0⟩,\vb{D} = \langle 50, 0\rangle\mathclose{\text{,}} and F⋅D=10003\vb{F}\cdot\vb{D} = 1000\sqrt3 again: the upward part of the pull does no work.

(b) The displacement is D=⟨4−2,6−1,2−0⟩=⟨2,5,2⟩,\vb{D} = \langle 4 - 2, 6 - 1, 2 - 0\rangle = \langle 2, 5, 2\rangle\mathclose{\text{,}} so W=F⋅D=6+20+10=36W = \vb{F}\cdot\vb{D} = 6 + 20 + 10 = 36 J.

Left: projecting vb{b} = langle 3, 4rangle onto vb{a} = langle 2, 1rangle (Example 16.12). The dashed segment meets the line of vb{a} at a right angle; operatorname{proj}{vb{a}}vb{b} = langle 4, 2rangle is the shadow of vb{b} on that line, and vb{b} - operatorname{proj}{vb{a}}vb{b} = langle -1, 2rangle is perpendicular to vb{a}. Right: the cross product vb{a} times vb{b} (Section 16.6) is perpendicular to vb{a} and vb{b}, its length is the area of the shaded parallelogram they span, and it points the way your right thumb does when your fingers curl from vb{a} towards vb{b}.
Figure 16.5

Left: projecting b=⟨3,4⟩\vb{b} = \langle 3, 4\rangle onto a=⟨2,1⟩\vb{a} = \langle 2, 1\rangle (Example 16.12). The dashed segment meets the line of a\vb{a} at a right angle; proj⁡ab=⟨4,2⟩\operatorname{proj}_{\vb{a}}\vb{b} = \langle 4, 2\rangle is the shadow of b\vb{b} on that line, and b−proj⁡ab=⟨−1,2⟩\vb{b} - \operatorname{proj}_{\vb{a}}\vb{b} = \langle -1, 2\rangle is perpendicular to a.\vb{a}\mathclose{\text{.}} Right: the cross product a×b\vb{a} \times \vb{b} (Section 16.6) is perpendicular to a\vb{a} and b,\vb{b}\mathclose{\text{,}} its length is the area of the shaded parallelogram they span, and it points the way your right thumb does when your fingers curl from a\vb{a} towards b.\vb{b}\mathclose{\text{.}}

6

The cross product

Many questions in space need a vector perpendicular to two given vectors a\vb{a} and b:\vb{b}\mathclose{\text{:}} the direction a plane faces, or the axis about which a force turns a spanner. Look for n=⟨n1,n2,n3⟩\vb{n} = \langle n_1, n_2, n_3\rangle with a⋅n=0\vb{a}\cdot\vb{n} = 0 and b⋅n=0:\vb{b}\cdot\vb{n} = 0\mathclose{\text{:}}

a1n1+a2n2+a3n3=0,b1n1+b2n2+b3n3=0.a_1n_1 + a_2n_2 + a_3n_3 = 0, \qquad b_1n_1 + b_2n_2 + b_3n_3 = 0.

Multiply the first equation by b3b_3 and the second by a3,a_3\mathclose{\text{,}} and subtract: n3n_3 drops out, leaving (a1b3−a3b1) n1+(a2b3−a3b2) n2=0.(a_1b_3 - a_3b_1)\,n_1 + (a_2b_3 - a_3b_2)\,n_2 = 0\mathclose{\text{.}} One solution is n1=a2b3−a3b2,n_1 = a_2b_3 - a_3b_2\mathclose{\text{,}} n2=a3b1−a1b3,n_2 = a_3b_1 - a_1b_3\mathclose{\text{,}} and then n3=a1b2−a2b1n_3 = a_1b_2 - a_2b_1 satisfies both equations (substitute and expand). This solution is the cross product.

Definition 16.5Cross product

The cross product of a=⟨a1,a2,a3⟩\vb{a} = \langle a_1, a_2, a_3\rangle and b=⟨b1,b2,b3⟩\vb{b} = \langle b_1, b_2, b_3\rangle is the vector

a×b=⟨a2b3−a3b2, a3b1−a1b3, a1b2−a2b1⟩,\vb{a}\times\vb{b} = \langle a_2b_3 - a_3b_2,\ a_3b_1 - a_1b_3,\ a_1b_2 - a_2b_1\rangle,

read “a cross b”. This is the usual three-dimensional cross product.

The formula is easier to remember as a determinant. A 2×22 \times 2 determinant is ∣pqrs∣=ps−qr,\begin{vmatrix} p & q \\ r & s \end{vmatrix} = ps - qr\mathclose{\text{,}} and each component of a×b\vb{a}\times\vb{b} is one of them. Arrange i,\vb{i}\mathclose{\text{,}} j,\vb{j}\mathclose{\text{,}} k\vb{k} and the components of a\vb{a} and b\vb{b} in three rows, and expand along the first row, covering up the row and the column of each entry in turn:

a×b=∣ijka1a2a3b1b2b3∣=∣a2a3b2b3∣i−∣a1a3b1b3∣j+∣a1a2b1b2∣k.\begin{aligned} \vb{a}\times\vb{b} &= \begin{vmatrix} \vb{i} & \vb{j} & \vb{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} \\ &= \begin{vmatrix} a_2 & a_3 \\ b_2 & b_3 \end{vmatrix}\vb{i} - \begin{vmatrix} a_1 & a_3 \\ b_1 & b_3 \end{vmatrix}\vb{j} + \begin{vmatrix} a_1 & a_2 \\ b_1 & b_2 \end{vmatrix}\vb{k}. \end{aligned}

Note the minus sign on the middle term. (The first row holds vectors, not numbers, so this is a memory aid rather than a true determinant.) For example, i×j=⟨0⋅0−0⋅1, 0⋅0−1⋅0, 1⋅1−0⋅0⟩=k.\vb{i}\times\vb{j} = \langle 0\cdot0 - 0\cdot1,\ 0\cdot0 - 1\cdot0,\ 1\cdot1 - 0\cdot0\rangle = \vb{k}\mathclose{\text{.}}

Theorem 16.5Properties of the cross product

For vectors a,\vb{a}\mathclose{\text{,}} b,\vb{b}\mathclose{\text{,}} c\vb{c} in space and every scalar k:k\mathclose{\text{:}}

  1. a×b\vb{a}\times\vb{b} is orthogonal to a\vb{a} and to b.\vb{b}\mathclose{\text{.}}
  2. If a\vb{a} and b\vb{b} are nonzero and θ\theta is the angle between them, ∥a×b∥=∥a∥ ∥b∥sin⁡θ:\norm{\vb{a}\times\vb{b}} = \norm{\vb{a}}\,\norm{\vb{b}}\sin\theta\mathclose{\text{:}} the area of the parallelogram with sides a\vb{a} and b.\vb{b}\mathclose{\text{.}}
  3. b×a=−(a×b),\vb{b}\times\vb{a} = -(\vb{a}\times\vb{b})\mathclose{\text{,}} and a×b=0\vb{a}\times\vb{b} = \vb{0} exactly when a\vb{a} and b\vb{b} are parallel or one of them is 0.\vb{0}\mathclose{\text{.}}
  4. a×(b+c)=a×b+a×c,\vb{a}\times(\vb{b} + \vb{c}) = \vb{a}\times\vb{b} + \vb{a}\times\vb{c}\mathclose{\text{,}} and (ka)×b=k(a×b)=a×(kb).(k\vb{a})\times\vb{b} = k(\vb{a}\times\vb{b}) = \vb{a}\times(k\vb{b})\mathclose{\text{.}}
Proof

(1) Expand a⋅(a×b)=a1(a2b3−a3b2)+a2(a3b1−a1b3)+a3(a1b2−a2b1):\vb{a}\cdot(\vb{a}\times\vb{b}) = a_1(a_2b_3 - a_3b_2) + a_2(a_3b_1 - a_1b_3) + a_3(a_1b_2 - a_2b_1)\mathclose{\text{:}} the six terms cancel in pairs. The same happens for b⋅(a×b).\vb{b}\cdot(\vb{a}\times\vb{b})\mathclose{\text{.}}

(2) Expanding both sides and collecting the same products proves Lagrange’s identity,

∥a×b∥2=∥a∥2∥b∥2−(a⋅b)2.\norm{\vb{a}\times\vb{b}}^2 = \norm{\vb{a}}^2\norm{\vb{b}}^2 - (\vb{a}\cdot\vb{b})^2.

By Theorem 16.4 the right side is ∥a∥2∥b∥2−∥a∥2∥b∥2cos⁡2θ=∥a∥2∥b∥2sin⁡2θ,\norm{\vb{a}}^2\norm{\vb{b}}^2 - \norm{\vb{a}}^2\norm{\vb{b}}^2\cos^2\theta = \norm{\vb{a}}^2\norm{\vb{b}}^2\sin^2\theta\mathclose{\text{,}} and sin⁡θ≥0\sin\theta \ge 0 for 0≤θ≤π,0 \le \theta \le \pi\mathclose{\text{,}} so taking square roots gives ∥a×b∥=∥a∥ ∥b∥sin⁡θ.\norm{\vb{a}\times\vb{b}} = \norm{\vb{a}}\,\norm{\vb{b}}\sin\theta\mathclose{\text{.}} The parallelogram has base ∥a∥\norm{\vb{a}} and height ∥b∥sin⁡θ\norm{\vb{b}}\sin\theta (Figure 16.5, right), so this is its area.

(3) Swapping a\vb{a} and b\vb{b} swaps the two products in each component, which changes its sign. By (2), for nonzero vectors, a×b=0\vb{a}\times\vb{b} = \vb{0} exactly when sin⁡θ=0,\sin\theta = 0\mathclose{\text{,}} that is, when θ=0\theta = 0 or π:\pi\mathclose{\text{:}} when the vectors are parallel.

(4) Each component of a×b\vb{a}\times\vb{b} is a sum of terms of the form (a component of a)\vb{a}\mathclose{\text{)}} times (a component of b),\vb{b}\mathclose{\text{),}} so it adds up over sums and scales with k.k\mathclose{\text{.}}

∎

For two nonzero, nonparallel vectors, Theorem 16.5 fixes the line along which a×b\vb{a}\times\vb{b} points and its length, which leaves two opposite directions. Since i×j=k,\vb{i}\times\vb{j} = \vb{k}\mathclose{\text{,}} the choice follows the right-hand rule that arranged the axes: if the fingers of your right hand curl from a\vb{a} towards b,\vb{b}\mathclose{\text{,}} through the angle θ,\theta\mathclose{\text{,}} your thumb points along a×b\vb{a}\times\vb{b} (Figure 16.5, right). (The idea of a proof: turn a\vb{a} and b\vb{b} gradually into i\vb{i} and j,\vb{j}\mathclose{\text{,}} never parallel; a×b\vb{a}\times\vb{b} changes gradually, is never 0,\vb{0}\mathclose{\text{,}} and so cannot jump to the opposite side.) If either vector is zero or they are parallel, their cross product is zero and has no direction. For the unit vectors,

i×j=k,j×k=i,k×i=j,j×i=−k,k×j=−i,i×k=−j,\begin{aligned} \vb{i}\times\vb{j} &= \vb{k}, & \vb{j}\times\vb{k} &= \vb{i}, & \vb{k}\times\vb{i} &= \vb{j}, \\ \vb{j}\times\vb{i} &= -\vb{k}, & \vb{k}\times\vb{j} &= -\vb{i}, & \vb{i}\times\vb{k} &= -\vb{j}, \end{aligned}

and i×i=j×j=k×k=0.\vb{i}\times\vb{i} = \vb{j}\times\vb{j} = \vb{k}\times\vb{k} = \vb{0}\mathclose{\text{.}}

Watch out

The cross product is not commutative, b×a=−(a×b),\vb{b}\times\vb{a} = -(\vb{a}\times\vb{b})\mathclose{\text{,}} and not associative: (i×i)×j=0×j=0,(\vb{i}\times\vb{i})\times\vb{j} = \vb{0}\times\vb{j} = \vb{0}\mathclose{\text{,}} but i×(i×j)=i×k=−j.\vb{i}\times(\vb{i}\times\vb{j}) = \vb{i}\times\vb{k} = -\vb{j}\mathclose{\text{.}} Keep the order and the brackets. And do not drop the minus sign on the middle term of the determinant.

Example 16.14Cross products and areas✓ Checked

(a) For a=⟨2,−1,2⟩\vb{a} = \langle 2, -1, 2\rangle and b=⟨1,3,0⟩\vb{b} = \langle 1, 3, 0\rangle (Example 16.9), find a×b,\vb{a}\times\vb{b}\mathclose{\text{,}} check that it is orthogonal to both vectors, and find the area of the parallelogram they span. (b) Find the area of the triangle with vertices P(1,0,1),P(1, 0, 1)\mathclose{\text{,}} Q(2,2,0)Q(2, 2, 0) and R(0,1,3).R(0, 1, 3)\mathclose{\text{.}}

(a) Expand the determinant:

a×b=∣ijk2−12130∣=((−1)⋅0−2⋅3)i−(2⋅0−2⋅1)j+(2⋅3−(−1)⋅1)k=−6i+2j+7k=⟨−6,2,7⟩.\begin{aligned} \vb{a}\times\vb{b} &= \begin{vmatrix} \vb{i} & \vb{j} & \vb{k} \\ 2 & -1 & 2 \\ 1 & 3 & 0 \end{vmatrix} \\ &= \big((-1)\cdot0 - 2\cdot3\big)\vb{i} - \big(2\cdot0 - 2\cdot1\big)\vb{j} \\ &\qquad + \big(2\cdot3 - (-1)\cdot1\big)\vb{k} \\ &= -6\vb{i} + 2\vb{j} + 7\vb{k} = \langle -6, 2, 7\rangle. \end{aligned}

Check: ⟨2,−1,2⟩⋅⟨−6,2,7⟩=−12−2+14=0\langle 2, -1, 2\rangle\cdot\langle -6, 2, 7\rangle = -12 - 2 + 14 = 0 and ⟨1,3,0⟩⋅⟨−6,2,7⟩=−6+6+0=0.\langle 1, 3, 0\rangle\cdot\langle -6, 2, 7\rangle = -6 + 6 + 0 = 0\mathclose{\text{.}} The area is ∥a×b∥=36+4+49=89≈9.434.\norm{\vb{a}\times\vb{b}} = \sqrt{36 + 4 + 49} = \sqrt{89} \approx 9.434\mathclose{\text{.}} Lagrange’s identity agrees: ∥a∥2∥b∥2−(a⋅b)2=9⋅10−(−1)2=89.\norm{\vb{a}}^2\norm{\vb{b}}^2 - (\vb{a}\cdot\vb{b})^2 = 9\cdot10 - (-1)^2 = 89\mathclose{\text{.}}

(b) The triangle is half of the parallelogram spanned by PQ→=⟨1,2,−1⟩\overrightarrow{PQ} = \langle 1, 2, -1\rangle and PR→=⟨−1,1,2⟩.\overrightarrow{PR} = \langle -1, 1, 2\rangle\mathclose{\text{.}} Their cross product is

PQ→×PR→=⟨2⋅2−(−1)⋅1, (−1)(−1)−1⋅2, 1⋅1−2⋅(−1)⟩=⟨5,−1,3⟩,\begin{aligned} \overrightarrow{PQ}\times\overrightarrow{PR} &= \big\langle 2\cdot2 - (-1)\cdot1,\ (-1)(-1) - 1\cdot2,\ 1\cdot1 - 2\cdot(-1)\big\rangle \\ &= \langle 5, -1, 3\rangle, \end{aligned}

of length 25+1+9=35,\sqrt{25 + 1 + 9} = \sqrt{35}\mathclose{\text{,}} so the triangle has area 1235≈2.958.\tfrac12\sqrt{35} \approx 2.958\mathclose{\text{.}}

Torque. A force F\vb{F} applied at the point with position vector r,\vb{r}\mathclose{\text{,}} measured from a chosen point O,O\mathclose{\text{,}} has torque about OO τ=r×F\boldsymbol{\tau} = \vb{r}\times\vb{F} (τ\tau is the Greek letter tau). This measures its turning effect, as when a spanner turns a bolt. For nonzero, nonparallel r\vb{r} and F,\vb{F}\mathclose{\text{,}} its length is ∥r∥ ∥F∥sin⁡θ,\norm{\vb{r}}\,\norm{\vb{F}}\sin\theta\mathclose{\text{,}} and its direction is perpendicular to their plane, by the right-hand rule; otherwise the torque is zero. For a fixed rotation axis through OO with unit direction u,\vb{u}\mathclose{\text{,}} the signed torque about that axis is the component τ⋅u.\boldsymbol{\tau}\cdot\vb{u}\mathclose{\text{.}} For a spanner and force in the plane perpendicular to the bolt, the torque points along the bolt. A force of 40 N applied 0.25 m from the bolt at right angles to the spanner gives a torque of length 0.25⋅40=100.25\cdot40 = 10 newton-metres (N·m); at 60∘60^\circ to the spanner, 10sin⁡60∘=53≈8.6610\sin 60^\circ = 5\sqrt3 \approx 8.66 N·m.

A three-dimensional operation. For vectors of the plane, written as ⟨a1,a2,0⟩\langle a_1, a_2, 0\rangle and ⟨b1,b2,0⟩,\langle b_1, b_2, 0\rangle\mathclose{\text{,}} the cross product ⟨0,0,a1b2−a2b1⟩\langle 0, 0, a_1b_2 - a_2b_1\rangle is perpendicular to the plane, and its length ∣a1b2−a2b1∣\abs{a_1b_2 - a_2b_1} is the area of their parallelogram. Two nonparallel vectors in three dimensions fix one perpendicular line. In four or more dimensions the vectors perpendicular to both fill at least a plane, with no line singled out by these conditions. So the construction used here does not extend to higher dimensions in the way the dot product does.

7

Lines and planes

Lines

A nonvertical line in the plane is fixed by a point and a slope. A direction vector also handles vertical lines and lines in space: choose v≠0\vb{v} \ne \vb{0} parallel to the line. If r0\vb{r}_0 is the position vector of a point P0P_0 on the line, a point with position vector r\vb{r} lies on the line exactly when r−r0\vb{r} - \vb{r}_0 is a multiple of v,\vb{v}\mathclose{\text{,}} that is, when

r=r0+t v\vb{r} = \vb{r}_0 + t\,\vb{v}

for some number t.t\mathclose{\text{.}} This is a vector equation of the line. With r=⟨x,y,z⟩,\vb{r} = \langle x, y, z\rangle\mathclose{\text{,}} r0=⟨x0,y0,z0⟩\vb{r}_0 = \langle x_0, y_0, z_0\rangle and v=⟨a,b,c⟩,\vb{v} = \langle a, b, c\rangle\mathclose{\text{,}} comparing components gives parametric equations,

x=x0+at,y=y0+bt,z=z0+ct,x = x_0 + at, \qquad y = y_0 + bt, \qquad z = z_0 + ct,

a parametric curve in space with parameter t:t\mathclose{\text{:}} a point moving along the line with constant velocity v.\vb{v}\mathclose{\text{.}} If a,a\mathclose{\text{,}} bb and cc are all nonzero, solve each equation for tt and equate the results to get symmetric equations,

x−x0a=y−y0b=z−z0c.\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}.
Example 16.15A line through two points✓ Checked

Find vector, parametric and symmetric equations of the line through A(1,2,3)A(1, 2, 3) and B(3,3,1).B(3, 3, 1)\mathclose{\text{.}} Where does it meet the xyxy-plane? Do C(5,4,−1)C(5, 4, -1) and D(7,5,−2)D(7, 5, -2) lie on it?

A direction is v=AB→=⟨2,1,−2⟩.\vb{v} = \overrightarrow{AB} = \langle 2, 1, -2\rangle\mathclose{\text{.}} With P0=A:P_0 = A\mathclose{\text{:}}

r=⟨1,2,3⟩+t⟨2,1,−2⟩;x=1+2t,y=2+t,z=3−2t;x−12=y−21=z−3−2.\begin{aligned} &\vb{r} = \langle 1, 2, 3\rangle + t\langle 2, 1, -2\rangle; \\ &x = 1 + 2t, \quad y = 2 + t, \quad z = 3 - 2t; \\ &\frac{x - 1}{2} = \frac{y - 2}{1} = \frac{z - 3}{-2}. \end{aligned}

The parameter is t=0t = 0 at AA and t=1t = 1 at B.B\mathclose{\text{.}} The line meets the xyxy-plane where z=3−2t=0,z = 3 - 2t = 0\mathclose{\text{,}} at t=32:t = \tfrac32\mathclose{\text{:}} the point (4,72,0).\big(4, \tfrac72, 0\big)\mathclose{\text{.}} For C,C\mathclose{\text{,}} the xx-coordinate needs 1+2t=5,1 + 2t = 5\mathclose{\text{,}} so t=2;t = 2\mathclose{\text{;}} then y=4y = 4 and z=−1,z = -1\mathclose{\text{,}} which match: CC is on the line. For D,D\mathclose{\text{,}} 1+2t=71 + 2t = 7 gives t=3,t = 3\mathclose{\text{,}} and then y=5y = 5 but z=−3≠−2:z = -3 \ne -2\mathclose{\text{:}} DD is not on the line.

Two lines in the plane either meet or are parallel. In space there is a third possibility: lines that are not parallel and never meet, like a road that crosses a railway on a bridge, are called skew.

Planes

A plane in space is fixed by a point P0P_0 on it and the direction it faces, given by a normal vector n≠0,\vb{n} \ne \vb{0}\mathclose{\text{,}} perpendicular to the plane. A point P,P\mathclose{\text{,}} with position vector r,\vb{r}\mathclose{\text{,}} lies on the plane exactly when the vector r−r0\vb{r} - \vb{r}_0 from P0P_0 to PP lies in the plane, that is, when it is orthogonal to n:\vb{n}\mathclose{\text{:}}

n⋅(r−r0)=0.\vb{n}\cdot(\vb{r} - \vb{r}_0) = 0.

With n=⟨a,b,c⟩\vb{n} = \langle a, b, c\rangle this reads

a(x−x0)+b(y−y0)+c(z−z0)=0,a(x - x_0) + b(y - y_0) + c(z - z_0) = 0,

or, multiplying out, ax+by+cz=d,ax + by + cz = d\mathclose{\text{,}} where d=ax0+by0+cz0.d = ax_0 + by_0 + cz_0\mathclose{\text{.}}

Conversely, if a,a\mathclose{\text{,}} bb and cc are not all 0, the solutions of ax+by+cz=dax + by + cz = d form a plane with normal vector ⟨a,b,c⟩:\langle a, b, c\rangle\mathclose{\text{:}} pick one solution as P0,P_0\mathclose{\text{,}} and the equation says n⋅(r−r0)=0.\vb{n}\cdot(\vb{r} - \vb{r}_0) = 0\mathclose{\text{.}} So one linear equation in x,x\mathclose{\text{,}} yy and zz describes a plane, not a line. A line can be described parametrically, or as the intersection of two planes with nonparallel normal vectors.

Example 16.16The plane through three points✓ Checked

Find an equation of the plane through P(1,0,1),P(1, 0, 1)\mathclose{\text{,}} Q(2,2,0)Q(2, 2, 0) and R(0,1,3).R(0, 1, 3)\mathclose{\text{.}}

The vectors PQ→\overrightarrow{PQ} and PR→\overrightarrow{PR} lie in the plane, so their cross product is a normal vector. Example 16.14(b) found it: n=⟨5,−1,3⟩.\vb{n} = \langle 5, -1, 3\rangle\mathclose{\text{.}} The plane through PP with this normal is

5(x−1)−(y−0)+3(z−1)=0,that is,5x−y+3z=8.5(x - 1) - (y - 0) + 3(z - 1) = 0, \quad\text{that is,}\quad 5x - y + 3z = 8.

Check with all three points: 5−0+3=8,5 - 0 + 3 = 8\mathclose{\text{,}} 10−2+0=810 - 2 + 0 = 8 and 0−1+9=8.0 - 1 + 9 = 8\mathclose{\text{.}} Any nonzero multiple of n\vb{n} is also a normal vector: 10x−2y+6z=1610x - 2y + 6z = 16 is the same plane.

The angle between two planes is the angle between their normal vectors (or π\pi minus it, whichever is at most π/2).\pi/2\mathclose{\text{).}} Parallel normals mean that the planes are parallel or are the same plane.

Theorem 16.6Distance from a point to a plane

The distance from the point P1(x1,y1,z1)P_1(x_1, y_1, z_1) to the plane ax+by+cz=d,ax + by + cz = d\mathclose{\text{,}} where a,a\mathclose{\text{,}} bb and cc are not all 0, is

D=∣ax1+by1+cz1−d∣a2+b2+c2.D = \frac{\abs{ax_1 + by_1 + cz_1 - d}}{\sqrt{a^2 + b^2 + c^2}}.
Proof

If P1P_1 lies in the plane, its distance is 0 and the numerator of the formula is 0. Otherwise, let n=⟨a,b,c⟩,\vb{n} = \langle a, b, c\rangle\mathclose{\text{,}} let P0P_0 be any point of the plane, and let FF be the foot of the perpendicular from P1,P_1\mathclose{\text{,}} the point where the line through P1P_1 with direction n\vb{n} meets the plane. For any other point XX of the plane, the triangle P1FXP_1FX has a right angle at F,F\mathclose{\text{,}} so ∣P1X∣2=∣P1F∣2+∣FX∣2≥∣P1F∣2:\abs{P_1X}^2 = \abs{P_1F}^2 + \abs{FX}^2 \ge \abs{P_1F}^2\mathclose{\text{:}} FF is the point of the plane nearest to P1,P_1\mathclose{\text{,}} and D=∣P1F∣.D = \abs{P_1F}\mathclose{\text{.}} Now P0P1→=P0F→+FP1→,\overrightarrow{P_0P_1} = \overrightarrow{P_0F} + \overrightarrow{FP_1}\mathclose{\text{,}} where P0F→\overrightarrow{P_0F} lies in the plane, orthogonal to n,\vb{n}\mathclose{\text{,}} and FP1→\overrightarrow{FP_1} is parallel to n.\vb{n}\mathclose{\text{.}} So FP1→\overrightarrow{FP_1} is the vector projection of P0P1→\overrightarrow{P_0P_1} onto n,\vb{n}\mathclose{\text{,}} and its length is the absolute value of the scalar projection:

D=∣n⋅P0P1→∣∥n∥=∣a(x1−x0)+b(y1−y0)+c(z1−z0)∣a2+b2+c2=∣ax1+by1+cz1−d∣a2+b2+c2,\begin{aligned} D &= \frac{\abs{\vb{n}\cdot\overrightarrow{P_0P_1}}}{\norm{\vb{n}}} = \frac{\abs{a(x_1 - x_0) + b(y_1 - y_0) + c(z_1 - z_0)}}{\sqrt{a^2 + b^2 + c^2}} \\ &= \frac{\abs{ax_1 + by_1 + cz_1 - d}}{\sqrt{a^2 + b^2 + c^2}}, \end{aligned}

because ax0+by0+cz0=d.ax_0 + by_0 + cz_0 = d\mathclose{\text{.}}

∎
Example 16.17Distances to a plane✓ Checked

Find the distances from S(2,3,4)S(2, 3, 4) and from the origin to the plane 5x−y+3z=85x - y + 3z = 8 of Example 16.16.

Here a2+b2+c2=25+1+9=35.\sqrt{a^2 + b^2 + c^2} = \sqrt{25 + 1 + 9} = \sqrt{35}\mathclose{\text{.}} For S,S\mathclose{\text{,}}

D=∣5⋅2−3+3⋅4−8∣35=1135≈1.859,D = \frac{\abs{5\cdot2 - 3 + 3\cdot4 - 8}}{\sqrt{35}} = \frac{11}{\sqrt{35}} \approx 1.859,

and for the origin, D=∣0−8∣35=835≈1.352.D = \dfrac{\abs{0 - 8}}{\sqrt{35}} = \dfrac{8}{\sqrt{35}} \approx 1.352\mathclose{\text{.}}

Compute itVectors with SymPy and NumPy

In SymPy a vector is a Matrix with one column. dot, cross and norm do what their names say:

Python
import sympy as sp
a = sp.Matrix([2, -1, 2])
b = sp.Matrix([1, 3, 0])
print(a.dot(b), a.norm(), b.norm())
print(a.cross(b).T, a.cross(b).norm())
angle = sp.acos(a.dot(b)/(a.norm()*b.norm()))
print(angle, sp.N(angle*180/sp.pi, 6))
Output
-1 3 sqrt(10)
Matrix([[-6, 2, 7]]) sqrt(89)
acos(-sqrt(10)/30) 96.0508

SymPy prints column vectors as matrices; .T (the transpose) prints one as a row. The angle comes out exact, with −1310-\tfrac{1}{3\sqrt{10}} written as −1030-\tfrac{\sqrt{10}}{30} (SymPy moves square roots out of denominators), and then in degrees. The plane through three points, and the distance from SS to it:

Python
P, Q, R = sp.Matrix([1, 0, 1]), sp.Matrix([2, 2, 0]), sp.Matrix([0, 1, 3])
n = (Q - P).cross(R - P)
x, y, z = sp.symbols('x y z')
print(n.T, sp.expand(n.dot(sp.Matrix([x, y, z]) - P)))
S = sp.Matrix([2, 3, 4])
print(sp.Abs(n.dot(S - P))/n.norm())
Output
Matrix([[5, -1, 3]]) 5*x - y + 3*z - 8
11*sqrt(35)/35

The plane is printed as the expression that equals 0, 5x−y+3z−8=0,5x - y + 3z - 8 = 0\mathclose{\text{,}} and the distance 11/3511/\sqrt{35} as 1135/35.11\sqrt{35}/35\mathclose{\text{.}} NumPy works with decimals, which is what you want for large or measured data:

Python
import numpy as np
a, b = np.array([2, -1, 2]), np.array([1, 3, 0])
print(np.dot(a, b), np.cross(a, b), np.linalg.norm(a))
cos_t = np.dot(a, b)/(np.linalg.norm(a)*np.linalg.norm(b))
print(np.degrees(np.arccos(cos_t)))
Output
-1 [-6  2  7] 3.0
96.05074601591174
8

Vector functions and motion

A point that moves through space has three coordinates, each a function of time. Collect them into one vector.

Definition 16.6Vector function

A vector function assigns a vector to each number tt of its domain:

r(t)=⟨f(t),g(t),h(t)⟩=f(t) i+g(t) j+h(t) k.\vb{r}(t) = \langle f(t), g(t), h(t)\rangle = f(t)\,\vb{i} + g(t)\,\vb{j} + h(t)\,\vb{k}.

The functions f,f\mathclose{\text{,}} gg and hh are its component functions. Limits are taken component by component: lim⁡t→ar(t)=⟨lim⁡t→af(t),lim⁡t→ag(t),lim⁡t→ah(t)⟩\lim_{t\to a}\vb{r}(t) = \big\langle \lim_{t\to a} f(t), \lim_{t\to a} g(t), \lim_{t\to a} h(t)\big\rangle if the three limits exist, and r\vb{r} is continuous at aa if f,f\mathclose{\text{,}} gg and hh are. If the component functions are continuous on an interval, the tip of r(t),\vb{r}(t)\mathclose{\text{,}} drawn from the origin, traces a space curve as tt varies over that interval.

The parametric curves of Section 16.1 are vector functions in the plane, with two components, and the line r=r0+tv\vb{r} = \vb{r}_0 + t\vb{v} of Section 16.7 is one in space. A new example: r(t)=⟨cos⁡t,sin⁡t,t⟩.\vb{r}(t) = \langle \cos t, \sin t, t\rangle\mathclose{\text{.}} Its first two components go round the unit circle (Example 16.1), while its height z=tz = t rises steadily. So the curve winds round the cylinder x2+y2=1,x^2 + y^2 = 1\mathclose{\text{,}} climbing 2π2\pi in each turn: it is a helix, the shape of a spring, of a spiral staircase, and of each strand of DNA.

Velocity and acceleration

Definition 16.7Derivative of a vector function

The derivative of r\vb{r} is

r′(t)=lim⁡h→0r(t+h)−r(t)h,\vb{r}'(t) = \lim_{h\to0} \frac{\vb{r}(t + h) - \vb{r}(t)}{h},

where the limit exists. The difference quotient is formed component by component, so r′(t)=⟨f′(t),g′(t),h′(t)⟩:\vb{r}'(t) = \langle f'(t), g'(t), h'(t)\rangle\mathclose{\text{:}} differentiate each component.

Geometrically, r(t+h)−r(t)\vb{r}(t + h) - \vb{r}(t) is the vector from one point of the curve to a nearby one, a secant; dividing by hh rescales it, and as h→0h \to 0 its direction turns into the direction of the tangent line. So where r′(t)≠0\vb{r}'(t) \ne \vb{0} it is a tangent vector, pointing the way the curve is traced. If tt is time, the derivatives have the names of Module 4’s motion along a line (Section 4.6), now as vectors: the velocity is v(t)=r′(t),\vb{v}(t) = \vb{r}'(t)\mathclose{\text{,}} the speed is its length ∥v(t)∥,\norm{\vb{v}(t)}\mathclose{\text{,}} and the acceleration is a(t)=v′(t)=r′′(t).\vb{a}(t) = \vb{v}'(t) = \vb{r}''(t)\mathclose{\text{.}} For a parametric curve in the plane, the velocity is the arrow ⟨x′(t),y′(t)⟩\langle x'(t), y'(t)\rangle of Section 16.2. Working one component at a time, the rules of Modules 4 and 5 carry over: (u+w)′=u′+w′,(\vb{u} + \vb{w})' = \vb{u}' + \vb{w}'\mathclose{\text{,}} (fu)′=f′u+fu′(f\vb{u})' = f'\vb{u} + f\vb{u}' for a scalar function f,f\mathclose{\text{,}} the chain rule (u(f(t)))′=f′(t) u′(f(t)),\big(\vb{u}(f(t))\big)' = f'(t)\,\vb{u}'\big(f(t)\big)\mathclose{\text{,}} and two product rules:

(u⋅w)′=u′⋅w+u⋅w′,(u×w)′=u′×w+u×w′.(\vb{u}\cdot\vb{w})' = \vb{u}'\cdot\vb{w} + \vb{u}\cdot\vb{w}', \qquad (\vb{u}\times\vb{w})' = \vb{u}'\times\vb{w} + \vb{u}\times\vb{w}'.

For the first, u⋅w=u1w1+u2w2+u3w3;\vb{u}\cdot\vb{w} = u_1w_1 + u_2w_2 + u_3w_3\mathclose{\text{;}} differentiate each term with the product rule and collect the terms with primes on u\vb{u} and those with primes on w.\vb{w}\mathclose{\text{.}} The second is proved the same way, and the order of its factors must be kept.

One consequence is used again and again. If ∥r(t)∥\norm{\vb{r}(t)} is constant, then r(t)⋅r′(t)=0\vb{r}(t)\cdot\vb{r}'(t) = 0: differentiating r⋅r=c2\vb{r}\cdot\vb{r} = c^2 gives 2 r⋅r′=0.2\,\vb{r}\cdot\vb{r}' = 0\mathclose{\text{.}} A point that moves on a sphere centred at the origin always moves at right angles to its position vector, as the tangent to a circle is perpendicular to the radius.

Example 16.18Motion along a helix✓ Checked

A particle moves along the helix r(t)=⟨cos⁡t,sin⁡t,t⟩.\vb{r}(t) = \langle \cos t, \sin t, t\rangle\mathclose{\text{.}} Find its velocity, speed and acceleration, and show that the acceleration is perpendicular to the velocity.

Differentiate each component:

v(t)=⟨−sin⁡t,cos⁡t,1⟩,a(t)=⟨−cos⁡t,−sin⁡t,0⟩.\vb{v}(t) = \langle -\sin t, \cos t, 1\rangle, \qquad \vb{a}(t) = \langle -\cos t, -\sin t, 0\rangle.

The speed is ∥v(t)∥=sin⁡2t+cos⁡2t+1=2,\norm{\vb{v}(t)} = \sqrt{\sin^2 t + \cos^2 t + 1} = \sqrt2\mathclose{\text{,}} the same at every moment. The acceleration is horizontal, with length 1: it is −⟨cos⁡t,sin⁡t,0⟩,-\langle \cos t, \sin t, 0\rangle\mathclose{\text{,}} which points from the particle straight towards the axis of the helix. And v⋅a=sin⁡tcos⁡t−sin⁡tcos⁡t+0=0.\vb{v}\cdot\vb{a} = \sin t\cos t - \sin t\cos t + 0 = 0\mathclose{\text{.}} That is no accident: the speed is constant, so v⋅v\vb{v}\cdot\vb{v} is constant, and its derivative 2 v⋅a2\,\vb{v}\cdot\vb{a} is 0 (Exercise 16.10).

Integrals and arc length

Integrals are taken component by component too: ∫abr(t) dt=⟨∫abf(t) dt,∫abg(t) dt,∫abh(t) dt⟩.\int_a^b \vb{r}(t)\,dt = \Big\langle \int_a^b f(t)\,dt, \int_a^b g(t)\,dt, \int_a^b h(t)\,dt\Big\rangle\mathclose{\text{.}} Applying the Fundamental Theorem (Section 10.5) to each component: if R′(t)=r(t),\vb{R}'(t) = \vb{r}(t)\mathclose{\text{,}} with r\vb{r} continuous, then

∫abr(t) dt=R(b)−R(a),\int_a^b \vb{r}(t)\,dt = \vb{R}(b) - \vb{R}(a),

and every antiderivative of r\vb{r} is R(t)+C\vb{R}(t) + \vb{C} for a constant vector C.\vb{C}\mathclose{\text{.}} In particular, integrating the velocity gives the change of position: ∫abv(t) dt=r(b)−r(a).\int_a^b \vb{v}(t)\,dt = \vb{r}(b) - \vb{r}(a)\mathclose{\text{.}}

The length of a space curve comes from the polygons of Section 16.2, with a third component in each chord. If r′\vb{r}' is continuous on [a,b],[a, b]\mathclose{\text{,}} the length of the path r(t),\vb{r}(t)\mathclose{\text{,}} a≤t≤b,a \le t \le b\mathclose{\text{,}} is

L=∫ab∥r′(t)∥ dt=∫abf′(t)2+g′(t)2+h′(t)2 dt:L = \int_a^b \norm{\vb{r}'(t)}\,dt = \int_a^b \sqrt{f'(t)^2 + g'(t)^2 + h'(t)^2}\,dt:

the distance travelled is the integral of the speed. One turn of the helix has length

L=∫02π2 dt=2π2≈8.886.L = \int_0^{2\pi} \sqrt2\,dt = 2\pi\sqrt2 \approx 8.886.

Geometry agrees. Cut the cylinder along a vertical line and unroll it flat: the unit circle becomes a segment of length 2π,2\pi\mathclose{\text{,}} and one turn of the helix becomes the hypotenuse of a right triangle with sides 2π2\pi (once round) and 2π2\pi (the climb), of length (2π)2+(2π)2=2π2.\sqrt{(2\pi)^2 + (2\pi)^2} = 2\pi\sqrt2\mathclose{\text{.}}

Where r′(t)≠0,\vb{r}'(t) \ne \vb{0}\mathclose{\text{,}} dividing it by its length gives the unit tangent vector

T(t)=r′(t)∥r′(t)∥.\vb{T}(t) = \frac{\vb{r}'(t)}{\norm{\vb{r}'(t)}}.

For the helix, T(t)=12⟨−sin⁡t,cos⁡t,1⟩;\vb{T}(t) = \tfrac{1}{\sqrt2}\langle -\sin t, \cos t, 1\rangle\mathclose{\text{;}} since T⋅k=12=cos⁡π4,\vb{T}\cdot\vb{k} = \tfrac{1}{\sqrt2} = \cos\tfrac{\pi}{4}\mathclose{\text{,}} the helix climbs at a constant angle of π/4\pi/4 to the vertical. The arc length function s(t)=∫at∥r′(u)∥ dus(t) = \int_a^t \norm{\vb{r}'(u)}\,du measures the distance travelled since time a,a\mathclose{\text{,}} and by Part 1 of the Fundamental Theorem (Section 10.4), ds/dt=∥r′(t)∥:ds/dt = \norm{\vb{r}'(t)}\mathclose{\text{:}} distance grows at the rate given by the speed.

Projectile motion

Throw a ball or aim a jet of water. Near the Earth’s surface, neglect air resistance and model gravity as a constant downward acceleration of magnitude g>0,g > 0\mathclose{\text{,}} about 9.8 m/s². With the launch point at the origin, xx horizontal and yy up, a(t)=⟨0,−g⟩.\vb{a}(t) = \langle 0, -g\rangle\mathclose{\text{.}} Let the projectile leave with speed v0>0v_0 > 0 at the angle α\alpha (alpha) above the horizontal, with 0<α<π/2,0 < \alpha < \pi/2\mathclose{\text{,}} so that v(0)=⟨v0cos⁡α,v0sin⁡α⟩\vb{v}(0) = \langle v_0\cos\alpha, v_0\sin\alpha\rangle and r(0)=0.\vb{r}(0) = \vb{0}\mathclose{\text{.}} For times t≥0t \ge 0 before landing, integrate each component as Module 13 did for s′′=9.8,s'' = 9.8\mathclose{\text{,}} fixing the constants by v(0)\vb{v}(0) and r(0):\vb{r}(0)\mathclose{\text{:}}

v(t)=⟨v0cos⁡α, v0sin⁡α−gt⟩,r(t)=⟨(v0cos⁡α) t, (v0sin⁡α) t−12gt2⟩.\begin{aligned} \vb{v}(t) &= \langle v_0\cos\alpha,\ v_0\sin\alpha - gt\rangle, \\ \vb{r}(t) &= \big\langle (v_0\cos\alpha)\,t,\ (v_0\sin\alpha)\,t - \tfrac12 gt^2\big\rangle. \end{aligned}

The horizontal velocity never changes; only the vertical velocity feels gravity. For 0<α<π/2,0 < \alpha < \pi/2\mathclose{\text{,}} eliminating t=x/(v0cos⁡α)t = x/(v_0\cos\alpha) gives y=(tan⁡α) x−g2v02cos⁡2α x2:y = (\tan\alpha)\,x - \dfrac{g}{2v_0^2\cos^2\alpha}\,x^2\mathclose{\text{:}} the path is a parabola.

Flight time, range and height. On level ground the projectile lands when y=0,y = 0\mathclose{\text{,}} that is, when t(v0sin⁡α−12gt)=0:t\big(v_0\sin\alpha - \tfrac12 gt\big) = 0\mathclose{\text{:}} at t=0,t = 0\mathclose{\text{,}} when it is launched, and at the flight time tf=2v0sin⁡αg.t_f = \dfrac{2v_0\sin\alpha}{g}\mathclose{\text{.}} It has then travelled the range

R=(v0cos⁡α) tf=2v02sin⁡αcos⁡αg=v02sin⁡2αg,R = (v_0\cos\alpha)\,t_f = \frac{2v_0^2\sin\alpha\cos\alpha}{g} = \frac{v_0^2\sin 2\alpha}{g},

using the double-angle formula sin⁡2α=2sin⁡αcos⁡α\sin 2\alpha = 2\sin\alpha\cos\alpha of Example 16.4. It is highest when its vertical velocity is 0, at t=v0sin⁡α/g,t = v_0\sin\alpha/g\mathclose{\text{,}} half the flight time, at the height H=v02sin⁡2α2g.H = \dfrac{v_0^2\sin^2\alpha}{2g}\mathclose{\text{.}} Here are the three for a launch speed of v0=20v_0 = 20 m/s and the angles π/12,\pi/12\mathclose{\text{,}} π/6,\pi/6\mathclose{\text{,}} π/4,\pi/4\mathclose{\text{,}} π/3\pi/3 and 5π/12,5\pi/12\mathclose{\text{,}} that is, 15∘,15^\circ\mathclose{\text{,}} 30∘,30^\circ\mathclose{\text{,}} 45∘,45^\circ\mathclose{\text{,}} 60∘60^\circ and 75∘:75^\circ\mathclose{\text{:}}

α\alphatf (s)t_f\text{ (s)}R (m)R\text{ (m)}H (m)H\text{ (m)}
π12\frac{\pi}{12}1.0561.05620.4120.411.3671.367
π6\frac{\pi}{6}2.0412.04135.3535.355.1025.102
π4\frac{\pi}{4}2.8862.88640.8240.8210.2010.20
π3\frac{\pi}{3}3.5353.53535.3535.3515.3115.31
5π12\frac{5 \pi}{12}3.9433.94320.4120.4119.0419.04

The best angle. Which angle gives the longest range? Extend the range formula to [0,π/2]:[0, \pi/2]\mathclose{\text{:}} the limiting horizontal launch has no flight time above level ground, and the vertical launch has no horizontal displacement, so both have range 0. On this closed interval, R(α)=v02gsin⁡2αR(\alpha) = \dfrac{v_0^2}{g}\sin 2\alpha is continuous, so the closed interval method of Module 8 applies. R′(α)=2v02gcos⁡2αR'(\alpha) = \dfrac{2v_0^2}{g}\cos 2\alpha is 0 only at 2α=π/2,2\alpha = \pi/2\mathclose{\text{,}} that is, α=π/4;\alpha = \pi/4\mathclose{\text{;}} comparing R(0)=R(π/2)=0R(0) = R(\pi/2) = 0 with R(π/4)=v02/g,R(\pi/4) = v_0^2/g\mathclose{\text{,}} the greatest range, v02/g,v_0^2/g\mathclose{\text{,}} comes at 45∘:45^\circ\mathclose{\text{:}} about 40.82 m for v0=20v_0 = 20 m/s. The table also shows a symmetry: since sin⁡(π−2α)=sin⁡2α,\sin(\pi - 2\alpha) = \sin 2\alpha\mathclose{\text{,}} R(π/2−α)=R(α),R(\pi/2 - \alpha) = R(\alpha)\mathclose{\text{,}} so complementary angles such as 30∘30^\circ and 60∘60^\circ give the same range. The steeper throw goes higher and stays up longer, but moves forwards more slowly.

Example 16.19A kicked ball✓ Checked

A ball is kicked from level ground at 20 m/s, at 30∘30^\circ above the horizontal (the numbers are made up). Ignoring air resistance, find its velocity after 1 s, its flight time, range and greatest height, and its velocity when it lands.

With v0=20,v_0 = 20\mathclose{\text{,}} α=π/6\alpha = \pi/6 and g=9.8:g = 9.8\mathclose{\text{:}} v0cos⁡α=103v_0\cos\alpha = 10\sqrt3 and v0sin⁡α=10,v_0\sin\alpha = 10\mathclose{\text{,}} so v(t)=⟨103,10−9.8t⟩.\vb{v}(t) = \big\langle 10\sqrt3, 10 - 9.8t\big\rangle\mathclose{\text{.}} After 1 s, v(1)=⟨103,0.2⟩≈⟨17.32,0.2⟩\vb{v}(1) = \big\langle 10\sqrt3, 0.2\big\rangle \approx \langle 17.32, 0.2\rangle m/s: the ball is still rising, but slowly. Then

tf=2⋅109.8≈2.041 s,R=400sin⁡60∘9.8=20039.8≈35.35 m,H=400⋅142⋅9.8≈5.102 m.\begin{aligned} t_f &= \frac{2\cdot10}{9.8} \approx 2.041\text{ s}, \\ R &= \frac{400\sin 60^\circ}{9.8} = \frac{200\sqrt3}{9.8} \approx 35.35\text{ m}, \\ H &= \frac{400\cdot\frac14}{2\cdot9.8} \approx 5.102\text{ m}. \end{aligned}

On landing, v(tf)=⟨103, 10−9.8⋅209.8⟩=⟨103,−10⟩,\vb{v}(t_f) = \big\langle 10\sqrt3,\ 10 - 9.8\cdot\tfrac{20}{9.8}\big\rangle = \big\langle 10\sqrt3, -10\big\rangle\mathclose{\text{,}} with speed 300+100=20\sqrt{300 + 100} = 20 m/s, at 30∘30^\circ below the horizontal: the flight is symmetric, and the ball lands as fast as it was kicked.

Watch out

The 45∘45^\circ rule assumes that the projectile lands at the height from which it was launched, and that air resistance is negligible. A shot put released 2 m above the ground at 14 m/s (made-up numbers, still neglecting air resistance) goes furthest when launched at about 42∘,42^\circ\mathclose{\text{,}} not 45∘.45^\circ\mathclose{\text{.}} Air resistance changes the calculation too; the optimum depends on the drag model and on any wind.

Going deeperCurvature

How sharply does a curve bend? Measure how fast its direction turns per unit of distance travelled. Suppose r\vb{r} has continuous first and second derivatives and r′(t)≠0\vb{r}'(t) \ne \vb{0} on the interval considered, so that its unit tangent T\vb{T} is differentiable. Its curvature is

κ=∥dTds∥=∥T′(t)∥∥r′(t)∥,\kappa = \Big\|\frac{d\vb{T}}{ds}\Big\| = \frac{\norm{\vb{T}'(t)}}{\norm{\vb{r}'(t)}},

where the second form uses the chain rule, T′(t)=dTds dsdt,\vb{T}'(t) = \dfrac{d\vb{T}}{ds}\,\dfrac{ds}{dt}\mathclose{\text{,}} and ds/dt=∥r′(t)∥ds/dt = \norm{\vb{r}'(t)} (κ\kappa is the Greek letter kappa). For a circle of radius R,R\mathclose{\text{,}} r(t)=⟨Rcos⁡t,Rsin⁡t⟩:\vb{r}(t) = \langle R\cos t, R\sin t\rangle\mathclose{\text{:}} r′(t)=⟨−Rsin⁡t,Rcos⁡t⟩\vb{r}'(t) = \langle -R\sin t, R\cos t\rangle has length R,R\mathclose{\text{,}} so T=⟨−sin⁡t,cos⁡t⟩,\vb{T} = \langle -\sin t, \cos t\rangle\mathclose{\text{,}} T′=⟨−cos⁡t,−sin⁡t⟩\vb{T}' = \langle -\cos t, -\sin t\rangle has length 1, and κ=1/R.\kappa = 1/R\mathclose{\text{.}} A small circle bends sharply and a large one gently; a straight line, whose T\vb{T} never changes, has curvature 0.

A formula without T:\vb{T}\mathclose{\text{:}} κ=∥r′(t)×r′′(t)∥∥r′(t)∥3.\kappa = \dfrac{\norm{\vb{r}'(t)\times\vb{r}''(t)}}{\norm{\vb{r}'(t)}^3}\mathclose{\text{.}} To prove it, write s′=∥r′∥,s' = \norm{\vb{r}'}\mathclose{\text{,}} so that r′=s′T.\vb{r}' = s'\vb{T}\mathclose{\text{.}} By the product rule, r′′=s′′T+s′T′,\vb{r}'' = s''\vb{T} + s'\vb{T}'\mathclose{\text{,}} and since T×T=0,\vb{T}\times\vb{T} = \vb{0}\mathclose{\text{,}}

r′×r′′=s′s′′ (T×T)+(s′)2 (T×T′)=(s′)2 (T×T′).\vb{r}'\times\vb{r}'' = s's''\,(\vb{T}\times\vb{T}) + (s')^2\,(\vb{T}\times\vb{T}') = (s')^2\,(\vb{T}\times\vb{T}').

T\vb{T} has constant length 1, so T⋅T′=0,\vb{T}\cdot\vb{T}' = 0\mathclose{\text{,}} as shown above for every vector function of constant length. If T′≠0,\vb{T}' \ne \vb{0}\mathclose{\text{,}} the vectors meet at a right angle and Theorem 16.5 gives ∥T×T′∥=1⋅∥T′∥⋅sin⁡π2=∥T′∥;\norm{\vb{T}\times\vb{T}'} = 1\cdot\norm{\vb{T}'}\cdot\sin\tfrac{\pi}{2} = \norm{\vb{T}'}\mathclose{\text{;}} if T′=0,\vb{T}' = \vb{0}\mathclose{\text{,}} both sides are 0. So ∥r′×r′′∥=(s′)2 ∥T′∥=(s′)3κ.\norm{\vb{r}'\times\vb{r}''} = (s')^2\,\norm{\vb{T}'} = (s')^3\kappa\mathclose{\text{.}} For the helix, r′×r′′=⟨−sin⁡t,cos⁡t,1⟩×⟨−cos⁡t,−sin⁡t,0⟩=⟨sin⁡t,−cos⁡t,1⟩,\vb{r}'\times\vb{r}'' = \langle -\sin t, \cos t, 1\rangle\times\langle -\cos t, -\sin t, 0\rangle = \langle \sin t, -\cos t, 1\rangle\mathclose{\text{,}} of length 2,\sqrt2\mathclose{\text{,}} and ∥r′∥3=22:\norm{\vb{r}'}^3 = 2\sqrt2\mathclose{\text{:}} κ=12.\kappa = \tfrac12\mathclose{\text{.}} The helix bends half as sharply as the unit circle it winds round; the climb straightens it.

The same computation explains why fast bends are dangerous. If a car moves at constant speed v,v\mathclose{\text{,}} then s′′=0s'' = 0 and the acceleration is r′′=s′T′,\vb{r}'' = s'\vb{T}'\mathclose{\text{,}} of length v⋅κv=κv2:v\cdot\kappa v = \kappa v^2\mathclose{\text{:}} on a bend of radius RR the car needs a sideways acceleration v2/R,v^2/R\mathclose{\text{,}} supplied by the grip of its tyres. Double the speed and it needs four times as much.

Compute itMotion with SymPy

Projectile motion from the acceleration alone: integrate twice, choosing the constants from the starting values, then solve for the landing time and maximise the range.

Python
import sympy as sp
t, alpha = sp.symbols('t alpha', positive=True)
g, v0 = sp.Rational(98, 10), 20
a = sp.Matrix([0, -g])                       # the acceleration
v_start = sp.Matrix([v0*sp.cos(alpha), v0*sp.sin(alpha)])
v = v_start + sp.integrate(a, (t, 0, t))
r = sp.integrate(v, (t, 0, t))               # starts at the origin
print(r.T)
t_f = sp.solve(r[1], t)
print(t_f)
R = sp.simplify(r[0].subs(t, t_f[0]))
print(R)
critical = sp.solveset(sp.diff(R, alpha), alpha, domain=sp.Interval(0, sp.pi/2))
best = max([0, sp.pi/2, *critical], key=lambda angle: R.subs(alpha, angle))
print(critical, best, R.subs(alpha, best), sp.N(R.subs(alpha, best), 6))
Output
Matrix([[20*t*cos(alpha), -49*t**2/10 + 20*t*sin(alpha)]])
[200*sin(alpha)/49]
2000*sin(2*alpha)/49
{pi/4} pi/4 2000/49 40.8163

integrate with the limits 0 and tt gives the antiderivative that is 0 at t=0,t = 0\mathclose{\text{,}} so adding the starting velocity fixes the constant. The landing time is tf=20049sin⁡α,t_f = \tfrac{200}{49}\sin\alpha\mathclose{\text{,}} which is 2v0sin⁡αg\tfrac{2v_0\sin\alpha}{g} with v0=20v_0 = 20 and g=495g = \tfrac{49}{5} (the root t=0t = 0 is missing because t was declared positive), and the range is R=200049sin⁡2α.R = \tfrac{2000}{49}\sin 2\alpha\mathclose{\text{.}} solveset finds the critical angles within the stated interval [0,π/2],[0, \pi/2]\mathclose{\text{,}} giving only π/4.\pi/4\mathclose{\text{.}} Comparing its range with those at both endpoints selects π/4,\pi/4\mathclose{\text{,}} where R=200049≈40.82R = \tfrac{2000}{49} \approx 40.82 m. This applies the same closed interval method as the calculation above. The same tools handle space curves. The length of one turn of the helix, and its curvature:

Python
r = sp.Matrix([sp.cos(t), sp.sin(t), t])
v, a = r.diff(t), r.diff(t, 2)
speed = sp.simplify(v.norm())
print(speed, sp.integrate(speed, (t, 0, 2*sp.pi)))
print(sp.simplify(v.cross(a).norm()/speed**3))
Output
sqrt(2) 2*sqrt(2)*pi
1/2
9

What you learned

  • A parametric curve x=f(t),x = f(t)\mathclose{\text{,}} y=g(t)y = g(t) is traced by a moving point. Eliminating tt gives an equation in xx and y,y\mathclose{\text{,}} but forgets the direction and which part is traced. Examples: ellipses x=acos⁡t,x = a\cos t\mathclose{\text{,}} y=bsin⁡t;y = b\sin t\mathclose{\text{;}} the cycloid x=r(t−sin⁡t),x = r(t - \sin t)\mathclose{\text{,}} y=r(1−cos⁡t);y = r(1 - \cos t)\mathclose{\text{;}} Lissajous curves.
  • The slope of a parametric curve is dydx=dy/dtdx/dt\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt} where dx/dt≠0:dx/dt \ne 0\mathclose{\text{:}} horizontal tangents where dy/dt=0dy/dt = 0 and dx/dt≠0,dx/dt \ne 0\mathclose{\text{,}} vertical ones where dx/dt=0dx/dt = 0 and dy/dt≠0.dy/dt \ne 0\mathclose{\text{.}} If both derivatives vanish, examine the curve separately. The length of a path is ∫ab(dx/dt)2+(dy/dt)2 dt,\int_a^b \sqrt{(dx/dt)^2 + (dy/dt)^2}\,dt\mathclose{\text{,}} the integral of the speed; a cycloid arch is 8r8r long.
  • Polar coordinates: x=rcos⁡θ,x = r\cos\theta\mathclose{\text{,}} y=rsin⁡θ,y = r\sin\theta\mathclose{\text{,}} r2=x2+y2,r^2 = x^2 + y^2\mathclose{\text{,}} with θ\theta in the right quadrant. Polar curves r=f(θ)r = f(\theta) (circles, cardioids, roses, spirals) are parametric curves with parameter θ;\theta\mathclose{\text{;}} the area they sweep out is 12∫αβr2 dθ,\tfrac12\int_\alpha^\beta r^2\,d\theta\mathclose{\text{,}} with limits that trace the region once.
  • Vectors ⟨a1,a2,a3⟩=a1i+a2j+a3k\langle a_1, a_2, a_3\rangle = a_1\vb{i} + a_2\vb{j} + a_3\vb{k} have a length and, when nonzero, a direction. They add tip to tail and scale component by component, modelling displacements, velocities and forces.
  • The dot product a⋅b=a1b1+a2b2+a3b3\vb{a}\cdot\vb{b} = a_1b_1 + a_2b_2 + a_3b_3 gives angles, orthogonality (a⋅b=0),\vb{a}\cdot\vb{b} = 0\mathclose{\text{),}} projections and work, W=F⋅D.W = \vb{F}\cdot\vb{D}\mathclose{\text{.}} For nonzero vectors, a⋅b=∥a∥ ∥b∥cos⁡θ.\vb{a}\cdot\vb{b} = \norm{\vb{a}}\,\norm{\vb{b}}\cos\theta\mathclose{\text{.}}
  • In three dimensions, the cross product a×b\vb{a}\times\vb{b} is orthogonal to a\vb{a} and b.\vb{b}\mathclose{\text{.}} Its length is the area of their parallelogram: ∥a∥ ∥b∥sin⁡θ\norm{\vb{a}}\,\norm{\vb{b}}\sin\theta for nonzero inputs. When nonzero it follows the right-hand rule; b×a=−a×b.\vb{b}\times\vb{a} = -\vb{a}\times\vb{b}\mathclose{\text{.}} Torque about a chosen point is r×F,\vb{r}\times\vb{F}\mathclose{\text{,}} where r\vb{r} runs from that point to where the force acts.
  • A line is r=r0+tv\vb{r} = \vb{r}_0 + t\vb{v} with v≠0;\vb{v} \ne \vb{0}\mathclose{\text{;}} a plane is n⋅(r−r0)=0\vb{n}\cdot(\vb{r} - \vb{r}_0) = 0 with n≠0,\vb{n} \ne \vb{0}\mathclose{\text{,}} that is, ax+by+cz=d.ax + by + cz = d\mathclose{\text{.}} A cross product of two nonparallel directions gives a normal; the distance from a point to the plane is ∣ax1+by1+cz1−d∣/a2+b2+c2.\abs{ax_1 + by_1 + cz_1 - d}/\sqrt{a^2 + b^2 + c^2}\mathclose{\text{.}}
  • Vector functions are differentiated and integrated component by component: velocity r′,\vb{r}'\mathclose{\text{,}} speed ∥r′∥,\norm{\vb{r}'}\mathclose{\text{,}} acceleration r′′,\vb{r}''\mathclose{\text{,}} unit tangent T,\vb{T}\mathclose{\text{,}} length ∫ab∥r′(t)∥ dt.\int_a^b \norm{\vb{r}'(t)}\,dt\mathclose{\text{.}}
  • A projectile without air resistance follows r(t)=⟨(v0cos⁡α)t,(v0sin⁡α)t−12gt2⟩;\vb{r}(t) = \big\langle (v_0\cos\alpha)t, (v_0\sin\alpha)t - \tfrac12gt^2\big\rangle\mathclose{\text{;}} on level ground its range v02sin⁡2α/gv_0^2\sin 2\alpha/g is greatest at 45∘.45^\circ\mathclose{\text{.}}
10

Exercises

Exercise 16.1★Eliminating the parameter

Eliminate the parameter, and describe the curve: which part of it is traced, from where to where?

  • (a) x=2t−1,x = 2t - 1\mathclose{\text{,}} y=4−t,y = 4 - t\mathclose{\text{,}} 0≤t≤20 \le t \le 2
  • (b) x=2cos⁡t,x = 2\cos t\mathclose{\text{,}} y=5sin⁡t,y = 5\sin t\mathclose{\text{,}} 0≤t≤π0 \le t \le \pi
  • (c) x=cosh⁡t,x = \cosh t\mathclose{\text{,}} y=sinh⁡t,y = \sinh t\mathclose{\text{,}} for all real tt (the hyperbolic functions of Section 6.7)
  • (d) x=t,x = \sqrt t\mathclose{\text{,}} y=1−t,y = 1 - t\mathclose{\text{,}} t≥0t \ge 0
Show solution✓ Checked

(a) t=x+12,t = \dfrac{x + 1}{2}\mathclose{\text{,}} so y=4−x+12=7−x2:y = 4 - \dfrac{x + 1}{2} = \dfrac{7 - x}{2}\mathclose{\text{:}} a line of slope −12.-\tfrac12\mathclose{\text{.}} Only 0≤t≤20 \le t \le 2 is used, so the curve is the segment from (−1,4)(-1, 4) (at t=0)t = 0\mathclose{\text{)}} to (3,2)(3, 2) (at t=2).t = 2\mathclose{\text{).}}

(b) x24+y225=cos⁡2t+sin⁡2t=1:\dfrac{x^2}{4} + \dfrac{y^2}{25} = \cos^2 t + \sin^2 t = 1\mathclose{\text{:}} an ellipse that crosses the xx-axis at ±2\pm2 and the yy-axis at ±5.\pm5\mathclose{\text{.}} For 0≤t≤π,0 \le t \le \pi\mathclose{\text{,}} y=5sin⁡t≥0:y = 5\sin t \ge 0\mathclose{\text{:}} the upper half, traced anticlockwise from (2,0)(2, 0) to (−2,0).(-2, 0)\mathclose{\text{.}}

(c) By the identity cosh⁡2t−sinh⁡2t=1\cosh^2 t - \sinh^2 t = 1 of Module 6, x2−y2=1:x^2 - y^2 = 1\mathclose{\text{:}} a hyperbola. But x=cosh⁡t≥1,x = \cosh t \ge 1\mathclose{\text{,}} so only its right branch is traced; as tt increases, y=sinh⁡ty = \sinh t increases through every real number, so the whole branch is traced from bottom to top (at the point with sinh⁡t=y,\sinh t = y\mathclose{\text{,}} x=cosh⁡t=1+y2).x = \cosh t = \sqrt{1 + y^2}\mathclose{\text{).}}

(d) From x=t,x = \sqrt t\mathclose{\text{,}} x≥0x \ge 0 and t=x2,t = x^2\mathclose{\text{,}} so y=1−x2y = 1 - x^2 with x≥0:x \ge 0\mathclose{\text{:}} the right half of a parabola opening downwards, traced from (0,1)(0, 1) downwards to the right. Forgetting x≥0x \ge 0 would give the whole parabola.

Exercise 16.2★Polar coordinates
  • (a) Find the Cartesian coordinates of the points with polar coordinates (6,−π/3)(6, -\pi/3) and (−4,7π/6).(-4, 7\pi/6)\mathclose{\text{.}}
  • (b) Find polar coordinates, with r>0r > 0 and 0≤θ<2π,0 \le \theta < 2\pi\mathclose{\text{,}} of (0,−5)(0, -5) and (3,−1).(\sqrt3, -1)\mathclose{\text{.}}
  • (c) Write r=4cos⁡θr = 4\cos\theta as an equation in xx and y,y\mathclose{\text{,}} and describe the curve.
Show solution✓ Checked

(a) (6cos⁡(−π3),6sin⁡(−π3))=(3,−33).\big(6\cos(-\tfrac{\pi}{3}), 6\sin(-\tfrac{\pi}{3})\big) = \big(3, -3\sqrt3\big)\mathclose{\text{.}} For (−4,7π/6):(-4, 7\pi/6)\mathclose{\text{:}} x=−4cos⁡7π6=−4(−32)=23x = -4\cos\tfrac{7\pi}{6} = -4\big(-\tfrac{\sqrt3}{2}\big) = 2\sqrt3 and y=−4sin⁡7π6=−4(−12)=2:y = -4\sin\tfrac{7\pi}{6} = -4\big(-\tfrac12\big) = 2\mathclose{\text{:}} the point (23,2),\big(2\sqrt3, 2\big)\mathclose{\text{,}} in the first quadrant, opposite to the direction 7π/6.7\pi/6\mathclose{\text{.}}

(b) (0,−5)(0, -5) is 5 units below the origin: r=5,r = 5\mathclose{\text{,}} θ=3π2.\theta = \tfrac{3\pi}{2}\mathclose{\text{.}} (Here tan⁡θ=y/x\tan\theta = y/x is undefined, since x=0:x = 0\mathclose{\text{:}} read the angle from the picture.) For (3,−1):\big(\sqrt3, -1\big)\mathclose{\text{:}} r=3+1=2,r = \sqrt{3 + 1} = 2\mathclose{\text{,}} cos⁡θ=32\cos\theta = \tfrac{\sqrt3}{2} and sin⁡θ=−12,\sin\theta = -\tfrac12\mathclose{\text{,}} so the point is in the fourth quadrant and θ=11π6.\theta = \tfrac{11\pi}{6}\mathclose{\text{.}} (The arctangent gives −π6,-\tfrac{\pi}{6}\mathclose{\text{,}} the same direction, but outside [0,2π).)[0, 2\pi)\mathclose{\text{.)}}

(c) Multiply by r:r\mathclose{\text{:}} r2=4rcos⁡θ,r^2 = 4r\cos\theta\mathclose{\text{,}} that is, x2+y2=4x.x^2 + y^2 = 4x\mathclose{\text{.}} Complete the square: (x−2)2+y2=4,(x - 2)^2 + y^2 = 4\mathclose{\text{,}} the circle of radius 2 centred at (2,0),(2, 0)\mathclose{\text{,}} which passes through the pole. (Multiplying by rr could only add the pole, and the pole is already on the curve, at θ=π/2.)\theta = \pi/2\mathclose{\text{.)}}

Exercise 16.3★Vector arithmetic

Let u=⟨1,−2,2⟩\vb{u} = \langle 1, -2, 2\rangle and w=⟨3,0,−4⟩.\vb{w} = \langle 3, 0, -4\rangle\mathclose{\text{.}}

  • (a) Find u+w\vb{u} + \vb{w} and 3u−2w.3\vb{u} - 2\vb{w}\mathclose{\text{.}}
  • (b) Find ∥u∥,\norm{\vb{u}}\mathclose{\text{,}} ∥w∥\norm{\vb{w}} and the unit vector in the direction of w.\vb{w}\mathclose{\text{.}}
  • (c) Find u⋅w\vb{u}\cdot\vb{w} and the angle between u\vb{u} and w.\vb{w}\mathclose{\text{.}}
  • (d) Find u×w,\vb{u}\times\vb{w}\mathclose{\text{,}} check that it is orthogonal to u\vb{u} and w,\vb{w}\mathclose{\text{,}} and find the area of the parallelogram that u\vb{u} and w\vb{w} span.
Show solution✓ Checked

(a) u+w=⟨4,−2,−2⟩\vb{u} + \vb{w} = \langle 4, -2, -2\rangle and 3u−2w=⟨3−6,−6−0,6+8⟩=⟨−3,−6,14⟩.3\vb{u} - 2\vb{w} = \langle 3 - 6, -6 - 0, 6 + 8\rangle = \langle -3, -6, 14\rangle\mathclose{\text{.}}

(b) ∥u∥=1+4+4=3\norm{\vb{u}} = \sqrt{1 + 4 + 4} = 3 and ∥w∥=9+0+16=5,\norm{\vb{w}} = \sqrt{9 + 0 + 16} = 5\mathclose{\text{,}} so the unit vector is 15w=⟨35,0,−45⟩.\tfrac15\vb{w} = \big\langle \tfrac35, 0, -\tfrac45\big\rangle\mathclose{\text{.}}

(c) u⋅w=3+0−8=−5,\vb{u}\cdot\vb{w} = 3 + 0 - 8 = -5\mathclose{\text{,}} so cos⁡θ=−53⋅5=−13\cos\theta = \dfrac{-5}{3\cdot5} = -\dfrac13 and θ=arccos⁡(−13)≈109.47∘:\theta = \arccos\big(-\tfrac13\big) \approx 109.47^\circ\mathclose{\text{:}} the tetrahedral angle of Example 16.11 again.

(d) Expanding the determinant,

u×w=((−2)(−4)−2⋅0)i−(1⋅(−4)−2⋅3)j+(1⋅0−(−2)⋅3)k=⟨8,10,6⟩.\begin{aligned} \vb{u}\times\vb{w} &= \big((-2)(-4) - 2\cdot0\big)\vb{i} - \big(1\cdot(-4) - 2\cdot3\big)\vb{j} \\ &\qquad + \big(1\cdot0 - (-2)\cdot3\big)\vb{k} = \langle 8, 10, 6\rangle. \end{aligned}

Check: u⋅⟨8,10,6⟩=8−20+12=0\vb{u}\cdot\langle 8, 10, 6\rangle = 8 - 20 + 12 = 0 and w⋅⟨8,10,6⟩=24+0−24=0.\vb{w}\cdot\langle 8, 10, 6\rangle = 24 + 0 - 24 = 0\mathclose{\text{.}} The area is 64+100+36=200=102≈14.14;\sqrt{64 + 100 + 36} = \sqrt{200} = 10\sqrt2 \approx 14.14\mathclose{\text{;}} by Lagrange’s identity it is also 9⋅25−(−5)2=200.\sqrt{9\cdot25 - (-5)^2} = \sqrt{200}\mathclose{\text{.}} The middle term is where slips happen: forgetting its minus sign gives ⟨8,−10,6⟩,\langle 8, -10, 6\rangle\mathclose{\text{,}} which is not orthogonal to u.\vb{u}\mathclose{\text{.}}

Exercise 16.4★A line in space

Let LL be the line through P(2,0,−1)P(2, 0, -1) and Q(5,2,3).Q(5, 2, 3)\mathclose{\text{.}}

  • (a) Give vector, parametric and symmetric equations of L.L\mathclose{\text{.}}
  • (b) Does (8,4,7)(8, 4, 7) lie on L?L\mathclose{\text{?}} Does (−1,−2,−4)?(-1, -2, -4)\mathclose{\text{?}}
  • (c) Where does LL cross the xyxy-plane?
  • (d) Show that LL is parallel to the plane 2x+y−2z=72x + y - 2z = 7 but does not lie in it.
Show solution✓ Checked

(a) A direction is PQ→=⟨3,2,4⟩,\overrightarrow{PQ} = \langle 3, 2, 4\rangle\mathclose{\text{,}} so r=⟨2,0,−1⟩+t⟨3,2,4⟩;\vb{r} = \langle 2, 0, -1\rangle + t\langle 3, 2, 4\rangle\mathclose{\text{;}} that is, x=2+3t,x = 2 + 3t\mathclose{\text{,}} y=2t,y = 2t\mathclose{\text{,}} z=−1+4t;z = -1 + 4t\mathclose{\text{;}} and x−23=y2=z+14.\dfrac{x - 2}{3} = \dfrac{y}{2} = \dfrac{z + 1}{4}\mathclose{\text{.}}

(b) For (8,4,7):(8, 4, 7)\mathclose{\text{:}} 2+3t=82 + 3t = 8 gives t=2,t = 2\mathclose{\text{,}} and then y=4y = 4 and z=7:z = 7\mathclose{\text{:}} yes. For (−1,−2,−4):(-1, -2, -4)\mathclose{\text{:}} 2+3t=−12 + 3t = -1 gives t=−1,t = -1\mathclose{\text{,}} and then y=−2y = -2 but z=−5≠−4:z = -5 \ne -4\mathclose{\text{:}} no.

(c) z=−1+4t=0z = -1 + 4t = 0 at t=14,t = \tfrac14\mathclose{\text{,}} the point (114,12,0).\big(\tfrac{11}{4}, \tfrac12, 0\big)\mathclose{\text{.}}

(d) The plane has normal n=⟨2,1,−2⟩,\vb{n} = \langle 2, 1, -2\rangle\mathclose{\text{,}} and n⋅⟨3,2,4⟩=6+2−8=0:\vb{n}\cdot\langle 3, 2, 4\rangle = 6 + 2 - 8 = 0\mathclose{\text{:}} the direction of LL is orthogonal to the normal, so LL is parallel to the plane. But PP gives 2⋅2+0−2⋅(−1)=6≠7,2\cdot2 + 0 - 2\cdot(-1) = 6 \ne 7\mathclose{\text{,}} so LL is not in the plane: indeed 2(2+3t)+2t−2(−1+4t)=62(2 + 3t) + 2t - 2(-1 + 4t) = 6 for every t,t\mathclose{\text{,}} never 7, so LL never meets it.

Exercise 16.5★★A figure eight

The Lissajous curve x=sin⁡t,x = \sin t\mathclose{\text{,}} y=sin⁡2t,y = \sin 2t\mathclose{\text{,}} 0≤t≤2π,0 \le t \le 2\pi\mathclose{\text{,}} looks like a figure eight lying on its side.

  • (a) Find the two parameter values in [0,2π)[0, 2\pi) at which it passes through the origin, and find its two tangent lines there. The endpoint t=2πt = 2\pi repeats the starting point.
  • (b) Find the points where the tangent line is horizontal, and where it is vertical.
  • (c) Show that every point of the curve satisfies y2=4x2(1−x2).y^2 = 4x^2\big(1 - x^2\big)\mathclose{\text{.}}
Show solution✓ Checked

Here dxdt=cos⁡t\dfrac{dx}{dt} = \cos t and dydt=2cos⁡2t.\dfrac{dy}{dt} = 2\cos 2t\mathclose{\text{.}}

(a) x=sin⁡t=0x = \sin t = 0 at t=0,t = 0\mathclose{\text{,}} π\pi and 2π,2\pi\mathclose{\text{,}} and there y=sin⁡2t=0y = \sin 2t = 0 too; t=2πt = 2\pi is the end of the loop, back at its start, so the curve passes through the origin at t=0t = 0 and at t=π.t = \pi\mathclose{\text{.}} At t=0t = 0 the slope is 2cos⁡0cos⁡0=2;\dfrac{2\cos 0}{\cos 0} = 2\mathclose{\text{;}} at t=πt = \pi it is 2cos⁡2πcos⁡π=−2.\dfrac{2\cos 2\pi}{\cos\pi} = -2\mathclose{\text{.}} The tangent lines are y=2xy = 2x and y=−2x.y = -2x\mathclose{\text{.}}

(b) Horizontal: cos⁡2t=0\cos 2t = 0 at t=π4,3π4,5π4,7π4,t = \tfrac{\pi}{4}, \tfrac{3\pi}{4}, \tfrac{5\pi}{4}, \tfrac{7\pi}{4}\mathclose{\text{,}} where cos⁡t=±22≠0.\cos t = \pm\tfrac{\sqrt2}{2} \ne 0\mathclose{\text{.}} The points are (22,1),\big(\tfrac{\sqrt2}{2}, 1\big)\mathclose{\text{,}} (22,−1),\big(\tfrac{\sqrt2}{2}, -1\big)\mathclose{\text{,}} (−22,1)\big(-\tfrac{\sqrt2}{2}, 1\big) and (−22,−1),\big(-\tfrac{\sqrt2}{2}, -1\big)\mathclose{\text{,}} the tops and bottoms of the two loops. Vertical: cos⁡t=0\cos t = 0 at t=π2t = \tfrac{\pi}{2} and 3π2,\tfrac{3\pi}{2}\mathclose{\text{,}} where dydt=2cos⁡π=2cos⁡3π=−2≠0.\dfrac{dy}{dt} = 2\cos\pi = 2\cos 3\pi = -2 \ne 0\mathclose{\text{.}} The points are (1,0)(1, 0) and (−1,0),(-1, 0)\mathclose{\text{,}} the two ends of the eight.

(c) By the double-angle formula, y=sin⁡2t=2sin⁡tcos⁡t,y = \sin 2t = 2\sin t\cos t\mathclose{\text{,}} so y2=4sin⁡2tcos⁡2t=4sin⁡2t(1−sin⁡2t)=4x2(1−x2).y^2 = 4\sin^2 t\cos^2 t = 4\sin^2 t\big(1 - \sin^2 t\big) = 4x^2\big(1 - x^2\big)\mathclose{\text{.}}

Exercise 16.6★★The length of an astroid

The astroid is the curve x=cos⁡3t,x = \cos^3 t\mathclose{\text{,}} y=sin⁡3t,y = \sin^3 t\mathclose{\text{,}} 0≤t≤2π.0 \le t \le 2\pi\mathclose{\text{.}}

  • (a) Show that its points satisfy x2/3+y2/3=1.x^{2/3} + y^{2/3} = 1\mathclose{\text{.}}
  • (b) Find the points where dx/dtdx/dt and dy/dtdy/dt are both 0.
  • (c) Find the length of the astroid.
Show solution✓ Checked

(a) With real cube roots, x1/3=cos⁡tx^{1/3} = \cos t and y1/3=sin⁡t,y^{1/3} = \sin t\mathclose{\text{,}} so x2/3+y2/3=cos⁡2t+sin⁡2t=1.x^{2/3} + y^{2/3} = \cos^2 t + \sin^2 t = 1\mathclose{\text{.}}

(b) dxdt=−3cos⁡2t sin⁡t\dfrac{dx}{dt} = -3\cos^2 t\,\sin t and dydt=3sin⁡2t cos⁡t\dfrac{dy}{dt} = 3\sin^2 t\,\cos t are both 0 exactly when sin⁡tcos⁡t=0,\sin t\cos t = 0\mathclose{\text{,}} at t=0,π2,π,3π2,2π.t = 0, \tfrac{\pi}{2}, \pi, \tfrac{3\pi}{2}, 2\pi\mathclose{\text{.}} These give the four points (1,0),(1, 0)\mathclose{\text{,}} (0,1),(0, 1)\mathclose{\text{,}} (−1,0)(-1, 0) and (0,−1),(0, -1)\mathclose{\text{,}} with 2π2\pi repeating the first. The astroid has a cusp at each of them.

(c) Square, add and factor:

(dxdt)2+(dydt)2=9cos⁡4tsin⁡2t+9sin⁡4tcos⁡2t=9sin⁡2tcos⁡2t(cos⁡2t+sin⁡2t)=9sin⁡2tcos⁡2t.\begin{aligned} \Big(\frac{dx}{dt}\Big)^2 + \Big(\frac{dy}{dt}\Big)^2 &= 9\cos^4 t\sin^2 t + 9\sin^4 t\cos^2 t \\ &= 9\sin^2 t\cos^2 t\big(\cos^2 t + \sin^2 t\big) = 9\sin^2 t\cos^2 t. \end{aligned}

The square root is 3∣sin⁡tcos⁡t∣.3\abs{\sin t\cos t}\mathclose{\text{.}} The four quarters of the astroid are mirror images of each other, and on [0,π/2][0, \pi/2] both sin⁡t\sin t and cos⁡t\cos t are non-negative. So, with the substitution u=sin⁡t,u = \sin t\mathclose{\text{,}} du=cos⁡t dt,du = \cos t\,dt\mathclose{\text{,}}

L=4∫0π/23sin⁡tcos⁡t dt=12∫01u du=12⋅12=6.L = 4\int_0^{\pi/2} 3\sin t\cos t\,dt = 12\int_0^1 u\,du = 12\cdot\frac12 = 6.

The common wrong answer is 0: ∫02π3sin⁡tcos⁡t dt=0,\int_0^{2\pi} 3\sin t\cos t\,dt = 0\mathclose{\text{,}} because without the absolute value the negative values cancel the positive ones.

Exercise 16.7★★Area between polar curves

Find the area of the region inside the circle r=3cos⁡θr = 3\cos\theta and outside the cardioid r=1+cos⁡θ.r = 1 + \cos\theta\mathclose{\text{.}}

Show solution✓ Checked

Away from the pole, the curves meet where 3cos⁡θ=1+cos⁡θ,3\cos\theta = 1 + \cos\theta\mathclose{\text{,}} that is, cos⁡θ=12:\cos\theta = \tfrac12\mathclose{\text{:}} at θ=±π3.\theta = \pm\tfrac{\pi}{3}\mathclose{\text{.}} They also meet at the pole, reached on the circle at θ=π/2\theta = \pi/2 and on the cardioid at θ=π;\theta = \pi\mathclose{\text{;}} equating radii at the same angle misses this point.

The circle lies in the right half-plane and has nonnegative radius for −π/2≤θ≤π/2.-\pi/2 \le \theta \le \pi/2\mathclose{\text{.}} On those rays it extends beyond the cardioid exactly when cos⁡θ>12,\cos\theta > \tfrac12\mathclose{\text{,}} so the region with positive area lies between the angles −π/3-\pi/3 and π/3.\pi/3\mathclose{\text{.}} There 0<1+cos⁡θ≤3cos⁡θ,0 < 1 + \cos\theta \le 3\cos\theta\mathclose{\text{,}} and the region is 1+cos⁡θ≤r≤3cos⁡θ.1 + \cos\theta \le r \le 3\cos\theta\mathclose{\text{.}} The relevant boundary arcs are traced once; the isolated common pole adds no area. Subtract the areas, by Theorem 16.3 and the pitfall that follows it, and use cos⁡2θ=12(1+cos⁡2θ):\cos^2\theta = \tfrac12(1 + \cos 2\theta)\mathclose{\text{:}}

A=12∫−π/3π/3(9cos⁡2θ−(1+cos⁡θ)2) dθ=12∫−π/3π/3(8cos⁡2θ−2cos⁡θ−1) dθ=12∫−π/3π/3(3+4cos⁡2θ−2cos⁡θ) dθ=12[3θ+2sin⁡2θ−2sin⁡θ]−π/3π/3.\begin{aligned} A &= \frac12\int_{-\pi/3}^{\pi/3} \Big(9\cos^2\theta - (1 + \cos\theta)^2\Big)\,d\theta \\ &= \frac12\int_{-\pi/3}^{\pi/3} \big(8\cos^2\theta - 2\cos\theta - 1\big)\,d\theta \\ &= \frac12\int_{-\pi/3}^{\pi/3} \big(3 + 4\cos 2\theta - 2\cos\theta\big)\,d\theta \\ &= \frac12\Big[3\theta + 2\sin 2\theta - 2\sin\theta\Big]_{-\pi/3}^{\pi/3}. \end{aligned}

At θ=π3\theta = \tfrac{\pi}{3} the bracket is π+3−3=π,\pi + \sqrt3 - \sqrt3 = \pi\mathclose{\text{,}} and at −π3-\tfrac{\pi}{3} it is −π.-\pi\mathclose{\text{.}} So A=12(π+π)=π.A = \tfrac12(\pi + \pi) = \pi\mathclose{\text{.}}

Exercise 16.8★★A plane, a triangle and a distance

Let A(1,0,0),A(1, 0, 0)\mathclose{\text{,}} B(0,2,0)B(0, 2, 0) and C(0,0,3).C(0, 0, 3)\mathclose{\text{.}}

  • (a) Find an equation of the plane through A,A\mathclose{\text{,}} BB and C.C\mathclose{\text{.}}
  • (b) Find the area of the triangle ABC.ABC\mathclose{\text{.}}
  • (c) Find the distance from the origin OO to the plane.
  • (d) Check your answers: the tetrahedron OABCOABC has volume 13×(area of a face)×(height above it).\tfrac13\times(\text{area of a face})\times(\text{height above it})\mathclose{\text{.}} Compute it with the face ABC,ABC\mathclose{\text{,}} and with the face OABOAB in the xyxy-plane.
Show solution✓ Checked

(a) AB→=⟨−1,2,0⟩\overrightarrow{AB} = \langle -1, 2, 0\rangle and AC→=⟨−1,0,3⟩,\overrightarrow{AC} = \langle -1, 0, 3\rangle\mathclose{\text{,}} so a normal is

n=AB→×AC→=⟨2⋅3−0⋅0, 0⋅(−1)−(−1)⋅3, (−1)⋅0−2⋅(−1)⟩=⟨6,3,2⟩.\begin{aligned} \vb{n} = \overrightarrow{AB}\times\overrightarrow{AC} &= \big\langle 2\cdot3 - 0\cdot0,\ 0\cdot(-1) - (-1)\cdot3,\ (-1)\cdot0 - 2\cdot(-1)\big\rangle \\ &= \langle 6, 3, 2\rangle. \end{aligned}

Through A:A\mathclose{\text{:}} 6(x−1)+3y+2z=0,6(x - 1) + 3y + 2z = 0\mathclose{\text{,}} that is, 6x+3y+2z=6.6x + 3y + 2z = 6\mathclose{\text{.}} Check: BB gives 66 and CC gives 6.6\mathclose{\text{.}}

(b) ∥n∥=36+9+4=7,\norm{\vb{n}} = \sqrt{36 + 9 + 4} = 7\mathclose{\text{,}} so the triangle has area 72.\tfrac72\mathclose{\text{.}}

(c) D=∣0+0+0−6∣7=67≈0.857.D = \dfrac{\abs{0 + 0 + 0 - 6}}{7} = \dfrac67 \approx 0.857\mathclose{\text{.}}

(d) With face ABC:ABC\mathclose{\text{:}} 13⋅72⋅67=1.\tfrac13\cdot\tfrac72\cdot\tfrac67 = 1\mathclose{\text{.}} With face OAB,OAB\mathclose{\text{,}} a right triangle with legs 1 and 2 and area 1, and height 3 (the distance from CC to the xyxy-plane): 13⋅1⋅3=1.\tfrac13\cdot1\cdot3 = 1\mathclose{\text{.}} The answers agree.

Exercise 16.9★★Hitting a target

A ball is thrown from ground level at 15 m/s towards a target on the ground 20 m away. Ignoring air resistance, with g=9.8g = 9.8 m/s², at what angles can it be thrown to hit the target? How long does each throw take? What is the furthest target that can be hit at this speed?

Show solution✓ Checked

The range must be R=v02sin⁡2αg=20,R = \dfrac{v_0^2\sin 2\alpha}{g} = 20\mathclose{\text{,}} so

sin⁡2α=20⋅9.8152=196225≈0.8711.\sin 2\alpha = \frac{20\cdot9.8}{15^2} = \frac{196}{225} \approx 0.8711.

With 0<α<π2,0 < \alpha < \tfrac{\pi}{2}\mathclose{\text{,}} 2α2\alpha lies between 0 and π,\pi\mathclose{\text{,}} where the sine takes this value twice: 2α=arcsin⁡196225≈60.59∘2\alpha = \arcsin\tfrac{196}{225} \approx 60.59^\circ and 2α≈180∘−60.59∘=119.41∘.2\alpha \approx 180^\circ - 60.59^\circ = 119.41^\circ\mathclose{\text{.}} So α≈30.29∘\alpha \approx 30.29^\circ or α≈59.71∘,\alpha \approx 59.71^\circ\mathclose{\text{,}} two complementary angles. The flight times tf=2v0sin⁡αgt_f = \dfrac{2v_0\sin\alpha}{g} are about 1.5441.544 s for the low throw and 2.6432.643 s for the high one. The furthest target is at the range for 45∘,45^\circ\mathclose{\text{,}} v02g=2259.8≈22.96\dfrac{v_0^2}{g} = \dfrac{225}{9.8} \approx 22.96 m; beyond that, sin⁡2α\sin 2\alpha would have to exceed 1.

Exercise 16.10★★★Constant speed

Assume that the position r(t)\vb{r}(t) is twice differentiable on an interval of time.

  • (a) Prove that if a particle moves with constant speed, its acceleration is always orthogonal to its velocity.
  • (b) A particle moves round the circle of radius R>0R > 0 centred at the origin with constant speed v>0:v > 0\mathclose{\text{:}} r(t)=⟨Rcos⁡ωt,Rsin⁡ωt⟩,\vb{r}(t) = \big\langle R\cos\omega t, R\sin\omega t\big\rangle\mathclose{\text{,}} where ω=v/R.\omega = v/R\mathclose{\text{.}} Show that its acceleration is −ω2 r(t):-\omega^2\,\vb{r}(t)\mathclose{\text{:}} it points towards the centre and has length v2/R.v^2/R\mathclose{\text{.}}
  • (c) Is the converse of (a) true: if a(t)⋅v(t)=0\vb{a}(t)\cdot\vb{v}(t) = 0 for all t,t\mathclose{\text{,}} is the speed constant?
Show solution✓ Checked

(a) The speed ∥v∥\norm{\vb{v}} is constant, so v⋅v=∥v∥2=c\vb{v}\cdot\vb{v} = \norm{\vb{v}}^2 = c for a constant c.c\mathclose{\text{.}} Differentiate with the product rule for dot products: v′⋅v+v⋅v′=0,\vb{v}'\cdot\vb{v} + \vb{v}\cdot\vb{v}' = 0\mathclose{\text{,}} that is, 2 a⋅v=0.2\,\vb{a}\cdot\vb{v} = 0\mathclose{\text{.}} So a⋅v=0\vb{a}\cdot\vb{v} = 0 at every time: a\vb{a} is orthogonal to v\vb{v} (or 0).\vb{0}\mathclose{\text{).}}

(b) By the chain rule,

v(t)=⟨−Rωsin⁡ωt, Rωcos⁡ωt⟩,a(t)=⟨−Rω2cos⁡ωt, −Rω2sin⁡ωt⟩=−ω2 r(t).\begin{aligned} \vb{v}(t) &= \langle -R\omega\sin\omega t,\ R\omega\cos\omega t\rangle, \\ \vb{a}(t) &= \langle -R\omega^2\cos\omega t,\ -R\omega^2\sin\omega t\rangle = -\omega^2\,\vb{r}(t). \end{aligned}

The speed is ∥v∥=Rω=v,\norm{\vb{v}} = R\omega = v\mathclose{\text{,}} constant, as required. The acceleration points opposite to the position vector, towards the centre, and has length ω2∥r∥=ω2R=v2R2 R=v2R.\omega^2\norm{\vb{r}} = \omega^2 R = \dfrac{v^2}{R^2}\,R = \dfrac{v^2}{R}\mathclose{\text{.}} This centripetal acceleration is the κv2\kappa v^2 of the Going deeper box on curvature, with κ=1/R;\kappa = 1/R\mathclose{\text{;}} it also confirms (a), since a\vb{a} is along the radius and v\vb{v} along the tangent.

(c) Yes. If a⋅v=0\vb{a}\cdot\vb{v} = 0 for all tt in an interval, then ddt(v⋅v)=2 a⋅v=0\dfrac{d}{dt}(\vb{v}\cdot\vb{v}) = 2\,\vb{a}\cdot\vb{v} = 0 there, so ∥v∥2\norm{\vb{v}}^2 is constant (Module 8), and so is the speed. For a particle of constant mass, a resultant force orthogonal to its velocity cannot change its speed.

Exercise 16.11★★★The Cauchy–Schwarz inequality

For vectors with nn real components, a=⟨a1,…,an⟩,\vb{a} = \langle a_1, \dots, a_n\rangle\mathclose{\text{,}} define a⋅b=a1b1+⋯+anbn\vb{a}\cdot\vb{b} = a_1b_1 + \dots + a_nb_n and ∥a∥=a⋅a;\norm{\vb{a}} = \sqrt{\vb{a}\cdot\vb{a}}\mathclose{\text{;}} the rules of the dot product in Section 16.5 hold, with the same proofs.

  • (a) Prove the Cauchy–Schwarz inequality ∣a⋅b∣≤∥a∥ ∥b∥.\abs{\vb{a}\cdot\vb{b}} \le \norm{\vb{a}}\,\norm{\vb{b}}\mathclose{\text{.}} (Hint: for a≠0,\vb{a} \ne \vb{0}\mathclose{\text{,}} the quadratic q(s)=∥sa+b∥2q(s) = \norm{s\vb{a} + \vb{b}}^2 is never negative.)
  • (b) Deduce the triangle inequality ∥a+b∥≤∥a∥+∥b∥.\norm{\vb{a} + \vb{b}} \le \norm{\vb{a}} + \norm{\vb{b}}\mathclose{\text{.}}
  • (c) Explain why cos⁡θ=a⋅b∥a∥ ∥b∥\cos\theta = \dfrac{\vb{a}\cdot\vb{b}}{\norm{\vb{a}}\,\norm{\vb{b}}} defines an angle θ\theta for any two nonzero vectors with nn components, and find the angle between ⟨1,1,0,1⟩\langle 1, 1, 0, 1\rangle and ⟨1,0,1,1⟩.\langle 1, 0, 1, 1\rangle\mathclose{\text{.}}
Show solution✓ Checked

(a) If a=0,\vb{a} = \vb{0}\mathclose{\text{,}} both sides are 0. Otherwise expand, with the rules of the dot product:

q(s)=(sa+b)⋅(sa+b)=∥a∥2s2+2(a⋅b) s+∥b∥2.q(s) = (s\vb{a} + \vb{b})\cdot(s\vb{a} + \vb{b}) = \norm{\vb{a}}^2 s^2 + 2(\vb{a}\cdot\vb{b})\,s + \norm{\vb{b}}^2.

This is a quadratic in ss with positive leading coefficient, and q(s)≥0q(s) \ge 0 for every s,s\mathclose{\text{,}} as a squared length. Two distinct real roots would make it negative between them, so it has at most one real root, and its discriminant is not positive:

4(a⋅b)2−4∥a∥2∥b∥2≤0.4(\vb{a}\cdot\vb{b})^2 - 4\norm{\vb{a}}^2\norm{\vb{b}}^2 \le 0.

So (a⋅b)2≤∥a∥2∥b∥2;(\vb{a}\cdot\vb{b})^2 \le \norm{\vb{a}}^2\norm{\vb{b}}^2\mathclose{\text{;}} take square roots.

(b) By (a), a⋅b≤∣a⋅b∣≤∥a∥ ∥b∥,\vb{a}\cdot\vb{b} \le \abs{\vb{a}\cdot\vb{b}} \le \norm{\vb{a}}\,\norm{\vb{b}}\mathclose{\text{,}} so

∥a+b∥2=∥a∥2+2 a⋅b+∥b∥2≤∥a∥2+2∥a∥ ∥b∥+∥b∥2=(∥a∥+∥b∥)2.\begin{aligned} \norm{\vb{a} + \vb{b}}^2 &= \norm{\vb{a}}^2 + 2\,\vb{a}\cdot\vb{b} + \norm{\vb{b}}^2 \\ &\le \norm{\vb{a}}^2 + 2\norm{\vb{a}}\,\norm{\vb{b}} + \norm{\vb{b}}^2 = \big(\norm{\vb{a}} + \norm{\vb{b}}\big)^2. \end{aligned}

Both sides are non-negative, so taking square roots gives the triangle inequality.

(c) By (a), the fraction lies in [−1,1],[-1, 1]\mathclose{\text{,}} and on that interval the arccosine gives exactly one θ\theta in [0,π].[0, \pi]\mathclose{\text{.}} In three dimensions this θ\theta is the geometric angle (Theorem 16.4); in more dimensions it is the definition of the angle, which is how cosine similarity works. For the two vectors, a⋅b=1+0+0+1=2\vb{a}\cdot\vb{b} = 1 + 0 + 0 + 1 = 2 and ∥a∥=∥b∥=3,\norm{\vb{a}} = \norm{\vb{b}} = \sqrt3\mathclose{\text{,}} so cos⁡θ=23\cos\theta = \tfrac23 and θ≈48.19∘.\theta \approx 48.19^\circ\mathclose{\text{.}}

11

Check yourself

1
For the curve x=t2,x = t^2\mathclose{\text{,}} y=t3,y = t^3\mathclose{\text{,}} the slope dy/dxdy/dx at the point where t=2t = 2 is
2
The curve x=cos⁡t,x = \cos t\mathclose{\text{,}} y=sin⁡t,y = \sin t\mathclose{\text{,}} 0≤t≤π,0 \le t \le \pi\mathclose{\text{,}} is
3
The point with polar coordinates (−2,π/3)(-2, \pi/3) has Cartesian coordinates
4
The area of the region inside the circle r=2sin⁡θr = 2\sin\theta is
5
Which vector is orthogonal to ⟨2,−1,3⟩?\langle 2, -1, 3\rangle\mathclose{\text{?}}
6
(i×j)×j(\vb{i}\times\vb{j})\times\vb{j} equals
7
The plane through (1,3,2)(1, 3, 2) with normal vector ⟨2,−1,4⟩\langle 2, -1, 4\rangle has equation
8
The helix r(t)=⟨3cos⁡t,3sin⁡t,4t⟩,\vb{r}(t) = \langle 3\cos t, 3\sin t, 4t\rangle\mathclose{\text{,}} from t=0t = 0 to t=2π,t = 2\pi\mathclose{\text{,}} has length
Finished this module?