https://en.wikipedia.org/wiki/Gradient
Gradient is a vector which we can obtain from any differentable function taking its partial derivatives.
From Wiki: "...the gradient points in the direction of the greatest rate of increase of the function"
I cant understand why this vector points in direction of greatest increase of a function! From definition of partial derivative it is a limit of ratio increment of function to increment of argument. Increment of argument, by definition, should tend to zero. So argument should be positive? But for some function increasing the argument we can receive lesser value of function
For example lets consider function
y = -x^2
Gradient of this function is
-2x or (1, -2x)?
How I can find direction of increase of this function in point (-1;-1)?
Feeling lost. Sorry for mess.
Let's look at your one dimensional case. The gradient of the function $f\left(x\right) = -x^2$ is the one-dimensional vector $-2x$, which is itself a function of x. Say x is positive, then the gradient is negative, because the function $-x^2$ does indeed increase as x gets less positive. If x is negative, the gradient is positive, because the function does indeed increase as x gets less negative (it's maxiumum is at 0). The key here is that the gradient is itself a function of x, and it will be negative on the regions where the function is decreasing (since it will be increasing in the other direction).
The same goes for multiple dimensions. Consider, for example:
$f\left(x,y\right)=x^2 - y^3$
then the gradient of f would be the vector
$\left(\begin{array}{c} \frac{\partial z}{\partial x}\\\frac{\partial z}{\partial y}\end{array}\right)=\left(\begin{array}{c} 2x\\-3y^2\end{array}\right)$
Which would indeed still point in the xy-direction of steepest ascent.