440 likes | 686 Views
ME451 Kinematics and Dynamics of Machine Systems. Review of Linear Algebra and Differential Calculus 2.4, 2.5 September 09, 2013. Radu Serban University of Wisconsin-Madison. Before we get started…. Last time: D iscussed geometric and algebraic vectors Brief review of matrix algebra
E N D
ME451 Kinematics and Dynamics of Machine Systems Review of Linear Algebra and Differential Calculus 2.4, 2.5 September 09, 2013 Radu Serban University of Wisconsin-Madison
Before we get started… • Last time: • Discussed geometric and algebraic vectors • Brief review of matrix algebra • Today: • Transformation of coordinates: Rotation Matrix, Rotation + Translation • Vector and Matrix Differentiation • HW 1 Dueon Wednesday, September 11 • Problems: 2.2.5, 2.2.8. 2.2.10 (from Haug’s book) • Upload a file named “lastName_HW_01.pdf” to the Dropbox Folder “HW_01” at Learn@UW. • Dropbox Folder closes at 12:00PM
2.4 Transformation of Coordinates
Vectors and Reference Frames (1) • Recall that an algebraic vector is just a representation of a geometric vector in a particular reference frame (RF) • Question: What if I now want to represent the same geometric vector in a different RF?
Vectors and Reference Frames (2) • Transforming the representation of a vector from one RF to a different RF is done through (left) multiplication by a so-called “rotation matrix” A: • Notes • We transform the vector’s representation and not the vector itself. • What changes is the RF used to represent the vector. • As such, the rotation matrix defines a relationship between RFs. • A rotation matrix A is also called “orientation matrix”.
The Rotation Matrix • Rotation matrices are orthogonal: • Geometric interpretation of a rotation matrix:
Important Relation • Expressing a vector given in one reference frame (local) in adifferent reference frame (global):This is also called a change of base. • Since the rotation matrix is orthogonal, we have • More acronyms: • LRF: local reference frame () • GRF: global reference frame ()
Example 2 https://respond.cc
The Kinematics of a Rigid Body:Handling both Translation and Rotation • What we just discussed was re-expressing a vector from one coordinate frame (LRF) to another coordinate frame (GRF). • Recall that vectors for us are really “free vectors” and therefore independent of a translation of the reference frame. • What about position of a point P? • Use the definition of position vector, the vector addition, and the formula for changing base for vectors:
More on Body Kinematics • Much of ME451 is based on the ability to look at the position of a point P in two different reference frames: • a local reference frame (LRF), typically fixed (rigidly attached) to a body that is moving in space • a global reference frame (GRF), which is the “world” reference frame and serves as the universal reference frame • In the LRF, the position of point is described by (sometimes, the notation is used) • In the GRF, the position of point is described by the position vector
ME451 Important Slide • The position and orientation of a body(that is, position and orientation of the LRF)is completely defined by .The position of a pointP on the body is specified by: • in the LRF • in the GRF
2.5 Vector and Matrix Differentiation
Derivatives of Functions • GOAL: Understand how to • Take time derivatives of vectors and matrices • Take partial derivatives of functions with respect to its arguments • We will use a matrix-vector notation for computing these partial derivs. • Taking partial derivatives might be challenging in the beginning • It will be used a lot in this class 17
Derivative, Partial Derivative,Total Derivative • The derivativeof a function (of a single variable) is a measure of how much the function changes due to a change in its argument. • A partial derivative of a function of several variables is the function derivative with respect to one of its variables when all other variables are held fixed. • The total derivative of a function of several variables is the derivative of the function when all variables are allowed to change.
Derivatives: Examples • Derivative • Partial derivative • Total derivative
Time Derivative of a Vector • Consider a vector whose components are functions of time:which is represented in a fixed (stationary) Cartesian RF. • In other words, the components of r change, but not the reference frame: the basis vectors and are constant. • Notation: • Then: 20
Partial Derivatives, Warming Up:Scalar Function of Two Variables • Consider a scalar function of two variables: • To simplify the notation, collect all variables into an array: • With this, the derivative of f with respect to q is defined as:
Partial Derivatives, General Case:Vector Function of Several Variables • You have a set of “m” functions each depending on a set of “n” variables: • Collect all “m” functions into an array F and collect all “n” variables into an array q: • So we can write:
Partial Derivatives, General Case:Vector Function of Several Variables • Then, in the most general case, we have • Example 2.5.2: The result is an m x n matrix!
Partial DerivativesCompact Notation • Collect the three generalized coordinates into the array q • Define the function r of q: • “Terse” notation • Let x, y, and be three generalized coordinates • Define a (vector) function r of x, y, and as • “Verbose” notation
[handout]Example (based on Example 2.4.1) • Find the partial derivative of the position of P with respect to the array of generalized coordinates q
Partial Derivatives: Remember this… • In the most general case, you start with “m” functions in “n” variables, and end with an (m x n) matrix of partial derivatives. • You start with a column vector of functions and then end up with a matrix • Taking a partial derivative leads to a higher dimension quantity • Scalar Function – leads to row vector • Vector Function – leads to matrix • In this class, taking partial derivatives can lead to one of the following: • A row vector • A full blown matrix • If you see something else chances are you made a mistake…
Chain Rule of Differentiation • Formula for computing the derivative(s) of the composition of two or more functions: • We have a function f of a variable q which is itself a function of x. • Thus, f is a function of x (implicitly through q) • Question: what is the derivative of f with respect to x? • Simplest case: real-valued function of a single real variable:
Case 1Scalar Function of Vector Variable • f is a scalar function of “n” variables: q1, …, qn • However, each of these variables qi in turn depends on a set of “k” other variables x1, …, xk. • The composition of f and q leads to a new function:
Chain Rule Scalar Function of Vector Variable • Question: how do you compute x ? • Using our notation: • Chain Rule:
Case 2Vector Function of Vector Variable • F is a vector function of several variables: q1, …, qn • However, each of these variables qi depends in turn on a set of k other variables x1, …, xk. • The composition of F and q leads to a new function:
Chain Rule Vector Function of Vector Variable • Question: how do you compute x ? • Using our notation: • Chain Rule:
Case 3Vector Function of Vector Variables • F is a vector function of 2 vector variables q and p: • Both q and p in turn depend on a set of k other variables: • A new function (x) is defined as: • Example: a force (which is a vector quantity), depends on the generalized positions and velocities
Chain RuleVector Function of Vector Variables • Question: how do you compute ? • Using our notation: • Chain Rule:
Case 4Time Derivatives • In the previous slides we talked about functions f depending on y, where y in turn depends on another variable x. • The most common scenario in ME451 is when the variable x is actually time, t • You have a function that depends on the generalized coordinates q, and in turn the generalized coordinates are functions of time (they change in time, since we are talking about kinematics/dynamics here…) • Case 1: scalar function that depends on an array of m time-dependent generalized coordinates: • Case 2: vector function (of dimension n) that depends on an array of m time-dependent generalized coordinates:
Chain RuleTime Derivatives • Question: what are the time derivatives of and • Applying the chain rule of differentiation, the results in both cases can be written formally in the exact same way, except the dimension of the result will be different • Case 1: scalar function • Case 2: vector function