Internal
problem
ID
[13631]
Book
:
AN
INTRODUCTION
TO
ORDINARY
DIFFERENTIAL
EQUATIONS
by
JAMES
C.
ROBINSON.
Cambridge
University
Press
2004
Section
:
Chapter
5,
Trivial
differential
equations.
Exercises
page
33
Problem
number
:
5.4
(ii)
Date
solved
:
Wednesday, March 05, 2025 at 10:05:38 PM
CAS
classification
:
[_quadrature]
With initial conditions
ode:=diff(y(x),x) = x-1/3*x^3; ic:=y(-1) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]==x-1/3*x^3; ic={y[-1]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x**3/3 - x + Derivative(y(x), x),0) ics = {y(-1): 1} dsolve(ode,func=y(x),ics=ics)