Problem: Differentiate
w.r.t \(\frac {r}{\sqrt {a}}\) to produce
In other words, we want to treat \(\frac {r}{\sqrt {a}}\) as \(x\) in the expression
| Mathematica Clear[p, x, r, a] p[x_] := Exp[2 x] + x^2 + 3*x; v = r/Sqrt[a]; With[{v = x}, Inactive[D][p[v], v]]; Activate[%]; % /. x -> v
|
\(\frac {2 r}{\sqrt {a}}+2 e^{\frac {2 r}{\sqrt {a}}}+3\) |