DSolve::bvsing RSolve::bvsing
Examples
Basic Examples (1)
The initial conditions are specified at x == 0, which is a singular point for the ODE:
eq = Derivative[2][y][x] - ((1 + x) Derivative[1][y][x]/x) + (y[x]/x) == 0 && y[0] == 1 && Derivative[1][y][0] == 1;As a result, the solution depends on the arbitrary constant C[2]:
sol = DSolve[eq, y, x]eq /. sol // SimplifyAvoid this problem by specifying the boundary conditions at a nearby nonsingular point:
eq1 = Derivative[2][y][x] - ((1 + x) Derivative[1][y][x]/x) + (y[x]/x) == 0 && y[(1/1000)] == 1 && Derivative[1][y][(1/1000)] == 1;sol = DSolve[eq1, y, x]eq1 /. sol // Simplify