Suppose I have $f(x) = 5x$.
I know that $\frac{d\ f(x)}{dx} = 5$.
But what is $\frac{d f(x)}{d 5}$ , the derivative of the function $f$ with respect to the constant 5?
The reason I ask is that I'm implementing software that computes auto-differentiation (a la TensorFlow). I want to know if I can treat a constant like a variable (as above) or if I have to do something else. This Stanford deep learning class webpage is what I'm referring to:
$$ f(x) = c+x \\ f_a(x) = ax $$ Where the functions $f_c$, $f_a$ translate the input by a constant of $c$ and scale the input by a constant of $a$, respectively. These are technically special cases of addition and multiplication, but we introduce them as (new) unary gates here since we do not need the gradients for the constants $c$, $a$.
That above statement implies that you could compute the derivative w.r.t. a constant, but they chose not to.
This post did not answer my question: derivative with respect to constant.
Thanks.