This can't be solved analytically by Mathematica. One option is to use ParametricNDSolveValue
ClearAll[a,b,f,h,x,s]
eqn = h'[x]==(a*s+(9b^2/8s-(s+1) f) x^2-3b/2s*h[x]*x^2+h[x]^2 x^2)/(h[x]*x^3);
bc = h[1]==1;
vals = {s->1/2,f->7/10};
sol = DSolve[{eqn/.vals,bc},h[x],x]
sol = ParametricNDSolveValue[{eqn /. vals, bc}, h, {x, 1, 10}, {a, b}]
This plots for a=10
and b=3
Plot[sol[10, 3][x], {x, 1, 10}, PlotStyle -> Red,
GridLines -> Automatic, GridLinesStyle -> LightGray]
Now you can make a Manipulate and slider for a
and slider for b
. I'll add one soon.
Version with Manipulate
ClearAll[a, b, f, h, x, s]
eqn = h'[x] == (a*s + (9 b^2/8 s - (s + 1) f) x^2 - 3 b/2 s*h[x]*x^2 +
h[x]^2 x^2)/(h[x]*x^3);
bc = h[1] == 1;
vals = {s -> 1/2, f -> 7/10};
sol = ParametricNDSolveValue[{eqn /. vals, bc}, h, {x, 1, 10}, {a, b}];
Manipulate[
Plot[sol[a0, b0][x], {x, 1, 10}, PlotStyle -> Red,
GridLines -> Automatic, GridLinesStyle -> LightGray],
{{a0, 1, "a"}, .1, 10, .1, Appearance -> "Labeled"},
{{b0, 1, "b"}, .1, 10, .1, Appearance -> "Labeled"},
TrackedSymbols :> {a0, b0}
]
here
also for more details $\endgroup$