DSolve::bvfail
RSolve::bvfail
The values of the arbitrary constants in the general solution cannot be found:
DSolve[y'[x] == x && f[y[1], y[1]] == 5, y, x]Replace this boundary condition with a polynomial function of y[1]:
sol = DSolve[y'[x] == x && y[1] + y[1] ^ 2 == 5, y, x]y[1] + y[1] ^ 2 /. sol//Simplify