{ "cells": [ {"cell_type":"markdown","source":"
Read the notes for details.
","metadata":{}}, {"cell_type":"markdown","source":"The notes define a few useful functions, replicated here. (If the MTH229
package is installed, this can all be replaced by using MTH229
)
Let $u =\\langle 1,2,3 \\rangle$, $v=\\langle 1,1,1 \\rangle$, and $w = \\langle 1, -4, 3 \\rangle$. Use vector calculus with julia
to find:
The sum $u + v$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"The value of $\\| v \\|$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"A unit vector $\\hat{u}$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"The angle between the vectors $u$ and $v$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"The volume of the parallelpiped formed by $u$, $v$, and $w$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"Verify that the cross product is anti-commutative by showing $u \\times v + v \\times u = 0$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"Verify that the cross product is not associative by computing both $(u \\times v) \\times w$ and $u \\times (v \\times w)$ and comparing the answers:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"Let $p = \\langle 3,4,5 \\rangle$ and $v = \\langle 1,2,1 \\rangle$. Write a function, r(t)
, that parameterizes the line in the direction of $v$ going through the point $p$.
Find the distance between $r(0)$ and $r(3)$ using julia
:
Let r(t) = [sin(t), 2cos(t), 0]
.
Make a plot of r
over the interval $[0,2pi]$, what kind of shape is it?
Let er
be the unit vector of r
. Write this as a function of t
:
Show that r(t) × r'(t)
is a constant in t
by taking 3 different values of t
and comparing:
Show that r''(t)
and r(t)
are parallel by showing the for a 3 different values of t
the cross product of the two vectors is basically 0 (up to numeric round off).
Using SymPy
, define a symbolic variable t
:
The Bernoulli spiral is parameterized by r(t) = exp(t) * [cos(4t), sin(4t)]
. Plot this over $[-10, 3]$:
Show the following symbolically for the Bernoulli spiral: the angle between the position vector $r(t)$ and the tangent vector $r'(t)$ is constant, that is it does not depend on $t$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"A spiraling curve is given by $r(t) = [t \\cdot \\cos(4t), t \\cdot \\sin(4t)]$.
\nMake a plot over $[0, 3\\pi]$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"Compute $\\| r'(t) \\|$ symbolically and assign its simplified output to ds
.
Compute the arclength over $[0,3\\pi]$ via integrate(ds, t, 0, 3PI)
Let Viviani's curve be given by $r(t) = \\langle 1 + \\cos(t), \\sin(t), 2\\sin(t/2) \\rangle$.
\nPlot this over $[0, 2\\pi]$:
","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"Compute the curvature of the curve at time $t$ and compare with
","metadata":{}}, {"cell_type":"markdown","source":"\n$$\n\\frac{\\sqrt{13 + 3\\cos(t)}}{(3 + \\cos(t))^{3/2}}\n$$\n","metadata":{}}, {"outputs":[{"output_type":"execute_result","data":{"text/latex":[""]},"metadata":{},"execution_count":1}],"cell_type":"code","source":[""],"metadata":{},"execution_count":1}, {"cell_type":"markdown","source":"Let $r(t) = [\\sin(t), t, 0]$. Find the curvature for all $t$. Plot it. Where is it maximal? What part of the $\\sin(t)$ curve would this correspond to?
\n