Problems solved in full
-
Steepness of a hillside rising 3 metres east and 4 metres north 6 steps
You are on a hillside where the ground rises 3 metres per 100 travelled due east, and 4 metres per 100 travelled due north. How steep is the hill, which way does it fall, and what heading must a road take to climb at half that gradient?
-
Those two measurements are the partial derivatives. Keeping them as 3 and 4 per hundred reads more easily than 0.03 and 0.04, and changes nothing.
-
The steepest slope is the length of the gradient, which is neither the sum of the parts nor the larger of them. Three and four give five, and five is what a walker feels.
-
Its heading is atan2(4, 3), which is 53.1° round from east. Downhill is the opposite way, at 233.1°. Nothing was measured along either.
-
For a road at 2.5 per hundred, run the identity backwards. The slope on a heading θ away from that steepest heading is 5 cos θ, so cos θ = 2.5/5 and θ = 60°.
-
Sixty, not forty-five. A road at 45° would still be climbing at 3.54 per hundred, which is 71% of the steepest and nowhere near half of it.
-
The length comes from the same cosine. Gaining a fixed height at half the gradient means covering twice the ground for as long as the slope holds, and that factor of two is what the switchbacks on a mountain road are made of.
Answer
The hill is 5 m per 100 m, rising at a heading of 53.1° and falling at 233.1°, and a road holding 2.5 m per 100 m must run 60° off that steepest heading and travel twice as far. The tool answers the first half: point it any way you like and it gives the slope. The second half is the inverse question, and it is the one that a road engineer, a ramp accessibility standard and a ski piste grading all actually ask. Given the gradient I am allowed, what heading am I forced onto?
-
-
The heading with no slope, and how long it stays level 6 steps
At (1, 1) on 1.5x² + 2y² the panel puts the slope on a heading of 143.1° at 0.000. Work out what the ground does if you keep walking that way, and decide whether that heading is one you could follow to stay level.
-
A quarter turn from the steepest heading of 53.1°. The two terms of the dot product come out −2.4 and +2.4, so the slope card reads 0.000.
-
Zero slope is a statement about the first derivative and nothing else. Take the second one along the same heading. It is the quadratic form built from the three second partials, with the same cosine and sine inside it.
-
On this surface f_xx is 3, f_yy is 4 and the mixed partial is 0, so the second derivative along the level heading is 3.36. Positive, so the ground curves upward.
-
The height along that line is therefore a parabola with its lowest point where you are standing. Half a unit out the ground has risen 0.42, from 3.5 to 3.92, and the slice panel draws exactly that curve.
-
Turn it into a property of the contour. The curve that really does hold height bends away from the tangent at the second derivative divided by the gradient: 0.672, which is a radius of 1.488.
-
The standard formula for the curvature of a level set gives the same number from the partials alone, with no heading anywhere in it. Two routes, one answer, and it is exactly 84/125.
Answer
No. That heading is level for an instant and then climbs. Walk half a unit along it and you have gained 0.42, where the first derivative predicted 0. The two zero-slope headings are tangents to the contour rather than the contour itself, and staying level means turning continuously, on a circle of radius 1.488 at this point. The panel gives you the tangent; the curvature says how far it is worth trusting.
-
Learning path