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