The output of DSolve
is a list
DSolve[{m f[x]^(3/2) f'[x] + 2 k f'[x]^2 - 2 k f[x] f''[x] == 0},
f[x], x]
{{f[x] -> (
E^(x C[1] + C[1] C[2]) k^2 C[
1]^2)/(-1 + E^((x C[1])/2 + (C[1] C[2])/2) m)^2}, {f[x] -> (
E^(x C[1] + C[1] C[2]) k^2 C[
1]^2)/(1 + E^((x C[1])/2 + (C[1] C[2])/2) m)^2}}
In order to define functions it is better to use Part
like so:
a1[x_] =
f[x] /. DSolve[{m f[x]^(3/2) f'[x] + 2 k f'[x]^2 - 2 k f[x] f''[x] ==
0}, f[x], x][[1]]
a2[x_] =
f[x] /. DSolve[{m f[x]^(3/2) f'[x] + 2 k f'[x]^2 - 2 k f[x] f''[x] ==
0}, f[x], x][[2]]
Now we can move on and ask Mathematica to Solve
Solve[a[0] == 1, C[1]]
and it complains a bit
This system cannot be solved with the methods available to Solve.
We can use assumptions to get
Assuming[k != 0, Solve[(a1[0] /. C[2] -> 0) == 1, C[1]]]
{{C[1] -> (1 - m)/k}, {C[1] -> (-1 + m)/k}}
Without assumptions, further progress can be made with the use of Reduce
Reduce[a1[0] == 1, C[1]]
giving
(-1 + m != 0 && k != 0 && C[2] == 0 && (C[1] == (-1 + m)/k || C[1] == (1 - m)/k)) || (C[ 3] \[Element] Integers && C[2] != 0 && -1 + E^((C[1] C[2])/2) m != 0 && k != 0 && (C[1] == ( m C[2] + 2 k ProductLog[C[3], -((E^(-((m C[2])/(2 k))) C[2])/(2 k))])/( k C[2]) || C[1] == (-m C[2] + 2 k ProductLog[C[3], (E^((m C[2])/(2 k)) C[2])/(2 k)])/( k C[2])))