Internal
problem
ID
[7730]
Book
:
Engineering
Mathematics.
By
K.
A.
Stroud.
5th
edition.
Industrial
press
Inc.
NY.
2001
Section
:
Program
24.
First
order
differential
equations.
Further
problems
24.
page
1068
Problem
number
:
13
Date
solved
:
Tuesday, September 30, 2025 at 05:02:46 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=-y(x)+x*diff(y(x),x) = x^3*cos(x); ic:=[y(Pi) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=x*D[y[x],x]-y[x]==x^3*Cos[x]; ic={y[Pi]==0}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x**3*cos(x) + x*Derivative(y(x), x) - y(x),0) ics = {y(pi): 0} dsolve(ode,func=y(x),ics=ics)