I understand why you have to use Evaluate with D to make it work, but why then does the apostrophe form work for Derivate without Evaluate?
If I plot a derivative one way I get an error - and yes, I know I have to use Evaluate: Plot[D[Sin[x], x], {x, -6., 6.}] General::ivar: -5.99975 is not a valid variable.
But if I plot with an apostrophe it gives me the Cosine plot without Evaluate. Plot[Sin'[x], {x, -6., 6.}]
And I know Mathematica thinks they are identical since D[Sin[x], x] == Sin'[x] gives me True
Plotevaluates the code first settingxto a numeric value and does not evaluate the results ofD[Sin[x], x]andSin'[x]you see whenxis an undefined symbol.) – Michael E2 Oct 16 '22 at 01:09x = 1; D[Sin[x], x] == Sin'[x]. – xzczd Oct 16 '22 at 02:35