Course Test · University: upper level
Differential geometry: RatMath answers
The same twenty exercises, answered with RatMath Core and the Shelf libraries only. The code below was run when this page was built; its output is shown as printed, and compared with the independent answer.
Agrees 20
Libraries used here: core, analytic. In this code each library is in scope under its own name (linalg.det, stats.tTest), and Core's names (R, Rational, …) are in scope directly.
- 1.The helixAgreesFor the helix , find the speed, curvature and torsion.Independent answer. For : , .RatMath code
const h = analytic.curve(["cos(t)", "sin(t)", "t/2"], "t"); [h.speed(), h.curvature(), h.torsion()].map(String)Output["sqrt(5/4)", "4/5", "2/5"]
- 2.Arc lengthAgreesFind the length of one turn of the helix, .Independent answer.RatMath code
analytic.curve(["cos(t)", "sin(t)", "t/2"], "t").length([0, "2*pi"])Output7.0248147310407263931[5:6]
- 3.Frenet frameAgreesFind the unit tangent, principal normal and binormal of the helix at .Independent answer, so . points to : . .RatMath code
const a = analytic.curve(["cos(t)", "sin(t)", "t/2"], "t").at(0); [...a.tangent, ...a.normal, ...a.binormal]Output[0, 0.8944271909999158785[6:7], 0.4472135954999579392[8:9], -1.00000000000000000001:-0.99999999999999999999, 0, 0, 0, -0.4472135954999579392[9:8], 0.8944271909999158785[6:7]]
- 4.Curvature of a plane curveAgreesFind the curvature of the parabola as a function of , and at the vertex.Independent answer; at the vertex .RatMath code
const p = analytic.curve(["t", "t^2"], "t"); [String(p.curvature()), p.at(0).curvature]Output["2/(4*t^2*sqrt(4*t^2 + 1) + sqrt(4*t^2 + 1))", 2]
The formula is correct but not in its simplest form: . - 5.Osculating circleAgreesFind the osculating circle of at the origin.Independent answerRadius , centre on the normal (the -axis): .RatMath code
const a = analytic.curve(["t", "t^2"], "t").at(0); [a.radius, ...a.centre]Output[1/2, 0, 1/2]
- 6.EvolutesAgreesFind the evolute (the locus of centres of curvature) of .Independent answerCentre : , a semicubical parabola.RatMath code
analytic.curve(["t", "t^2"], "t").evolute().position.map(String)Output["-4*t^3", "3*t^2 + 1/2"]
- 7.Total curvatureAgreesFind the curvature and the total curvature of the circle of radius 3.Independent answer, length : total (the turning number of a simple closed curve times ).RatMath code
const c = analytic.curve(["3*cos(t)", "3*sin(t)"], "t"); [c.curvature(), c.totalCurvature([0, "2*pi"])]Output["1/3", 6.2831853071795864769[1:8]]
- 8.First fundamental formAgreesFind for the torus .Independent answer, : , , .RatMath code
const f = analytic.surface(["(2 + cos(v))*cos(u)", "(2 + cos(v))*sin(u)", "sin(v)"], ["u", "v"]).first(); [f.E, f.F, f.G].map(String)Output["cos(v)^2 + 4*cos(v) + 4", "0", "1"]
- 9.Gaussian curvature of the torusAgreesFind the Gaussian curvature of the torus, and its value on the outer () and inner () rims.Independent answer: outside (elliptic), inside (hyperbolic).RatMath code
const T = analytic.surface(["(2 + cos(v))*cos(u)", "(2 + cos(v))*sin(u)", "sin(v)"], ["u", "v"]); [String(T.gaussian()), T.at(0, 0).gaussian, T.at(0, "pi").gaussian, T.at(0, 0).kind, T.at(0, "pi").kind]Output["cos(v)/(cos(v) + 2)", 1/3, -1.00000000000000000001:-0.99999999999999999999, "elliptic", "hyperbolic"]
- 10.Surface areaAgreesFind the area of the torus.Independent answer.RatMath code
analytic.surface(["(2 + cos(v))*cos(u)", "(2 + cos(v))*sin(u)", "sin(v)"], ["u", "v"]).area({ u: [0, "2*pi"], v: [0, "2*pi"] })Output78.9568348189491943552:78.95683559836939812913
- 11.The sphereAgreesFind the Gaussian curvature of the unit sphere and its total curvature.Independent answer; total .RatMath code
const S = analytic.surface(["cos(u)*sin(v)", "sin(u)*sin(v)", "cos(v)"], ["u", "v"]); [S.gaussian(), S.totalCurvature({ u: [0, "2*pi"], v: [0, "pi"] })]Output["1", 12.56637053604279137628:12.5663706466088539262]
- 12.The hyperbolic planeAgreesFind the Gaussian curvature of the half-plane metric .Independent answerFor , ; here , , so .RatMath code
String(analytic.metric({ E: "1/v^2", F: 0, G: "1/v^2" }, ["u", "v"]).gaussian())Output-1
- 13.A cylinderAgreesFind the Gaussian and mean curvature of the unit cylinder .Independent answerPrincipal curvatures 1 (round) and 0 (along the rulings): , (the sign depends on the normal: with the outward normal , ).RatMath code
const C = analytic.surface(["cos(u)", "sin(u)", "v"], ["u", "v"]); [C.gaussian(), C.mean()].map(String)Output["0", "-1/2"]
- 14.A saddleAgreesFind and for at the origin.Independent answer, , : , .RatMath code
const a = analytic.surface(["u", "v", "u*v"], ["u", "v"]).at(0, 0); [a.gaussian, a.mean]Output[-1, 0]
- 15.Minimal surfacesAgreesShow the catenoid is minimal, and find its Gaussian curvature.Independent answer; .RatMath code
const C = analytic.surface(["cosh(v)*cos(u)", "cosh(v)*sin(u)", "v"], ["u", "v"]); [C.mean(), C.gaussian()].map(String)Output["0", "-(1/(sinh(v)^4 + 2*sinh(v)^2 + 1))"]
Correct, written with left unsimplified. - 16.Christoffel symbolsAgreesFind the Christoffel symbols of the plane in polar coordinates, .Independent answer, , all others 0.RatMath code
analytic.metric({ E: "1", F: 0, G: "r^2" }, ["r", "theta"]).christoffel()Output{ r_rr: "0", r_rtheta: "0", r_thetatheta: "-r", theta_rr: "0", theta_rtheta: "1/r", theta_thetatheta: "0" } - 17.GeodesicsAgreesIn the half-plane model, follow the unit-speed geodesic from heading in the direction for time 1. Where does it end?Independent answerIt is the unit semicircle about 0: , . At : .RatMath code
const g = analytic.metric({ E: "1/v^2", F: 0, G: "1/v^2" }, ["u", "v"]).geodesic({ from: [0, 1], direction: [1, 0], until: 1 }).exact().final; [g[0], g[1]]Output[0.76159[116365844010522:705603711068956], 0.64805[143471931860464:701836789653389]]
- 18.Parallel transportAgreesParallel-transport a tangent vector once round the circle of polar angle on the unit sphere. By what angle is it rotated?Independent answerThe holonomy equals the enclosed area (the cap): .RatMath code
const S = analytic.surface(["cos(u)*sin(v)", "sin(u)*sin(v)", "cos(v)"], ["u", "v"]); S.transport({ u: "2*pi*t", v: "pi/3" }, [0, 1], [1, 0]).angleOutput3.141[46458095877464051:59265358979323847]
The parameter interval must have rational ends, so the circle is written with , . The returned enclosure is wide (it runs from about 3.14146 to 3.14159), so the check allows 1e-4. - 19.Gauss–BonnetAgreesCheck the Gauss–Bonnet theorem on the patch , of the unit sphere.Independent answerfor a disc-like region. Here , and the boundary terms make up the rest.RatMath code
analytic.surface(["cos(u)*sin(v)", "sin(u)*sin(v)", "cos(v)"], ["u", "v"]).gaussBonnet({ u: [0, 1], v: [1, 2] }).agreeOutputtrue
- 20.Theorema egregiumAgreesCompute the Gaussian curvature of the sphere intrinsically from , , (with the polar angle and the longitude).Independent answerFor , : the same as the extrinsic value.RatMath code
String(analytic.metric({ E: "sin(v)^2", F: 0, G: "1" }, ["u", "v"]).gaussian())Output1