My question is very simple. I have a function f(r) with some other parameters and I want to plot {f'(r)}/{4\pi} vs P where r is satisfying the equation f(r)=0. I don’t know where am I doing wrong. I have tried the following code but gives no answer. Can any one help me?
f[r_]:=1 - (a*Q^4)/(20*r^6) + Q^2/r^2 - (2*M)/r + (8/3)*P*Pi*r^2 - c*r^(-1 - 3*\[Omega]
Clear[a, c, \[Omega], Q, M]
a = 0.5;
c = 0.2;
\[Omega] = -3^(-1);
Q = 0.7;
M = 10;
rH = r /. Solve[f[r] == 0, r, Reals];
Plot[D[f[r], r]/(4*Pi) /. r -> rH, {P, 0, 10}, PlotRange -> {0, 10}, PlotStyle -> Green, AxesOrigin -> {0, 0}]
