{"id":650,"date":"2015-10-23T23:30:53","date_gmt":"2015-10-24T03:30:53","guid":{"rendered":"http:\/\/underthehood.blogwyrm.com\/?p=650"},"modified":"2022-07-28T06:26:01","modified_gmt":"2022-07-28T10:26:01","slug":"laplace-transform-part-6-linearization","status":"publish","type":"post","link":"https:\/\/underthehood.blogwyrm.com\/?p=650","title":{"rendered":"Laplace Transform &#8211; Part 6: Linearization"},"content":{"rendered":"<p>The previous five columns have dealt with the Laplace Transform in detail, focusing on the basic properties and fundamental theorems.\u00a0 The applications to differential equations has been covered in passing with the exception of the one column that covered the <a href=\"http:\/\/underthehood.blogwyrm.com\/?p=643\">application to the simple harmonic oscillator<\/a>.\u00a0 That column showed the utility of the method but didn\u2019t generalize to arbitrary state space dimensions.\u00a0 This shortcoming is easily overcome since the generalization is fairly obvious and easy.\u00a0 More critical is the inherent limitation of the Laplace Transform to linear systems and the ends to which the typical controls engineer goes to transform general problems to linear ones.\u00a0 It is to this last topic that this current column is devoted.<\/p>\n<p>The basic approach of the controls engineer is to first express the dynamics of the system being modeled in state space form where the equation of motion is given by<\/p>\n<p>\\[ \\frac{d}{dt} \\bar S(t) = \\bar f(t,\\bar S) \\]<\/p>\n<p>where the state \u00a0$$\\bar S$$ is constructed so that any derivatives in the original model are replaced by auxiliary variables; for example \u00a0$$v_x \\equiv \\dot x$$.\u00a0 Usually, the state variables are presented in column-array fashion.\u00a0 The right-hand side \u00a0$$\\bar f$$ contains the generalized form for the time derivatives of the state variables as governed either by the kinematic definitions (e.g. $$\\dot x = v_x$$) or the dynamic relations (e.g. \u00a0$$\\dot v_x = f_x\/m$$, where $$f_x$$ is the x-component of the force) and is, likewise, presented as a column array. Typically, the equations of motion possess a non-linear right-hand side, meaning that at least one component of \u00a0$$\\bar f$$ is a non-linear function of the state variables.<\/p>\n<p>There are really two distinct but related ideas behind linearization.\u00a0 The first is the notion that the nonlinear functions in \u00a0$$\\bar f$$ can be replaced by linear approximations.\u00a0 The second is the idea of linearizing about a known solution to the equations of motion.<\/p>\n<p>The pendulum serves as the textbook example of what to do in the first case.\u00a0 As discussed in an <a href=\"http:\/\/underthehood.blogwyrm.com\/?p=565\">earlier post<\/a>, the equation of motion of the angle \u00a0$$\\theta$$ makes with respect to the vertical takes the form<\/p>\n<p>\\[ \\ddot \\theta + g \\sin \\theta = 0 \\; .\\]<\/p>\n<p>This nonlinear ordinary differential equation is linearized by expanding the sine and keeping only the first order term resulting in the harmonic oscillator approximation<\/p>\n<p>\\[ \\ddot \\theta + g \\theta = 0 \\; .\\]<\/p>\n<p>It is well established that this approximation is adequate only when \u00a0$$\\theta$$ is small (for example: see <a href=\"http:\/\/underthehood.blogwyrm.com\/?p=576\">Numerical Solutions of the Pendulum<\/a>).<\/p>\n<p>The second concept of linearization is more subtle and involves looking at how deviations to a nominal solution evolve in time.\u00a0 To implement this linearization, we imagine that a solution \u00a0$$\\bar S_{\\bar f}(t;\\bar S_0)$$ of the original system exists given the initial conditions \u00a0$$\\bar S_0$$.\u00a0\u00a0 We further imagine that deviations from the solution arise either due to differences in the initial conditions or in the right-hand side of the differential equation.<\/p>\n<p>Both of these differences are physically realizable and lead to different contributions to the linearization.\u00a0 Physically, uncertainty in the initial state arises due to measurement limitations, either inherent ones due to quantum effects, or due to a lack of knowledge based on limits in metrology.\u00a0 Uncertainties in the right-hand side are due to our limited ability to infer the forces acting in a physical system based solely on the observed motion.<\/p>\n<p>In realistic systems, both differences are present but it is convenient to study the two contributions separately before combining.\u00a0 The categorization to describe these different \u2018mix-and-match\u2019 scenarios is:<\/p>\n<ol>\n<li>State variation \u2013 differences in evolution due to uncertainties in the initial conditions<\/li>\n<li>Model variation \u2013 differences in evolution due to differences in the right-hand side<\/li>\n<li>Total variation \u2013 differences in evolution due to contributions from both sources<\/li>\n<\/ol>\n<p>The following figure shows the evolution of two states, an estimated initial state \u00a0$$\\bar S^*_0$$ and a true initial state \u00a0$$\\bar S_0$$, each under the action of two right-hand sides \u00a0$$\\bar f$$ (estimated model) and \u00a0$$\\bar g$$ (true model).\u00a0 In this figure, $$\\delta \\bar S$$ is the state variation, $$\\partial \\bar S$$ is the model variation, $$\\Delta \\bar S$$ is the total variation.<\/p>\n<p><a href=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2015\/10\/state-space-evolution1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-656 size-full\" src=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2015\/10\/state-space-evolution1.jpg\" alt=\"state space evolution\" width=\"1646\" height=\"711\" srcset=\"https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2015\/10\/state-space-evolution1.jpg 1646w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2015\/10\/state-space-evolution1-300x130.jpg 300w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2015\/10\/state-space-evolution1-1024x442.jpg 1024w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2015\/10\/state-space-evolution1-810x350.jpg 810w\" sizes=\"auto, (max-width: 1646px) 100vw, 1646px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The key assumption is that both the state and model variations lead to small deviations in the evolution.\u00a0 If this assumption holds, a linearized equation of motion for the state and total variations can be derived.\u00a0 Since the true state and model are not none for physical systems (as opposed to mathematical models) it is most useful to ultimately express all the deviations in terms of the state deviation under the estimated model, since this is the one most easily probed.\u00a0 The linearization is relatively easy and will be done for state and model variations first and then will be combined for the total variation.<\/p>\n<h2>State Variation<\/h2>\n<p>Start with the basic relation $$\\delta \\bar S = \\bar S &#8211; \\bar S^*$$.\u00a0 To calculate the differential equation for the state variation apply the time derivative to both sides<\/p>\n<p>\\[ \\frac{d}{dt} \\delta \\bar S = \\frac{d}{dt} \\left[ \\bar S &#8211; \\bar S^* \\right] \\]<\/p>\n<p>and use the original equation of motion to eliminate the derivatives of the state in favor of the right-hand sides of the differential equation.<\/p>\n<p>\\[ \\frac{d}{dt} \\delta \\bar S = \\bar f(\\bar S) &#8211; \\bar f (\\bar S^*) \\]<\/p>\n<p>Since the model is the same in both cases, it really doesn\u2019t matter which model is used but using $$\\bar f$$ will be convenient later.\u00a0 Finally, express the true state in terms of the estimate state and the state deviation<\/p>\n<p>\\[ \\frac{d}{dt} \\delta \\bar S = \\bar f(\\bar S^* + \\delta \\bar S) &#8211; \\bar f(\\bar S^*) \\]<\/p>\n<p>and expand<\/p>\n<p>\\[ \\frac{d}{dt} \\delta \\bar S = \\left. \\frac{\\partial \\bar f}{\\partial \\bar S} \\right|_{\\bar S^*} \\delta \\bar S \\; .\\]<\/p>\n<p>Note that the matrix $$A \\equiv \\left. \\frac{\\partial \\bar f}{\\partial \\bar S} \\right|_{\\bar S^*}$$ is evaluated along the estimated trajectory (although in this case either will suffice) and is, in general, time-varying because of it.<\/p>\n<h2>Model Variation<\/h2>\n<p>The equation of motion for the model variation is the most analytically intractable of the variations and does not lead directly to a linear equation.\u00a0 To evaluate it, take the time derivative of the definition of the model variation<\/p>\n<p>\\[ \\frac{d}{dt} \\partial \\bar S = \\frac{d}{dt} \\left[ \\bar S_{\\bar g} &#8211; \\bar S_{\\bar f} \\right] \\; . \\]<\/p>\n<p>Replace the derivatives on the right gives<\/p>\n<p>\\[ \\frac{d}{dt} \\partial \\bar S = \\bar g (\\bar S) &#8211; \\bar f(\\bar S) \\equiv \\bar \\eta_0(\\bar S) \\; .\\]<\/p>\n<p>This is as far as one can go with the general structure.\u00a0 But it is usually argued that if the actual forces are not producing a discernable signal (for if they were, they could be inferred from the motion) then $$\\bar \\eta_0$$ can be thought of as an inhomogeneous noise term.\u00a0 We will make such an argument and assume this property.<\/p>\n<h2>Total Variation<\/h2>\n<p>From the figure there are two equally valid definitions of the total variation in terms of true state<\/p>\n<p>\\[ \\Delta \\bar S = \\delta \\bar S_{\\bar f} + \\partial \\bar S \\]<\/p>\n<p>and in terms of the estimated state<\/p>\n<p>\\[ \\Delta \\bar S = \\delta \\bar S_{\\bar g} + \\partial \\bar S^* \\; . \\]<\/p>\n<p>Equating, rearranging, and taking the time derivative yields<\/p>\n<p>\\[ \\frac{d}{dt} \\delta \\bar S_{\\bar g} = A \\delta \\bar S_{\\bar f} &#8211; \\bar \\eta^*_0 &#8211; \\bar \\eta_0 \\; \\]<\/p>\n<p>One last approximation is needed.\u00a0 Much like the argument above, it is based on a plausibility and not on a rigorous linearization.\u00a0 This argument says that if the differences between the two force models are small enough to regard the model variations to be noise-like, then for all practical considerations the state variations are approximately the same.<\/p>\n<p>Thus the final equation is<\/p>\n<p>\\[ \\frac{d}{dt} \\delta \\bar S_{\\bar f} = A \\delta \\bar S_{\\bar f} + \\bar \\eta \\; \\]<\/p>\n<p>where $$\\bar \\eta$$ is a collected noise term (with an appropriate and insignificant sign change).\u00a0 It should be emphasized that this final equation is not rigorous correct but has been used by control engineers successful and so is worth studying.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The previous five columns have dealt with the Laplace Transform in detail, focusing on the basic properties and fundamental theorems.\u00a0 The applications to differential equations has been covered in passing&#8230; <a class=\"read-more-button\" href=\"https:\/\/underthehood.blogwyrm.com\/?p=650\">Read more &gt;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-650","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=650"}],"version-history":[{"count":5,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/650\/revisions"}],"predecessor-version":[{"id":657,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/650\/revisions\/657"}],"wp:attachment":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}