- #1
Lambda96
- 223
- 75
- Homework Statement
- Write ##h(r)=H## as ##y(H,x)##
and
Calculate steepest and flattest slope with ##|| \nabla h(r) ||##
- Relevant Equations
- none
Hi
I am not quite sure if I have calculated the whole task correctly, since I am not sure whether I have solved task e correctly and unfortunately have problems with task f
The function h(r) looks like this ##h(r)=\frac{x}{\sqrt{x^2+y^2}}+1##
I got the following for the gradient
##\nabla h(r)=\left(\begin{array}{c} -\frac{x^2}{(x^2+y^2)^{\frac{3}{2}}} + \frac{1}{\sqrt{x^2+y^2}} \\ - \frac{xy}{(x^2+y^2)^{\frac{3}{2}}} \end{array}\right)##
and the plot for contour lines looks like this:
##\textbf{Task e}##
I then solved the equation ##h(r)=H## for y as follows ##y(H,x)= \sqrt{\frac{x^2}{(H-1)^2}-x^2}## The shape of the contour lines in the first square are all straight lines
I could only see that they are straight lines from the contour lines plot and not from the equation above, did I calculate y(H,x) incorrectly?
##\textbf{Task f}##
The amount of the gradient should be calculated as follows
##|| \nabla h(r) ||=\sqrt{\biggl( -\frac{x^2}{(x^2+y^2)^{\frac{3}{2}}} + \frac{1}{\sqrt{x^2+y^2}} \biggr)^2 + \biggl( -\frac{xy}{(x^2+y^2)^{\frac{3}{2}}} \biggr)^2}##
and then got the following
##|| \nabla h(r) ||= \sqrt{\frac{y^2}{(x^2+y^2)^2}}##
For the steepest and flattest slope, I have to insert the points into the above equation where the gradient is zero, so ##\nabla h(r)= \left(\begin{array}{c} 0 \\ 0 \\ \end{array}\right)## I have calculated these points with mathematica and if I have not made a mistake, unfortunately only complex solutions come out
Have I made a mistake in calculating the steepest or flattest ascent or can I only do this with ##|| \nabla h(r) ||##?
I am not quite sure if I have calculated the whole task correctly, since I am not sure whether I have solved task e correctly and unfortunately have problems with task f
The function h(r) looks like this ##h(r)=\frac{x}{\sqrt{x^2+y^2}}+1##
I got the following for the gradient
##\nabla h(r)=\left(\begin{array}{c} -\frac{x^2}{(x^2+y^2)^{\frac{3}{2}}} + \frac{1}{\sqrt{x^2+y^2}} \\ - \frac{xy}{(x^2+y^2)^{\frac{3}{2}}} \end{array}\right)##
and the plot for contour lines looks like this:
##\textbf{Task e}##
I then solved the equation ##h(r)=H## for y as follows ##y(H,x)= \sqrt{\frac{x^2}{(H-1)^2}-x^2}## The shape of the contour lines in the first square are all straight lines
I could only see that they are straight lines from the contour lines plot and not from the equation above, did I calculate y(H,x) incorrectly?
##\textbf{Task f}##
The amount of the gradient should be calculated as follows
##|| \nabla h(r) ||=\sqrt{\biggl( -\frac{x^2}{(x^2+y^2)^{\frac{3}{2}}} + \frac{1}{\sqrt{x^2+y^2}} \biggr)^2 + \biggl( -\frac{xy}{(x^2+y^2)^{\frac{3}{2}}} \biggr)^2}##
and then got the following
##|| \nabla h(r) ||= \sqrt{\frac{y^2}{(x^2+y^2)^2}}##
For the steepest and flattest slope, I have to insert the points into the above equation where the gradient is zero, so ##\nabla h(r)= \left(\begin{array}{c} 0 \\ 0 \\ \end{array}\right)## I have calculated these points with mathematica and if I have not made a mistake, unfortunately only complex solutions come out
Have I made a mistake in calculating the steepest or flattest ascent or can I only do this with ##|| \nabla h(r) ||##?