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 Facebook Adept Scientific on Twitter Adept Scientific on YouBube Adept Scientific on LinkedIn


The Next Steps

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

Learn More

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

MapleSim
MapleNet
Maple T.A.
BlockImporter™
Maple Toolboxes
The Möbius Project

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] Re: Laplace Transforms

Search email archive for  

[MUG] Re: Laplace Transforms
Author: Maple Group    Posted: 27/11/2000 22:11:15 GMT
>> From: Maple Group

| >> From: Chuck Baker
| I have the following linear set of first order differential equations which
| I have solved by coupling Laplace transforms with linear algebra.
| y' = 2y - 4z, y(0) = 3
| z' = y - 3z, z(0) = 0
| ...
| How can this process be written in Maple?

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

Date: Fri, 24 Nov 2000 08:50:52 -0800
From: Allan Wittkopf
To:
Subject: Laplace Transforms

You could do:
> eqns:={diff(y(t),t)=2*y(t)-4*z(t), y(0)=3,
> diff(z(t),t)=y(t)-3*z(t),z(0)=0};
eqns :=

d d
{-- y(t) = 2 y(t) - 4 z(t), y(0) = 3, -- z(t) = y(t) - 3 z(t), z(0) = 0}
dt dt

> dsolve(eqns,{y(t),z(t)},method=laplace);
bytes used=1070064, alloc=982860, time=0.23
{y(t) = -exp(-2 t) + 4 exp(t), z(t) = -exp(-2 t) + exp(t)}

>

Allan Wittkopf

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

From: "Edgardo S. Cheb-Terrab"
To:
Subject: Laplace Transforms
Date: Fri, 24 Nov 2000 09:36:40 -0800

As follows,

Your ODEs:
> sys := diff(y(t),t)=2*y(t)-4*z(t), diff(z(t),t)=y(t)-3*z(t);

sys := y' = 2 y - 4 z, z' = y - 3 z

Your initial conditions:
> ics := y(0) = 3, z(0) = 0;

ics := y(0) = 3, z(0) = 0

Call directly the ODE (exact) solver:
> sol := dsolve({sys,ics});

sol := {y = 4 exp(t) - exp(-2 t), z = exp(t) - exp(-2 t)}

That's it. It is interesting to have in mind that you can test these solutions;
e.g. as follows


> odetest(sol,[sys]); # the solution cancels the ODE system
[0, 0]

> map(limit,sol,t=0); # and satisfy the given initial conditions

{y(0) = 3, z(0) = 0}

Hope this is of use,
Edgardo
___________________________________________________________________________
Edgardo S. Cheb-Terrab http://lie.uwaterloo.ca/ecterrab
Centre for Experimental and Constructive Mathematics SFU, Canada
Theoretical Physics Department UERJ,Brazil
___________________________________________________________________________
-- "Whoever has the most fun wins" --




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

Date: Mon, 27 Nov 2000 15:17:41 -0500
From: "Douglas B. Meade"
To:
Subject: Laplace Transforms

Dear MUG and George,

Here is my solution in Maple 6.01. In earlier versions is might be
necessary to explicitly load the transform package. This can be done
with the command:

> with( transform );

immediately after the restart command.


> restart;
>
> sys := { diff( y(t), t ) = 2*y(t) - 4*z(t),
> diff( z(t), t ) = y(t) - 3*z(t) };

d d
sys := {-- y(t) = 2 y(t) - 4 z(t), -- z(t) = y(t) - 3 z(t)}
dt dt

> ic := { y(0)=3, z(0)=0 };

ic := {y(0) = 3, z(0) = 0}

>
> soln := dsolve( sys union ic, {y(t),z(t)}, method=laplace );

soln := {y(t) = -exp(-2 t) + 4 exp(t), z(t) = -exp(-2 t) + exp(t)}

Note that the solution is a set of equations for the two components.
Several recent MUG postings have talked about working with sets. The
following commands provide two illustrations of the basic techniques for
working with Maple sets.

The individual components of this solution can be plotted as follows.

> plot( subs( soln, [y(t),z(t)] ), t=0..2 );

The two components of the solution can be obtained as Maple functions.

> Y := unapply( subs( soln, y(t) ), t );

Y := t -> -exp(-2 t) + 4 exp(t)

> Z := unapply( subs( soln, z(t) ), t );

Z := t -> -exp(-2 t) + exp(t)

I hope this answers your question and is of use to you.

Doug
-----------------------------------------------------------------------
Douglas B. Meade Phone: (803) 777-6183 FAX: (803) 777-6527
Department of Mathematics URL: http://www.math.sc.edu/~meade/
USC, Columbia, SC 29208 E-mail:


[View Complete Thread]



Previous by date: [MUG] Re: Plot and Graphic Sizes, Theodore Kolokolnikov
Next by date: [MUG] Re: Maple and mechanics of deformable bodies, Maple Group
Previous thread: [MUG] Integration bug, i think, Halvor Mehlum
Next thread: [MUG] Maple and mechanics of deformable bodies, Guy Gendron



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

Maplesoft Product Catalogue
Maple Player for iPad - Datasheet
Maple 17 What's New datasheet
Maple 17 Professional Datasheet
Maple Whitepaper: Driving Innovation - How mathematical modeling and optimisation increase efficiency and productivity in vehicle design.
MapleSim Whitepaper - Technological Superiority in Multi-Domain Physical Modelling and Simulation

Latest Downloads

Maple - Global Optimization Toolbox
The Möbius Project - Create it, Share it, Grade it
Maple 17 Programming Guide
Maple 17 User Manual
Maplesoft Product Catalogue - Academic Maths

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

New MapleSim release delivers advanced model development and analysis, extended toolchain connectivity and quicker results
Maple 17 offers advanced solving and application development capabilities
New release of Maple advances teaching and research
New release of Maple advances teaching and research
Maplesoft introduces The Möbius Project for creating, sharing and grading interactive maths apps
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 © 2013, Adept Scientific Ltd.
Site designed and maintained by Lyndon Ash

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