laplace and ilaplace takes one, two or three arguments :
an expression and optionnaly the name(s) of the variable(s).
The expression is an expression of the current variable (here x) or an expression of the variable given as second argument.
laplace returns the Laplace transform of the expression given as argument and ilaplace the inverse Laplace transform of the expression given as argument. The result of laplace and ilaplace is expressed in terms of the variable given as third argument if supplied or second argument if supplied or x otherwise.
Laplace transform (laplace) and inverse Laplace transform (ilaplace) are useful to solve linear differential equations with constant coefficients. For example :
|y ′ ′ +p. y ′+q. y = f(x)|
Denoting by L the Laplace transform, the following relations hold :
where C is a closed contour enclosing the poles of g.
The expression (here sin(x)) is an expression of the current variable
(here x) and the answer will also be an expression of the current variable
Or input :
here the variable name is t and this name is also used in the answer.
Or input :
here the variable name is t and the variable name of the answer is s.
The following properties hold :
If y ′ ′(x) +p. y ′(x)+q. y(x) = f(x), then :
Therefore, if a=y(0) et b=y′(0), we have
and the solution of the differential equation is :
|y(x)= L−1((L(f)(x)+(x+p).a +b)/(x2+p.x+q))|
|y′ ′ −6. y′+9. y = x. e3. x, y(0)=c_0, y′(0)=c_1|
Here, p=−6, q=9.
After simplification and factorisation (factor command) the solution y is :
Note that this equation could be solved directly, input :