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] Re: dsolve does not find second solution

Search email archive for  

[MUG] Re: dsolve does not find second solution
Author: Edgardo S Cheb-Terrab    Posted: Thu, 02 Jan 2003 15:52:03 -0800

>> From: "Edgardo S. Cheb-Terrab" "ecterrab"

> ... (regarding)
> >ode1:=diff(y(x),x)=-(4*x+3*y(x)+1)/(3*x+2*y(x)+1);
>..
> The solutions are indeed (explicit) branches of one (implicit) solution. MAPLE
> should return either both (explicit) branches or stop at the implicit
> solution.

Due to the arbitrary character of the integration constants, what seems to be
two solutions are actually only one and the same - Maple is not missing a
solution or a branch of it (there were previous replies to this).

> ...
> The bigger problem here is: why does MAPLE not recognize this ODE as exact?
> >ode1:=diff(y(x),x)=-(4*x+3*y(x)+1)/(3*x+2*y(x)+1);
> >with(DEtools):
> >odeadvisor(ode1,y(x),[exact]);
> [NONE]

This is a different thing. The ode1 you show,

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

4 x + 3 y + 1
ode1 := y' = - -------------
3 x + 2 y + 1


is not an exact differential equation. When the coefficient of y' is a constant,
as in the above, the ODE is exact if and only if the right hand side does not
depend on y(x), which is not the case.

For an arbitrary ODE, one rapid way to check exactness in Maple (regardless of
the ODE differential order) is to check whether a constant is an integrating
factor. Let's see:

# Verify whether "the number one" (a constant) is an integrating factor

> DEtools[mutest]( 1, ode1); # Note zero, hence ode1 is not exact.

x 1
---------------- + ----------------
2 2
(3 x + 2 y + 1) (3 x + 2 y + 1)

For that reason, odeadvisor is telling ode1 is not exact.

What perhaps is in your mind is that ode1 "becomes exact" if you multiply it
(both sides) by the denominator of its right-hand-side, which in this example
happens to be an integrating factor:

# two integrating factors, the first one is just the denom of the rhs

> DEtools[intfactor]( ode1) ;

3 x + 2 y + 1
3 x + 2 y + 1, ---------------------
(x + y) (2 x + y + 1)


So, multiplying by denom@rhs

> denom(rhs(ode1)) * ode1; # <- this ODE is exact

(3 x + 2 y + 1) y' = -4 x - 3 y - 1

> DEtools[mutest]( 1, %);
0

> odeadvisor( %%, y(x), [exact]);

[_exact]

Despite the apparent 'simplicity' of "just multiply by the denominator of the
rhs" to make the ODE exact, in truth the denom@rhs is not a better or worse
candidate than any other possible multiplying factor candidate and odeadvisor
does not make any guess when testing: will tell the ODE is exact if an only if
it is "as given".

Regarding tackling an ODE using methods for homogeneous ODEs or for exact ones,
Maple's dsolve has its default ordering of methods (first 'this' then 'that' one
etc.) but you can always make it work as you prefer: just give the methods to be
tried and in the order you want as second argument - see ?dsolve.

Anyway, making the ODE exact by multiplying it by an integrating factor and then
solving it as an exact equation you still see there is only one solution - the
one returned when you try dsolve(ode1) - regardless of how many solutions dsolve
outputs when you use optional arguments.

Edgardo
----- Original Message -----
From: "zijlstra" "zijlstra"
To: "maple-list" "maple-list"
Sent: Thursday, December 19, 2002 7:41 AM
Subject: [MUG] Re: dsolve does not find second solution



>> From: zijlstra "zijlstra"

Dear Dr. Kahovec,

The solutions are indeed (explicit) branches of one (implicit) solution. MAPLE
should return either both (explicit) branches or stop at the implicit
solution. The reason it omits one branch is in the method of solution: rather
than realizing that the problem is exact (which makes for a very
straightforward dtermination of the implicit solution), MAPLE
first arrives at the type homogeneousD. Solutions of this type are generated
in 'RootOf' form. But MAPLE does not stop there. Rather, it returns an
closed form solution using 'allvalues' - the probable source of omission of
the second branch.

The bigger problem here is: why does MAPLE not recognize this ODE as exact?
>ode1:=diff(y(x),x)=-(4*x+3*y(x)+1)/(3*x+2*y(x)+1);
>with(DEtools):
>odeadvisor(ode1,y(x),[exact]);

[NONE]

Hope this narrows down the problem some,

Jan Zijlstra, Dept. Math. Sci., MTSU

[View Complete Thread]



Previous by date: [MUG] New Maple packages,  Shklyaev
Next by date: [MUG] Re: abstract algebra impossible in Maple?, Maple User Group
Previous thread: [MUG] abstract algebra impossible in Maple?,  Charles James Leonardo Quarra Cappiello
Next thread: [MUG] abstract algebra impossible in Maple?,  Charles James Leonardo Quarra Cappiello



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