Adept Scientific - English
The world's best software and hardware 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  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Twitter Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Download a Brochure
• Request a Brochure
• Request an Evaluation
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 15 Professional
Maple 15 Academic
Maple 15 Student Use
What's New in Maple 15
Maple Features
Maple History
Recorded Online Seminars

MapleSim
MapleNet
Maple T.A.
BlockImporter™
Maple Toolboxes

Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Maple Home
Maple 15 Professional
Maple 15 Academic
Maple 15 Student Use
What's New in Maple 15
Maple Features
Maple History
Recorded Online Seminars

MapleSim
MapleNet
Maple T.A.
BlockImporter™
Maple Toolboxes and
Connectors


Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Latest Information

New Features: Professional
New Features: Academic
Maple Features
The Maple Reporter Online

Service & Support

Maple Primes
blogs, forums etc

Elite Maintenance Program
Application Centre
Powertools
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] Solving ODE using method of undermined coefficients

Search email archive for  

[MUG] Solving ODE using method of undermined coefficients
Author: Chuck Baker    Posted: 09/12/2000 05:41:57 GMT
>> From: Chuck Baker

I've been trying to solve the following via method of undetermined coefficients:

y'' + 5y' + 6y = 3e^(-2x) + e^(3x)


The answer is the following using standard dsolve:
> deq:=diff(y(x),x,x)+5*diff(y(x),x)+6*y(x)=3*exp(-2*x)+exp(3*x):

> dsolve(deq,y(x));

y(x) = 3 exp(-2 x) x + 1/30 exp(3 x) - 3 exp(-2 x) + _C1 exp(-2 x)

+ _C2 exp(-3 x)

> odetest(%,deq); #test of the solution

0

Now, I want to be able to solve by undetermined coefficients.

First, I solve the corresponding homogeneous equation
hom_sol := dsolve(diff(y(x),`$`(x,2))+5*diff(y(x),x)+6*y(x) = 0)

y(x) = _C1*exp(-2*x)+_C2*exp(-3*x)
Then, find the yp coefficient to the equation.

A := 'A':
yp := proc (x) options operator, arrow; A*x*exp(-2*x)+x*exp(-3*x) end proc:

Now substituting yp into the equation:

eqn := simplify(diff(yp(x),`$`(x,2))+5*diff(yp(x),x)+6*yp(x) =
3*exp(-2*x)+exp(3*x))

eqn := A*exp(-2*x)-exp(-3*x) = 3*exp(-2*x)+exp(3*x)

I'm not getting an answer that leads to the same answer that is derived when
doing
a standard dsolve.

Thank very much,

Chuck



[MUG] Re: Solving ODE using method of undermined coefficients
Author: Maple Group    Posted: 15/12/2000 19:52:11 GMT
>> From: Maple Group

| >> From: Chuck Baker
| I've been trying to solve the following via method of
| undetermined coefficients:
|
| y'' + 5y' + 6y = 3e^(-2x) + e^(3x)
|

-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Mon, 11 Dec 2000 11:07:49 -0800 (PST)
From: Robert Israel
To:
Subject: Solving ODE using method of undermined coefficients


dsolve is right. You're using a wrong trial solution. Try
yp(x) = A*x*exp(-2*x)+B*exp(3*x).

Robert Israel
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Tue, 12 Dec 2000 09:03:02 +0100
From: Heike Koch-Beuttenmueller
To:
Subject: Solving ODE using method of undermined coefficients

I would have done it like this:

> yp := proc (x) options operator, arrow; A*x*exp(-2*x)+B*exp(3*x) end
proc;
yp := x -> A x exp(-2 x) + B exp(3 x)

> diff(yp(x),`$`(x,2))+5*diff(yp(x),x)+6*yp(x) =
> 3*exp(-2*x)+exp(3*x);
>

A exp(-2 x) + 30 B exp(3 x) = 3 exp(-2 x) + exp(3 x)
=>

B=1/30, A=3

Heike


Previous by date: [MUG] problem with gsolve, Ira Gessel
Next by date: [MUG] Re: How to manipulate solution of ODES?, Maple Group
Previous thread: [MUG] Why copying a procedure is a useful thing, Carl DeVore
Next thread: [MUG] How to manipulate solution of ODES?, Alain Goriely



Ready to buy?

For more pricing information:
Visit our webstore, call us on +1 800 724 8380 or email us at info@adeptscience.com

Featured Downloads

Maple 15 & MapleSim 5 Professional Brochure
Maple 15 Academic Datasheet
Maple 15 & MapleSim 5 Brochure - Academic Brochure
Maple 15 New Features data sheet
Maple 15 New Features - Flyer
Maple Whitepaper: Driving Innovation - How mathematical modeling and optimisation increase efficiency and productivity in vehicle design.
MapleSim Whitepaper: Technological Superiority in Multi-Domain Physical Modeling and Simulation

Latest Downloads

Maple Case Study: The Changing Face of Robotics
Maple Application Brief - Analyse the Path of a Liquid-Handling Robot
Maple Player for iPad - App
Maple Player for iPad - Datasheet
Case Study - Multi-Domain Modelling Critical to Unmanned Vehicle Designs

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

Latest News

NASA’s Jet Propulsion Laboratory begins widespread adoption of Maplesoft technology
NASA’s Jet Propulsion Laboratory begins widespread adoption of Maplesoft technology
Latest release marks the 10th anniversary of Maple T.A.
Maple Case Study: The Changing Face of Robotics
Maple Application Brief - Analyse the Path of a Liquid-Handling Robot
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
Site designed and maintained by Lyndon Ash

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