# Mathematics: Can the result of a derivative for the Gradient Descent consist of only one value?

I have a problem of a task using the formula of the Gradient Descent:

Perform two steps of the gradient descent towards a local minimum for the function given below, using a step size of 0.1 and an initial value of [1, 1]

I only get as result of the derivative 0.4x1, because x2 does not exist. Is this correct or should the result for the derivative be (0.4, 0)?

Note: Sorry, if my equation of the derivative is bad. I'm not a mathematician. Please, correct me, if my equation is absolutely wrong.

• Yes, it is correct. You have only one variable in the function equation. The initial point should be [1, 200.2] – 10xAI Jul 19 '20 at 11:51
• How to calculate the second value 200.2? – Ramón Wilhelm Jul 19 '20 at 12:46
• 200.2 is just the f(x) for x=1. The point which will lie on a function will be (x, y) so [1, 200.2] will lie on the function. You can get the Gradient and then the next point and then Repeat. The gradient will have as many components as in the function(some may be zero) but it can't have more components than the function itself. – 10xAI Jul 19 '20 at 13:14
• This make sense. But I though you first have to compute the derivative, before you change the x to 1. – Ramón Wilhelm Jul 19 '20 at 13:20
• Yes, Gradient will be 0.4x only at point (1, 202.2). In short so that you don't get confuse, go ahead calculate the gradient and move towards the minima. – 10xAI Jul 19 '20 at 13:47

g(1) = 0.4