A hill can be described by $h(x,y) = 300e^{-(x^2+y^2)}$, where $x$ and $y$ are horizontal distances (in km) measured in the directions East and North, respectively, and $h$ is the height (in m) of the ground above the sea level.
A rail way runs SW to NE and follows the straight line $x-y=2$. What is the steepest slope that the trains will have to climb?
My working
First I found the partial derivatives $$\frac{\partial h}{\partial x} = -600000xe^{-(x^2+y^2)}$$ and $$\frac{\partial y}{\partial x} = -600000ye^{-(x^2+y^2)}$$ and then I know that $y=x-2$ is a straight line passing through (0,-2), therefore its directional vector is just gonna be $(\vec{i} + \vec{j})$, and naturally its unit vector would be $\frac{1}{\sqrt{2}}(\vec{i} + \vec{j})$ Now I understand that if I take the dot product of the $\nabla$ and unit vector $\hat{\vec{r}}$, that would give me the steepest ascent. However, I'm not sure how I would go about finding the steepest slope since I wasn't given any coordinates?
Steepest slope occurs at point of inflection, at zero curvature point in any direction as it is polar symmetric. I let $y=0$ and set $h=y$ hoping it would not confuse, just I wished you to recognize the standard Gaussian Bell distribution.
$$ \frac{dy}{dx} = - xy/ \sigma^2 \tag1 $$
which is what gives the distribution profile basically. Now set $y^{\prime \prime} $ to zero ( as it is for any product,and simplify
$$ \frac{dy}{dx} = -\frac{y}{x} \tag2 $$
Eliminate $y$ in equated RHS of (1) and (2) to obtain point of inflection of maximum slope.
$$ x=\pm \sigma \tag3 $$
Finally integrate for shape of Bell
$$ y= y_0 \,e^{ {-x^2}/{2 \sigma^2} } \tag4$$