Internal
problem
ID
[9340]
Book
:
Differential
Equations:
Theory,
Technique,
and
Practice
by
George
Simmons,
Steven
Krantz.
McGraw-Hill
NY.
2007.
1st
Edition.
Section
:
Chapter
2.
Problems
for
Review
and
Discovery.
Drill
excercises.
Page
105
Problem
number
:
2(h)
Date
solved
:
Tuesday, September 30, 2025 at 06:16:40 PM
CAS
classification
:
[[_2nd_order, _missing_y]]
With initial conditions
ode:=diff(diff(y(x),x),x)-2*diff(y(x),x) = ln(x); ic:=[y(1) = exp(1), D(y)(1) = 1/exp(1)]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],{x,2}]-2*D[y[x],x]==Log[x]; ic={y[1]==Exp[1],Derivative[1][y][1]==1/Exp[1]}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-log(x) - 2*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) ics = {y(1): E, Subs(Derivative(y(x), x), x, 1): exp(-1)} dsolve(ode,func=y(x),ics=ics)