Internal
problem
ID
[6443]
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
:
14
Date
solved
:
Sunday, March 30, 2025 at 11:01:16 AM
CAS
classification
:
[_separable]
With initial conditions
ode:=(x^2+1)*diff(y(x),x)+3*x*y(x) = 5*x; ic:=y(1) = 2; dsolve([ode,ic],y(x), singsol=all);
ode=(1+x^2)*D[y[x],x]+3*x*y[x]==5*x; ic={y[1]==2}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(3*x*y(x) - 5*x + (x**2 + 1)*Derivative(y(x), x),0) ics = {y(1): 2} dsolve(ode,func=y(x),ics=ics)