![Responses with initial values y(0)=0 and y(0)=1 against Time [s]. One rises from 0 and the other falls from 1; both approach the dashed y=0.5 line.](../../../../assets/courses/control-2/laplace-transform/lesson.mlx.assets/figure-008.png)
Laplace Transform · Lesson
English translation
Execution conditions
MATLAB: Symbolic Math Toolbox required.
If ver('symbolic') returns an empty result, install Symbolic Math Toolbox from MATLAB Add-Ons.
Topics covered
Directly verify that the solution obtained by transforming a time-domain differential equation satisfies the original problem.
Overall workflow
Differential equation and initial values → s-domain equation → Y(s) → time response and residuals
Examining expressions and their domains
Canceling common factors in a rational expression simplifies calculations. However, values that make the original denominator 0 must still be excluded. For example, equals 1 at , but at the original expression is undefined.
Converting a differential equation to an algebraic equation
Applying the Laplace transform to separates the effects of input and initial state into distinct terms.
The two solutions for different initial values are shown below.
Substituting y(0)=0 and 1 gives the same steady-state value but different starting points and transient responses.
Two responses with different initial values
For , compare y(0)=0 and 1. Plot both solutions on the same time axis and check their initial and steady-state values.
%% Worked example
t=linspace(0,4,401)';
figure; hold on
for initialValue=[0 1]
y=.5+(initialValue-.5)*exp(-2*t);
plot(t,y,'DisplayName',sprintf('y(0)=%g',initialValue));
end
yline(.5,'--'); xlabel('Time [s]'); ylabel('y'); legend; grid on
Reference example
View more examples

