Internal
problem
ID
[9339]
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(g)
Date
solved
:
Tuesday, September 30, 2025 at 06:16:36 PM
CAS
classification
:
[[_2nd_order, _quadrature]]
With initial conditions
ode:=diff(diff(y(x),x),x) = tan(x); ic:=[y(1) = 1, D(y)(1) = -1]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],{x,2}]==Tan[x]; ic={y[1]==1,Derivative[1][y][1]==-1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-tan(x) + Derivative(y(x), (x, 2)),0) ics = {y(1): 1, Subs(Derivative(y(x), x), x, 1): -1} dsolve(ode,func=y(x),ics=ics)