Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Find out about Online Training
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 11 Professional
Maple 11 Academic
Maple 11 Student Use
Recorded Online Seminars
FREE Training Resources


MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

View Maple 10 in Action
Product Comparison Chart

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple 10 Training Videos
MaplePrimes, blogs, forums
Elite Maintenance Program
Application Centre
Powertools
Maple User Group (MUG)
Join the Maple User Group
(MUG)

Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] dsolve does not find second solution

Search email archive for  

[MUG] dsolve does not find second solution
Author: Helmut Kahovec    Posted: Mon, 16 Dec 2002 12:26:41 +0100

>> From: Helmut Kahovec "helmut.kahovec"

Dear Maple users,

One of my students found a bug in dsolve(). It behaves the same in
Maple7 and Maple8. The following Maple7 session shows that bug.

> restart;
> infolevel[dsolve]:=10;

infolevel[dsolve] := 10

> ode1:=diff(y(x),x)+(4*x+3*y(x)+1)/(3*x+2*y(x)+1);

/d \ 4 x + 3 y(x) + 1
ode1 := |-- y(x)| + ----------------
\dx / 3 x + 2 y(x) + 1

> sol1:=dsolve(ode1,y(x));
Methods for first order ODEs:
Trying to isolate the derivative dy/dx...
Successful isolation of dy/dx
--- Trying classification methods ---
trying a quadrature
trying 1st order linear
trying Bernoulli
trying separable
trying inverse linear
trying homogeneous types:
trying homogeneous C
trying homogeneous types:
trying homogeneous D
<- homogeneous successful
<- homogeneous successful

2 2
3/2 (x + 1) _C1 - 1/2 sqrt((x + 1) _C1 + 4)
sol1 := y(x) = 1 - ---------------------------------------------
_C1

There should be a second solution, which is missing:

> sol2:=y(x)=1-(3/2*(x+1)*_C1+1/2*((x+1)^2*_C1^2+4)^(1/2))/_C1;

2 2
3/2 (x + 1) _C1 + 1/2 sqrt((x + 1) _C1 + 4)
sol2 := y(x) = 1 - ---------------------------------------------
_C1

> odetest(sol1,ode1);

0

> odetest(sol2,ode1);

0

We can produce both solutions if we first change coordinates
appropriately:

> with(PDEtools):
> T:={x=t-1,y(x)=z(t)+1};

T := {y(x) = z(t) + 1, x = t - 1}

> ode2:=dchange(T,ode1);

/d \ 4 t + 3 z(t)
ode2 := |-- z(t)| + ------------
\dt / 3 t + 2 z(t)

> dsolve(ode2,z(t));
Methods for first order ODEs:
Trying to isolate the derivative dz/dt...
Successful isolation of dz/dt
--- Trying classification methods ---
trying a quadrature
trying 1st order linear
trying Bernoulli
trying separable
trying inverse linear
trying homogeneous types:
trying homogeneous D
<- homogeneous successful

2 2
- 3/2 t _C1 - 1/2 sqrt(t _C1 + 4)
z(t) = -----------------------------------,
_C1

2 2
- 3/2 t _C1 + 1/2 sqrt(t _C1 + 4)
z(t) = -----------------------------------
_C1

The inverse transformation gives the same two solutions as before:

> Tinv:={t=x+1,z(t)=y(x)-1};

Tinv := {z(t) = y(x) - 1, t = x + 1}

> sol12:=op(map(isolate,subs(Tinv,[%%]),y(x)));

sol12 :=

2 2
- 3/2 (x + 1) _C1 - 1/2 sqrt((x + 1) _C1 + 4)
y(x) = ----------------------------------------------- + 1,
_C1

2 2
- 3/2 (x + 1) _C1 + 1/2 sqrt((x + 1) _C1 + 4)
y(x) = ----------------------------------------------- + 1
_C1

> map(
normal,
zip(
`-`,
map(subs,[sol2,sol1],y(x)), # you may have to use [sol1,sol2],
map(subs,[sol12],y(x)) # instead
)
);

[0, 0]


Kind regards,

Helmut

[View Complete Thread]



Previous by date: [MUG] Re: Forcing Maple Output with Simplifying, Maple User Group
Next by date: [MUG] Nargs, PierLuigi Zezza
Previous thread: [MUG] Two bugs in evalapply(), Helmut Kahovec
Next thread: [MUG] Nargs, PierLuigi Zezza



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055