Lesson finished
Unlock all 58 lessons of Autonomous Vehicle Controls using MATLAB and SimulinkFull course ₹40,000 · paid
Laplace Transforms and Deriving a Transfer Function in Simulink
A free lesson from Skill-Lync's Autonomous Vehicle Controls using MATLAB and Simulink course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Week 1 Session 3”
What will you learn in this free Autonomous Vehicle Controls using MATLAB and Simulink lesson?
The lesson explains why differential equations are hard to solve and introduces the Laplace transform from the time domain to the S-domain. It derives a second-order transfer function for a spring-mass-damper system and checks it against the time-domain model in Simulink.
- Laplace transform definition and properties
- Moving from time domain to S-domain
- Deriving a transfer function as output over input
- Comparing time and Laplace models in Simulink
What comes after lesson 3?
Later in Skill-Lync's Autonomous Vehicle Controls using MATLAB and Simulink course (paid): lesson 4, Week 1 Session 4; lesson 5, Week 1 Session 5; lesson 6, Week 1 Session 6. The full course has 58 lessons (24 h 4 min of video); see the course overview or its price and syllabus.
Lesson transcript
Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.
Welcome to the third session. In the previous session, we learned about basics of system modeling, and we also learned the basics of control system and how a particular control system looks like. In this session, we'll learn about some mathematical tools such as Laplace transforms, which help us make our life easier and dealing with control systems. So let's go ahead and start. Now, to give you a little bit of motivation on why we're learning this, we already saw that a simple system like a spring-mass damper system has a differential equation of a second-order degree.
And if you have ever worked with differential equations, you would know that it's not easy to work with or solve differential equations. And you can only imagine, the more complex the system gets, the more complex these differential equations are going to get. Hence, it's easy for us to develop a tool which will help us make our life easier and dealing with these differential equations. And that's where Laplace transforms come in place. Laplace domain or Laplace models are very commonly used in linear control systems, and we'll see how that goes.
So the goal of this session is to help you understand Laplace, how to perform Laplace transform and inverse Laplace transform on system equations. And finally, we'll use Laplace domain to derive a transfer function. So let's go over some definitions of Laplace domain. A Laplace transform is a mathematical transform which converts a time domain equation into an S-domain equation. Now we'll talk more about what an S-domain is, but we already saw that a real-time system in a real world works in the time domain, because we derive an equation which was the derivative of time.
And we'll see how we can use Laplace transform to convert it into S-domain. And more on that later. To define a mathematical equation, a Laplace domain model can be represented as an integral from 0 to infinity of the time domain function multiplied by an exponential function. So this is the mathematical definition of a Laplace form. So when you have a time domain equation, you can use this formula to create a S-domain equation. Some properties of Laplace transform. So Laplace transform is a linear operation, which means it obeys laws of superposition.
So if you have a mathematical operation of this form in Laplace domain, you can use the superposition law. And finally, one of the key aspects of Laplace transform is that a multiplication in time domain is equals to a convolution in S-domain. And what that really means is if you have a function in time domain and you multiply it with another function in time domain, when you convert it into a Laplace transform, they convert into convolution. We don't have to get into the mathematics behind convolution, but it's good to know this information because we will be using it to develop transfer functions in future.
So now you have a basic idea of the definition part, and let's see what this really means. So as I mentioned in the motivation, Laplace transforms are going to make our life easier when it comes to differential equations. And really what I'm trying to say with that is, let's say you have a second order differential equation of this form. By using a Laplace transform, you can transfer that equation in the form of a polynomial in S-domain. And you see that we have actually created calculus with algebra.
And in general, if you have studied algebra, you would know that there are many different techniques in algebra to solve equations. And that's why our life gets easier when we have a polynomial equation instead of a differential equation. And in the next slides, we will see how to derive a transfer function using this Laplace transform technique. So let's go ahead and see an example on how we can apply this formula into a Laplace to perform a Laplace transform. So our goal is to convert, derive a g of s function from this time domain function.
And really to give you an idea of how this function looks like, this is a decrease in exponential function. So it will be something of this form in time domain. And let's go ahead and apply our Laplace transform formula. To derive g of s. So g of s. So here I have substituted the function into the Laplace equation. And let's collect the terms in one side. You may know that the integration of e power minus any constant times t is equal to 1 upon constant times e power minus constant times t.
So let's go ahead and integrate. So once we have integrated, we can go and apply the limits. And be careful by applying the limits and take particular care of the sign. So the solution would be, when we substitute infinity, this term goes to 0. And when we substitute 1, e power 0 is 1. So we have the Laplace transform of c over s plus a. And that is about g of s. So we saw how we can take a time domain equation, put it into this formula, and get a Laplace domain equation.
Now you don't have to always do this in real life because we don't have to always integrate everything. A lot of people have done all the math before and derived different types of time domain functions and their Laplace domain table. And this table is a really useful tool if you are working with control systems on a, or this kind of linear algebra on a daily basis. You can just look at the type of time domain function you have and substitute it for the corresponding Laplace function.
Now, you can also use this table to perform inverse Laplace transforms. If you have already a Laplace equation, you can compare this Laplace transform to one of these formulas in this table and derive the time domain equation. There is also a mathematical technique to derive the inverse Laplace transform, but that needs some background and complex variables. We won't get into that in this lecture, but you can find it in any control systems textbook. Also, if you ever come across any control systems textbook, you can find maybe like hundreds of these time domain equations, and those can be really handy.
I'm just showing a few of them here as an example. So, now that we know how to actually apply Laplace transform, let's go ahead and see how they can be useful in our situation. Now, remember in the previous slide, I showed you a differential equation and I converted it into a polynomial equation. And that's what really helps us in our control system design. So, as a definition, we already know that Laplace transform of a time domain function gives us capital F of S. Similarly, if we do a Laplace transform of a first order derivative, the solution is S times F of S minus F of 0.
Similarly, the derivative of a second order function is S squared times F of S minus S times F dot F dash 0 minus F times 0. So, keeping this in mind, we can go ahead and transform this differential equation into a S-domain equation. So, I can write my Y double dot T as S squared Y of S. I can write my Y dot T as S times Y of S minus Y of 0. And I can write Y of T as Y of S, similar to what we have here.
And this U of T can also be written as capital U of S. So, now you have applied the formula and got the S-domain function. Now, let's define some initial conditions. So, I'm going to say that at time of T equal to 0, my position Y of 0 is 0. My velocity is also 0. And using this, we can substitute the values. And I can have a simple polynomial equation. So, you see, using Laplace transform, we changed the calculus part into an algorithm. So we had a differential equation and now we have a polynomial equation. So now we'll see how we can apply this method into our spring mass damper system and derive our transfer function.
So before that, let's derive what is a transfer function. By definition, a transfer function is an equation which is the ratio of the Laplace transform of the output to the Laplace transform of the input. When all the initial conditions are assumed to be zero, this part is important because one of the ways linear system works is to assume that the initial conditions of the system is zero. That means that time t equal to zero, the position and the velocity is at zero. So by this definition, if we have a system, say h of t, and the y of t results into the multiplication of x of t times h of t, and if we take a Laplace transform, we already mentioned that multiplication in time domain is convolution in frequency domain, or s domain, which is also represented by this equation.
And by this definition, our transfer function is the ratio of output by input. So output in this case is y of s, and input is x of s. Hence, a transfer function h of s is derived by y of s upon x of s. So now that we have derived the definition of a transfer function, let's go and create a transfer function from our spring mass damper example. So remember we already had derived the time domain equation in the form of x double dot is equal to 1 upon m times f minus bx dot minus kx.
Now let's go ahead and apply Laplace transform to create a polynomial equation out of this. So I'm going to write this time domain equation first, and then let's start applying Laplace transform. Now remember I had mentioned that for a transfer function, all the initial conditions are 0, so I'm not going to bother writing all of them here, so just assume everything is 0. So there we go. We have our Laplace transform equation called m, b, and k as constants. So the x double dot t can be written as s squared times capital S of s is equal to f of s minus b times s times x of s minus k times x of s.
And remember the definition of transfer function is the ratio of output by input. In our case, the output is x of s, and our input is f of s. That is the force we provide. So let's go ahead and arrange this. And I'm going to call my transfer function as a new name, say h of s. So there you go. We had a time domain equation, and we applied Laplace transform to get a second order transfer function. And let's go ahead and model this transfer function in Simulink, so that you can believe that whatever results we had in time domain are still generated when we converted into Laplace domain.
So go ahead and open your Simulink. So once you've opened your Simulink model, I have opened the same Simulink model where we had first modeled the time domain equation. And we can simply model this as transfer function in this Simulink by adding a transfer function block. And in the transfer function block, we can define the numerator and the denominator. So in the numerator, we already had one. And in the denominator, the first term was the these are the coefficients of the denominator, so you can add the coefficients mass, damping coefficient and spring constant.
And this would be our plant, I'm going to use the same input, which we had for supply for the time domain function so that we can compare side by side of both the systems. I'm doing the same thing. Ideally, they should do the same thing because they are just the same systems. So let's go ahead and run the model. Let us change the view. So as you can see, both the systems are performing exactly the same way. And this is a proof that when we do a Laplace transform, we don't lose any property of the time domain system and they will perform the exact same way.
And so going forward, when we develop more complex models using the vehicle dynamics, we'll be trying to use Laplace domain because it's easier to solve and instead of modeling a time domain. Also, you also see from the model also that modeling a plant is much easier using a transfer function block rather than adding extra blocks from the Simulink library. So this was the end of the third session where we learned how to use Laplace transforms to change time domain differential equations into Laplace domain and how to derive a time domain model to a Laplace domain model.
See you in the next session.