Hi everyone, As the title said, I want to plot this function using mathematica:

where the only variable is the redshift z, how can I do that with the function Plot in mathematica ? The goal si to obtain the dL(z) as function of redshift z. Thanks.
Hi everyone, As the title said, I want to plot this function using mathematica:

where the only variable is the redshift z, how can I do that with the function Plot in mathematica ? The goal si to obtain the dL(z) as function of redshift z. Thanks.
you need value of parameters..
Thank you so much, amazing!
Perhaps you meant to r[z_] instead of r[_z]. Instead of d(ln(u+1)) try writing D[Log[1+u],u] and integrating in the variable u, as in
Integrate[f[u] D[Log[1 + u], u], {u, 0, 1}]
Use NIntegrate instead of symbolic integration:
c = Integrate[3 (4 + 3 u/(1 + u)) D[Log[u + 1], u], {u, 0, 1}];
r = E^c;
d[z_] := 300000 NIntegrate[(1 +
z)/(75 (.3 (1 + u)^3 +
r (1 + u)^(3 (1 + (1 + u/(1 + u)))))), {u, 0, z}];
Plot[d[z], {z, 0, 10}]
Yeeahh it works!!! Thank you so much! I don’t understand why it didn’t work with Integrate. Again, thank you!
Probably because for every value of z it wastes a long time (a couple of seconds on my system) trying (unsuccessfully) to compute the integral symbolically, over and over again:
c = Integrate[3 (4 + 3 u/(1 + u)) D[Log[u + 1], u], {u, 0, 1}];
r = E^c;
dSymbolical[z_] :=
300000 Integrate[(1 +
z)/(75 (.3 (1 + u)^3 +
r (1 + u)^(3 (1 + (1 + u/(1 + u)))))), {u, 0, z}];
Timing[dSymbolical[.1]]
Timing[N[dSymbolical[.1]]]