desolve_laplace

Description

desolve_laplace will solve an ordinary differential equation using Laplace transforms with or without initial conditions. The following commands solve $\dfrac{dx}{dt} - x = e^{-t}$.

Sage Cell

Code

t = var('t')    # define a variable t
x = function('x')(t)   # define x to be a function of that variable
DE = diff(x, t) - x == exp(-t)
desolve_laplace(DE, [x,t])

Options

Option

Solving the initial-value problem $\dfrac{dx}{dt} - x = e^{-t}$, $x(0) = 2$.

Code

t = var('t')    # define a variable t
x = function('x')(t)   # define x to be a function of that variable
DE = diff(x, t) - x == exp(-t)
desolve_laplace(DE, [x,t], ics=[0,2])

Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.

Attribute

Permalink:

Author:

Date: 06 Jan 2018 20:03

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License