Internal
problem
ID
[8277]
Book
:
A
First
Course
in
Differential
Equations
with
Modeling
Applications
by
Dennis
G.
Zill.
12
ed.
Metric
version.
2024.
Cengage
learning.
Section
:
Chapter
1.
Introduction
to
differential
equations.
Review
problems
at
page
34
Problem
number
:
18
Date
solved
:
Tuesday, September 30, 2025 at 05:21:17 PM
CAS
classification
:
[_separable]
With initial conditions
ode:=(2*y(x)-2)*diff(y(x),x) = 2*x-1; ic:=[y(0) = 1]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=(2*y[x]-2)*D[y[x],x]==2*x-1; ic={y[0]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-2*x + (2*y(x) - 2)*Derivative(y(x), x) + 1,0) ics = {y(0): 1} dsolve(ode,func=y(x),ics=ics)