Internal
problem
ID
[6471]
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
:
42
Date
solved
:
Wednesday, March 05, 2025 at 12:51:17 AM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)+y(x)/x = sin(x); ic:=y(1/2*Pi) = 0; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]+y[x]/x==Sin[x]; ic={y[Pi/2]==0}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-sin(x) + Derivative(y(x), x) + y(x)/x,0) ics = {y(pi/2): 0} dsolve(ode,func=y(x),ics=ics)