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. 1.The helixAgrees
    For the helix r(t)=(cos⁡t,sin⁡t,t/2)\mathbf r(t) = (\cos t, \sin t, t/2), find the speed, curvature and torsion.
    Independent answer
    ∣r′∣=1+14=52|\mathbf r'| = \sqrt{1 + \tfrac14} = \tfrac{\sqrt5}2. For (acos⁡t,asin⁡t,bt)(a\cos t, a\sin t, bt): κ=aa2+b2=15/4=45\kappa = \dfrac{a}{a^2 + b^2} = \dfrac{1}{5/4} = \tfrac45, τ=ba2+b2=25\tau = \dfrac{b}{a^2 + b^2} = \tfrac25.
    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. 2.Arc lengthAgrees
    Find the length of one turn of the helix, 0≤t≤2π0 \le t \le 2\pi.
    Independent answer
    2π⋅52=π5≈7.0248152\pi\cdot\tfrac{\sqrt5}2 = \pi\sqrt5 \approx 7.024815.
    RatMath code
    analytic.curve(["cos(t)", "sin(t)", "t/2"], "t").length([0, "2*pi"])
    Output
    7.0248147310407263931[5:6]
  3. 3.Frenet frameAgrees
    Find the unit tangent, principal normal and binormal of the helix at t=0t = 0.
    Independent answer
    r′(0)=(0,1,12)\mathbf r'(0) = (0, 1, \tfrac12), so T=15(0,2,1)T = \tfrac1{\sqrt5}(0, 2, 1). T′T' points to (−1,0,0)(-1, 0, 0): N=(−1,0,0)N = (-1, 0, 0). B=T×N=15(0,−1,2)B = T\times N = \tfrac1{\sqrt5}(0, -1, 2).
    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. 4.Curvature of a plane curveAgrees
    Find the curvature of the parabola y=x2y = x^2 as a function of xx, and at the vertex.
    Independent answer
    κ=∣y′′∣(1+y′2)3/2=2(1+4x2)3/2\kappa = \dfrac{|y''|}{(1 + y'^2)^{3/2}} = \dfrac{2}{(1 + 4x^2)^{3/2}}; at the vertex κ=2\kappa = 2.
    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: 4t24t2+1+4t2+1=(4t2+1)3/24t^2\sqrt{4t^2+1} + \sqrt{4t^2+1} = (4t^2+1)^{3/2}.
  5. 5.Osculating circleAgrees
    Find the osculating circle of y=x2y = x^2 at the origin.
    Independent answer
    Radius 1/κ=121/\kappa = \tfrac12, centre on the normal (the yy-axis): (0,12)(0, \tfrac12).
    RatMath code
    const a = analytic.curve(["t", "t^2"], "t").at(0);
    [a.radius, ...a.centre]
    Output
    [1/2, 0, 1/2]
  6. 6.EvolutesAgrees
    Find the evolute (the locus of centres of curvature) of (t,t2)(t, t^2).
    Independent answer
    Centre =r+1+4t22 (−2t,1)1⋅11= \mathbf r + \dfrac{1 + 4t^2}{2}\,\dfrac{(-2t, 1)}{1}\cdot\dfrac{1}{1}: (t−2t(1+4t2)⋅12⋅2, t2+1+4t22)=(−4t3,3t2+12)\left(t - 2t(1 + 4t^2)\cdot\tfrac12\cdot2,\ t^2 + \tfrac{1 + 4t^2}{2}\right) = (-4t^3, 3t^2 + \tfrac12), 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. 7.Total curvatureAgrees
    Find the curvature and the total curvature ∫κ ds\int\kappa\,ds of the circle of radius 3.
    Independent answer
    κ=13\kappa = \tfrac13, length 6π6\pi: total 2π2\pi (the turning number of a simple closed curve times 2π2\pi).
    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. 8.First fundamental formAgrees
    Find E,F,GE, F, G for the torus ((2+cos⁡v)cos⁡u,(2+cos⁡v)sin⁡u,sin⁡v)((2 + \cos v)\cos u, (2 + \cos v)\sin u, \sin v).
    Independent answer
    ru=(2+cos⁡v)(−sin⁡u,cos⁡u,0)\mathbf r_u = (2 + \cos v)(-\sin u, \cos u, 0), rv=(−sin⁡vcos⁡u,−sin⁡vsin⁡u,cos⁡v)\mathbf r_v = (-\sin v\cos u, -\sin v\sin u, \cos v): E=(2+cos⁡v)2E = (2 + \cos v)^2, F=0F = 0, G=1G = 1.
    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. 9.Gaussian curvature of the torusAgrees
    Find the Gaussian curvature of the torus, and its value on the outer (v=0v = 0) and inner (v=πv = \pi) rims.
    Independent answer
    K=cos⁡v2+cos⁡vK = \dfrac{\cos v}{2 + \cos v}: 13\tfrac13 outside (elliptic), −1-1 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. 10.Surface areaAgrees
    Find the area of the torus.
    Independent answer
    ∫02π∫02π(2+cos⁡v) dv du=4π⋅2π=8π2≈78.9568\int_0^{2\pi}\int_0^{2\pi}(2 + \cos v)\,dv\,du = 4\pi\cdot2\pi = 8\pi^2 \approx 78.9568.
    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"] })
    Output
    78.9568348189491943552:78.95683559836939812913
  11. 11.The sphereAgrees
    Find the Gaussian curvature of the unit sphere and its total curvature.
    Independent answer
    K=1K = 1; total ∫K dA=4π=2πχ(S2)\int K\,dA = 4\pi = 2\pi\chi(S^2).
    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. 12.The hyperbolic planeAgrees
    Find the Gaussian curvature of the half-plane metric du2+dv2v2\dfrac{du^2 + dv^2}{v^2}.
    Independent answer
    For E=G=e2ϕE = G = e^{2\phi}, K=−e−2ϕΔϕK = -e^{-2\phi}\Delta\phi; here ϕ=−ln⁡v\phi = -\ln v, Δϕ=1/v2\Delta\phi = 1/v^2, so K=−v2⋅1v2=−1K = -v^2\cdot\tfrac1{v^2} = -1.
    RatMath code
    String(analytic.metric({ E: "1/v^2", F: 0, G: "1/v^2" }, ["u", "v"]).gaussian())
    Output
    -1
  13. 13.A cylinderAgrees
    Find the Gaussian and mean curvature of the unit cylinder (cos⁡u,sin⁡u,v)(\cos u, \sin u, v).
    Independent answer
    Principal curvatures 1 (round) and 0 (along the rulings): K=0K = 0, ∣H∣=12|H| = \tfrac12 (the sign depends on the normal: with the outward normal ru×rv\mathbf r_u\times\mathbf r_v, H=−12H = -\tfrac12).
    RatMath code
    const C = analytic.surface(["cos(u)", "sin(u)", "v"], ["u", "v"]);
    [C.gaussian(), C.mean()].map(String)
    Output
    ["0", "-1/2"]
  14. 14.A saddleAgrees
    Find KK and HH for z=xyz = xy at the origin.
    Independent answer
    fxy=1f_{xy} = 1, fxx=fyy=0f_{xx} = f_{yy} = 0, ∇f=0\nabla f = 0: K=fxxfyy−fxy2=−1K = f_{xx}f_{yy} - f_{xy}^2 = -1, H=0H = 0.
    RatMath code
    const a = analytic.surface(["u", "v", "u*v"], ["u", "v"]).at(0, 0);
    [a.gaussian, a.mean]
    Output
    [-1, 0]
  15. 15.Minimal surfacesAgrees
    Show the catenoid (cosh⁡vcos⁡u,cosh⁡vsin⁡u,v)(\cosh v\cos u, \cosh v\sin u, v) is minimal, and find its Gaussian curvature.
    Independent answer
    H=0H = 0; K=−1cosh⁡4vK = -\dfrac{1}{\cosh^4 v}.
    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 sinh⁡4v+2sinh⁡2v+1=cosh⁡4v\sinh^4 v + 2\sinh^2 v + 1 = \cosh^4 v left unsimplified.
  16. 16.Christoffel symbolsAgrees
    Find the Christoffel symbols of the plane in polar coordinates, ds2=dr2+r2dθ2ds^2 = dr^2 + r^2d\theta^2.
    Independent answer
    Γθθr=−r\Gamma^r_{\theta\theta} = -r, Γrθθ=Γθrθ=1r\Gamma^\theta_{r\theta} = \Gamma^\theta_{\theta r} = \tfrac1r, 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. 17.GeodesicsAgrees
    In the half-plane model, follow the unit-speed geodesic from (0,1)(0, 1) heading in the uu direction for time 1. Where does it end?
    Independent answer
    It is the unit semicircle about 0: u=tanh⁡tu = \tanh t, v=sech⁡tv = \operatorname{sech} t. At t=1t = 1: (0.761594,0.648054)(0.761594, 0.648054).
    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. 18.Parallel transportAgrees
    Parallel-transport a tangent vector once round the circle of polar angle π/3\pi/3 on the unit sphere. By what angle is it rotated?
    Independent answer
    The holonomy equals the enclosed area (the cap): 2π(1−cos⁡π3)=π2\pi(1 - \cos\tfrac\pi3) = \pi.
    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]).angle
    Output
    3.141[46458095877464051:59265358979323847]
    The parameter interval must have rational ends, so the circle is written with u=2πtu = 2\pi t, 0≤t≤10 \le t \le 1. The returned enclosure is wide (it runs from about 3.14146 to 3.14159), so the check allows 1e-4.
  19. 19.Gauss–BonnetAgrees
    Check the Gauss–Bonnet theorem on the patch 0≤u≤10 \le u \le 1, 1≤v≤21 \le v \le 2 of the unit sphere.
    Independent answer
    ∬K dA+∮κg ds+∑(π−θi)=2π\iint K\,dA + \oint\kappa_g\,ds + \sum(\pi - \theta_i) = 2\pi for a disc-like region. Here ∬K dA=∫01∫12sin⁡v=cos⁡1−cos⁡2\iint K\,dA = \int_0^1\int_1^2\sin v = \cos1 - \cos2, 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] }).agree
    Output
    true
  20. 20.Theorema egregiumAgrees
    Compute the Gaussian curvature of the sphere intrinsically from E=sin⁡2vE = \sin^2 v, F=0F = 0, G=1G = 1 (with vv the polar angle and uu the longitude).
    Independent answer
    For ds2=dv2+f(v)2du2ds^2 = dv^2 + f(v)^2du^2, K=−f′′/f=−(−sin⁡v)/sin⁡v=1K = -f''/f = -(-\sin v)/\sin v = 1: the same as the extrinsic value.
    RatMath code
    String(analytic.metric({ E: "sin(v)^2", F: 0, G: "1" }, ["u", "v"]).gaussian())
    Output
    1