Unit 1Configuration and DOF

Each revolute joint is a circle S1S^1; nn of them form the nn-torus.

Topology, not just dimension, is what distinguishes configuration spaces.

A free body in space has 6 dof: three to translate, three to rotate.

In the plane it drops to 3.

m=6m = 6 for spatial mechanisms, m=3m = 3 for planar ones.

NN counts links including ground, JJ the joints, fif_i the dof of joint ii.

A single holonomic constraint between joints removes one dof.

Seen in Practice exam 3872.

A planar robot reaches a 2-D set of positions, no matter how many joints it has.

Extra joints add redundancy, not workspace dimension.

Seen in Practice exam 3872.

Unit 2.1Pose of a Rigid Body

Gives a VECTOR perpendicular to both aa and bb, following the right-hand rule.

Memory trick: for the xx entry cover up the xx column and do "yy times zz minus zz times yy". Then cycle x→y→zx \to y \to z for the next rows.

Order matters: b×a=−(a×b)b \times a = -(a \times b).

Parallel vectors give 030_3. That is why the point you pick on a rotation axis does not change v=−(ω×p)v = -(\omega \times p): sliding pp along ω\omega adds a parallel part that vanishes.

Same thing as a matrix product: a×b=[a] ba \times b = [a]\,b with the skew-symmetric matrix from 2.2.

The right-handed cyclic order x→y→z→xx \to y \to z \to x.

Reversing the order flips the sign.

To complete a frame from two orthonormal vectors aa and bb, take c=a×bc = a \times b; the result is automatically right-handed.

Always verify a cross product with aTc=0a^{T}c = 0, bTc=0b^{T}c = 0 and ∥c∥=1\lVert c \rVert = 1. Ten seconds, catches every sign slip.

Seen in Practice exam 3872.

Column jj is the target frame's jj-th axis, written in the reference frame's coordinates.

This is not algebra: read the arrows off the drawing, one column at a time.

Easiest method is relative. Ask whether each axis of W2W_2 is parallel or anti-parallel to the matching axis of W1W_1, rather than judging each against an imagined baseline.

A superscript names the frame the coordinates are expressed in, so rpW1r_p^{W_1} is the vector to pp written in W1W_1. Never write a bare vector without its frame.

Sanity check: a point further from a frame's origin must have a larger magnitude in that frame. Catches swapped answers instantly.

Colour code in every figure: RGB = XYZ. Red is xx, green is yy, blue is zz. Decode the colours FIRST, then read directions. Mixing up which arrow is which is the classic way to get a perfectly-shaped but wrong matrix.

Example: frame FF with its red arrow pointing opposite to the world green arrow gives xF=−yWx_F = -y_W, so column 1 is [0,−1,0]T[0,-1,0]^{T}.

Write the three axes as columns in any reference you trust, then take the determinant. Works regardless of how the figure is drawn.

Curl rule if you prefer geometry: point the right hand's fingers along +x+x, curl them toward +y+y; the thumb gives +z+z for a right-handed frame.

To repair a left-handed frame, flip exactly ONE axis. Flipping two is just a rotation and changes nothing.

Counting flips between two frames: an even number means the same handedness, an odd number means opposite.

Gives a NUMBER. Multiply matching entries and add them up.

Meaning: how much of aa points along bb. Zero means perpendicular, that is the test you use all the time.

Length of a vector is the dot product with itself: ∥a∥=aTa\lVert a \rVert = \sqrt{a^{T}a}. Unit vector check: aTa=1a^{T}a = 1.

Angle between two vectors: cos⁡θ=aTb∥a∥∥b∥\cos\theta = \frac{a^{T}b}{\lVert a \rVert \lVert b \rVert}.

Every question in 2.1 is this one equation solved for a different slot.

p∗p^{*} is the point in WORLD coordinates, pp is the same physical point in BODY coordinates, RR is the body orientation in world, rCr_C is the body origin in world.

Point in world: p∗=Rp+rCp^{*} = Rp + r_C. Point in body: p=RT(p∗−rC)p = R^{T}(p^{*} - r_C). Body origin or centre of mass: rC=p∗−Rpr_C = p^{*} - Rp. Pose: state both {rC,R}\{r_C, R\}.

Inverses go on the LEFT, because that is the side RR sits on. Matrix multiplication does not commute, so you cannot divide across as in scalar algebra.

RR always multiplies a BODY-frame vector. If RR sits next to something, that something is in body coordinates.

Label every vector with its frame before starting. Most errors here are a mislabel, not bad algebra.

Seen in Practice exam 3872.

Unit 2.2Representations of Orientation

Rotation matrix: 9 numbers, 6 constraints, 3 independent parameters. No singularities, but redundant.

Euler and roll-pitch-yaw: 3 numbers, minimal, but singular at certain angles.

Unit quaternion: 4 numbers, free of singularities.

Exponential coordinates: axis plus angle, compact, singularity-free, with a direct velocity interpretation.

All representations convert into one another.

Rotate α\alpha about zz, then β\beta about the NEW xx, then γ\gamma about the NEW zz.

Three parameters instead of nine, at the cost of singularities.

Singular when β=kπ\beta = k\pi: the first and third axes line up and only α+γ\alpha + \gamma is recoverable.

The yy-axis never appears, so a rotation about yy must be reached indirectly by first rotating a usable axis onto it.

A unit rotation axis ω\omega paired with the rotation angle ϕ\phi: axis-angle.

Invert by negating the axis, −ωϕ-\omega\phi, or equivalently by negating the angle.

Example: +90°+90° about yy is [0,1,0]Tπ2[0,1,0]^{T}\tfrac{\pi}{2}; −90°-90° about yy is [0,−1,0]Tπ2[0,-1,0]^{T}\tfrac{\pi}{2}.

Rotating by −α-\alpha undoes a rotation by α\alpha, so it is the inverse.

Because RR is orthonormal the inverse is just the transpose. Never invert a rotation matrix by hand.

Sanity check on any transform: rotations preserve length, so a step that changes a distance is wrong.

These two conditions define SO(3)SO(3). Both are needed.

Columns must be mutually orthogonal AND of unit length: aTb=0a^{T}b = 0, aTa=bTb=1a^{T}a = b^{T}b = 1.

det⁡R=−1\det R = -1 is a reflection, not a rotation: it flips handedness.

Orthonormal columns give R−1=RTR^{-1} = R^{T}, so inverting a rotation is free.

RR has 9 entries and 6 constraints, leaving 3 independent parameters.

Turns the exponential coordinates ωϕ\omega\phi (axis + angle) back into a rotation matrix. This is how you construct RR from an axis and an angle.

Requires ω\omega to be a unit vector. Normalise first.

Quick check: for ω=ez\omega = e_z it must spit out Rz(ϕ)R_z(\phi). If it does not, a sign in [ω][\omega] is wrong.

Reads a unit quaternion Q=[η,νT]TQ = [\eta, \nu^{T}]^{T} backwards: η\eta is the scalar part, ν\nu the vector part.

The factor 2 is the whole point. The quaternion stores the HALF angle, so arccos⁡η\arccos\eta gives ϕ2\tfrac{\phi}{2} and you must double it. Forgetting this is the most common error in both directions.

Normalising ν\nu recovers the unit axis; the length of ν\nu is sin⁡ϕ2\sin\tfrac{\phi}{2}, which carries no axis information.

Every rotation has exactly two unit quaternions, QQ and −Q-Q. Negating all four entries flips both the axis and the angle, which lands on the same rotation. Convention keeps η\eta positive.

Worked example: Q=[22,−22,0,0]TQ = [\tfrac{\sqrt2}{2}, -\tfrac{\sqrt2}{2}, 0, 0]^{T} gives ϕ=π2\phi = \tfrac{\pi}{2} and ω=[−1,0,0]T\omega = [-1,0,0]^{T}, a 90°90° rotation about −x-x.

A new Greek letter next to something familiar is usually a PIECE of it, not a new object. Ask "is this part of that?" before assuming it is something new.

Quaternion QQ: scalar part η\eta (one number), vector part ν\nu (three numbers). ϕ=2arccos⁡Q\phi = 2\arccos Q would be meaningless, since QQ is a four-vector; the formula needs the first entry specifically, and that entry is called η\eta.

Homogeneous transform TT: rotation block RR, translation vector rr.

Screw axis ξ\xi: angular part ω\omega, linear part vv.

The same letter can also mean different things in different sections. ϕ\phi is the SCARA tool heading in 2.1 and the rotation angle in 2.2. Always read a symbol from its context, never from memory.

Roll is γ\gamma about xx, pitch is β\beta about yy, yaw is α\alpha about zz.

Two valid readings of the same product. RIGHT to LEFT: successive rotations about the FIXED initial axes. LEFT to RIGHT: successive rotations about the ROTATED axes.

Singular at β=±π2\beta = \pm\tfrac{\pi}{2}, where roll and yaw act about the same physical axis. This is gimbal lock.

The rotation axis is untouched by its own rotation, so row 1 and column 1 are the identity.

The minus sign sits in the upper of the two off-diagonal slots, same as RzR_z.

Row 2 and column 2 are the identity: the yy-axis is the rotation axis.

RyR_y is the odd one out. Its minus sign is bottom-left, while RxR_x and RzR_z carry theirs top-right, a consequence of the cyclic order x→y→zx \to y \to z.

At α=±π2\alpha = \pm\tfrac{\pi}{2} the cosines vanish, leaving only the two off-diagonal entries and the axis row.

Row 3 and column 3 are the identity: the zz-axis is the rotation axis.

This is also the planar rotation, SO(2)SO(2), padded out to three dimensions.

Not in the course book or the review book. The course book only points to Murray et al. (1994) for it. Exam matrices to decode are most likely basic rotations: use the shortcut below.

Shortcut (in scope): if RR has a row and column that are pure identity (like RxR_x, RyR_y, RzR_z), the axis is that coordinate axis and you just read the angle off the cos/sin block.

The general formula is the reverse of Rodrigues. Trace first (sum of the diagonal) to get the angle, then the off-diagonal differences to get the axis.

Works for 0<ϕ<π0 < \phi < \pi. At ϕ=0\phi = 0 there is no rotation, so any axis works.

From here, the quaternion is one step away: Q=[cos⁡ϕ2, sin⁡ϕ2 ωT]TQ = [\cos\tfrac{\phi}{2},\ \sin\tfrac{\phi}{2}\,\omega^{T}]^{T}.

Turns a cross product into a matrix product. You need it for Rodrigues and for every screw matrix in PoE.

How to remember it: the diagonal is all zeros. Fill the TOP-RIGHT triangle with −ωz, ωy, −ωx-\omega_z,\ \omega_y,\ -\omega_x (row 1 then row 2). Then mirror across the diagonal and flip every sign.

Check yourself with ω=[0,0,1]T\omega = [0,0,1]^{T}: you should get a −1-1 at row 1, column 2 and a +1+1 at row 2, column 1. That is the top-left of RzR_z for a tiny angle.

Some slides write it with a hat, ω^\hat\omega. Hat and square brackets mean the same thing: "blow this vector up into its matrix".

A rotation by angle ϕ\phi about unit axis ω\omega, as a four-vector of unit length.

Remember the HALF angle. It is the single most missed detail here.

Inverse: Q=[η,νT]TQ = [\eta, \nu^{T}]^{T} gives Q−1=[η,−νT]TQ^{-1} = [\eta, -\nu^{T}]^{T}. Negate the vector part only, which flips the axis direction.

For ϕ=π\phi = \pi the scalar part vanishes and Q=[0,ωT]TQ = [0, \omega^{T}]^{T}.

QQ and −Q-Q describe the same rotation, so every orientation has two unit quaternions.

Free of singularities, which is why game engines store rotations this way.

Seen in Practice exam 3872.

Unit 2.3Homogeneous Transformations

Indices cancel like dominoes: A→BA \to B times B→CB \to C gives A→CA \to C. If the inner letters do not match, the product is nonsense.

You never need a 4×44\times4 multiply. Rotations just multiply (3×33\times3, fine on the calculator) and the second translation gets ROTATED by the first rotation before you add it.

This is exactly how a URDF chain or a DH table is evaluated: one transform per joint, multiplied from the base outwards.

Order matters. T1T2≠T2T1T_1 T_2 \neq T_2 T_1 in general.

Packs rotation and translation into one 4×44\times4 matrix that composes by multiplication.

Rotation block top-left, translation vector top-right, bottom row always [0,0,0,1][0,0,0,1].

16 entries, 12 of them variable (parameters), 6 degrees of freedom once the 6 orthonormality conditions are applied.

Vectors are right-multiplied, so a chain of transforms is read RIGHT to LEFT for the vector and left to right for the frames.

Not the plain transpose. The rotation block transposes, but the translation becomes −RTr-R^{T} r.

Same structure as p=RT(p∗−rC)p = R^{T}(p^{*} - r_C) from 2.1, written as one matrix.

Quick check: T T−1T\,T^{-1} must give the 4×44\times4 identity. Do the translation column only, it takes ten seconds: R(−RTr)+r=0R(-R^{T}r) + r = 0.

A 4×44\times4 matrix cannot eat a 3-vector, so you append one extra entry. Append 1 for a point (it gets rotated AND shifted) and 0 for a direction (it only gets rotated).

Written out it is just the pose equation again: rpA=R rpB+rr_p^{A} = R\, r_p^{B} + r.

The trick worth remembering: the origin of BB is [0,0,0,1]T[0,0,0,1]^{T}, and T [0,0,0,1]TT\,[0,0,0,1]^{T} picks out the last column. So the position of a frame is just the translation column of its transform. No multiplication needed.

Directions ignore translation because a direction has no location. Shifting an arrow does not change where it points.

Unit 2.4Exponential Coordinate Representation

ALWAYS check the rotation block first. That single check picks the branch, and picking the wrong one is the main way these questions go wrong.

Translation branch (prismatic joints, R=IR = I): ω=03\omega = 0_3, so vv carries the unit-length condition. ϕ\phi is the length of the displacement and vv is its normalised direction.

Rotation branch (revolute joints): ωˉ\bar\omega is the normalised rotation axis, ϕ\phi is the LENGTH of the un-normalised angular velocity vector, and vv comes from the cross product with any point pp on the rotation axis.

Why vv is not simply pp: the screw axis is a direction in six dimensions, not a position. A rotation about an axis that misses the origin induces a linear velocity at the origin, and −(ωˉ×p)-(\bar\omega \times p) is exactly that.

Any point on the axis works for pp; coordinates along the axis direction cancel in the cross product.

The equation v=−(ω×rC)+r˙Cv = -(\omega \times r_C) + \dot{r}_C is the SAME formula with a term kept for a body that also translates. With r˙C=03\dot{r}_C = 0_3 the two are identical; pp and rCr_C both just mean a point given in the world frame.

Either branch: stack ξ=[ωT,vT]T\xi = [\omega^{T}, v^{T}]^{T}, six entries, angular part on top. The answer is always the pair ξϕ\xi\phi.

Worked example (rotation branch): ω=[0,0,π]T\omega = [0,0,\pi]^{T} with p=[1,0,0]Tp = [1,0,0]^{T} gives ωˉ=[0,0,1]T\bar\omega = [0,0,1]^{T}, ϕ=π\phi = \pi, v=−([0,0,1]T×[1,0,0]T)=[0,−1,0]Tv = -([0,0,1]^{T} \times [1,0,0]^{T}) = [0,-1,0]^{T}, so ξϕ=[0,0,1,0,−1,0]Tπ\xi\phi = [0,0,1,0,-1,0]^{T}\pi.

Why position matters for revolute joints but not prismatic ones: swing a ball on a 1 m rope and on a 4 m rope, and the ball moves totally differently. That lever arm is what −(ω×p)-(\omega \times p) captures. A train going north moves "north" whether the track is at your feet or 4 km away, so a sliding joint only cares about its DIRECTION, never its location.

Prismatic joint from a figure vs from a matrix is the same method. From a figure you read the arrow directly (straight down is [0,0,−1]T[0,0,-1]^{T}, already unit length). From a matrix you only get the destination rr, so you normalise it: v=r/∥r∥v = r/\lVert r \rVert. Do NOT add the joint's position into vv: an elevator 4 m down the street still only moves up and down.

ξ\xi is a screw axis; ϕ\phi is the distance travelled around and along it.

Either ω\omega has unit length (general motion), or for a PURE TRANSLATION ω=03\omega = 0_3 and vv has unit length.

Pure translation example: displacement of 1 along xx is ξϕ=[0,0,0,1,0,0]T⋅1\xi\phi = [0,0,0,1,0,0]^{T}\cdot 1.

Interpretation: apply the velocities in ξ\xi for ϕ\phi seconds and you get the rigid transformation.

Screw axis and exponential coordinates are NOT the same thing. Think driving directions: ξ\xi is "point the car north-east", ϕ\phi is "drive 5 km", and ξϕ\xi\phi is "drive 5 km north-east". The axis is the direction, the coordinates are the whole trip.

Same idea, different letters: ϕ\phi, θ\theta and qiq_i all mean "how much the joint moved" depending on the slide.

r˙C\dot{r}_C is the linear velocity of the body-fixed frame in the world frame; it is 030_3 when the body only rotates.

vv is the velocity of the body point that momentarily coincides with the WORLD origin, on an imagined extension of the body.

For a pure rotation this reduces to v=−(ω×rC)v = -(\omega \times r_C).

Use any point on the rotation axis for rCr_C; the result is the same.

Seen in Practice exam 3872.

Both split a motion into a unit direction and a scalar amount, which is why they look related. They are not the same object.

Quaternion: ϕ\phi is a rotation ANGLE, entries are cosines and sines of the HALF angle, 4 numbers, orientation only.

Screw: ϕ\phi is a DISTANCE travelled, entries are a raw unit direction with no trigonometry at all, 6 numbers, rotation AND translation.

Quick tell: if there is no trig in what you wrote, it is not a quaternion.

ξ\xi is the DIRECTION (the screw axis) and ϕ\phi is the AMOUNT (how far you travel around and along it). Same split as ωϕ\omega\phi in 2.2: a unit direction times a scalar.

Look at the rotation block FIRST. If R=IR = I there is no rotation, so ω=03\omega = 0_3 and the motion is a pure translation.

Pure translation: ϕ=∥r∥\phi = \lVert r \rVert and v=r/∥r∥v = r / \lVert r \rVert, where rr is the translation vector.

Example: TT with R=IR = I and r=[1,0,1]Tr = [1,0,1]^{T} gives ϕ=2\phi = \sqrt{2}, v=[22,0,22]Tv = [\tfrac{\sqrt2}{2}, 0, \tfrac{\sqrt2}{2}]^{T}, so ξϕ=[0,0,0,22,0,22]T2\xi\phi = [0,0,0,\tfrac{\sqrt2}{2},0,\tfrac{\sqrt2}{2}]^{T}\sqrt{2}.

Check: multiplying ξ\xi by ϕ\phi must return the original translation in the lower three entries.

Two cases, and the exam asks for both. General motion: the angular part is the unit one. Pure translation: ω\omega is zero and cannot be normalised, so the job passes to vv.

Something must be unit length so that ϕ\phi carries the magnitude unambiguously. Otherwise the same motion could be written with infinitely many (ξ,ϕ)(\xi, \phi) pairs.

Geometric reading: ξ\xi is the bolt, ϕ\phi is how far you drive it in.

Velocity reading: apply the velocities packed into ξ\xi for ϕ\phi seconds and you get the rigid transformation.

Unit 3Forward Kinematics

Maps joint coordinates qq to the end-effector pose XEX_E. "I set the motors like this, where is the hand?"

Always single-valued: one configuration gives exactly one pose. (The reverse, IK, is where the trouble starts.)

Three ways the course builds FKFK: a DH table (3.1), the product of exponentials (3.2), or a URDF file (3.3). Same robot, same answer, different bookkeeping.

Seen in Practice exam 3872.

Each link adds one term: its length times cos (for xx) or sin (for yy) of its ABSOLUTE angle.

The absolute angle of link kk is the SUM of all joint angles up to kk, because every link rides on top of the ones before it. Turn q1q_1 and the whole arm swings with it. That is why q1q_1 shows up in every single term.

Two links? Drop the a3a_3 terms. One link? x=acos⁡qx = a\cos q, y=asin⁡qy = a\sin q.

If the exam hands you something like FK(q)=[sin⁡q1+sin⁡q2, cos⁡q1+cos⁡q2]TFK(q) = [\sin q_1 + \sin q_2,\ \cos q_1 + \cos q_2]^{T}, it is just a math function, not a stacked arm. Then q1q_1 and q2q_2 are independent and you do NOT add them up.

Sanity check: put all qi=0q_i = 0. The arm lies flat along xx, so x=a1+a2+a3x = a_1 + a_2 + a_3 and y=0y = 0.

Unit 3.1The Denavit-Hartenberg Convention

Four parameters per joint: twist α\alpha, length aa, offset dd, angle θ\theta. Row ii of the table takes you from segment i−1i-1 to segment ii.

The joint variable lives in θ\theta for a revolute joint and in dd for a prismatic one. Exactly one entry per row moves.

With α=0\alpha = 0, a pure θ\theta rotation sits in the top-left RzR_z block and dd shifts along zz.

Plug the numbers in BEFORE multiplying. With α=0\alpha = 0 or ±90∘\pm 90^\circ half the matrix dies and the algebra stays short.

Full walkthrough with a worked table: see the DH parameters note.

Seen in Practice exam 3872.

You do not need to memorise the big DH matrix. Spin about zz, slide along zz, slide along the new xx, spin about that xx. Multiply those four and the DH matrix falls out.

dd and θ\theta are both measured on the OLD zz axis; aa and α\alpha both on the NEW xx axis. Remember which axis a parameter lives on and you can rebuild its definition.

Reading a figure: axes intersect means a=0a = 0; axes parallel means α=0\alpha = 0; axes perpendicular means α=±90∘\alpha = \pm 90^\circ (sign by right-hand rule about xx).

Unit 3.2Product of Exponentials

The top-left block is plain Rodrigues from 2.2. The top-right column is the messy part.

Needs ∥ω∥=1\lVert \omega \rVert = 1.

Good to recognise, painful to compute. In practice this is done in software (MATLAB expm\texttt{expm}). By hand, trace the robot's motion geometrically instead.

The easy one. No rotation, so the rotation block stays identity and the tool simply moves ϕ\phi units along vv.

Prismatic joint example: v=[0,0,−1]Tv = [0,0,-1]^{T}, q4=1q_4 = 1 gives a translation column of [0,0,−1]T[0,0,-1]^{T}.

Read backwards: if a transform has R=IR = I, its translation column rr gives ϕ=∥r∥\phi = \lVert r \rVert and v=r/∥r∥v = r/\lVert r \rVert.

Recipe: (1) home pose M=TFWI(q=0n)M = T_F^{W_I}(q = 0_n), a normal homogeneous transform read off the figure. (2) One screw axis ξi\xi_i per joint. (3) Hat each one. (4) Wrap each [ξi]qi[\xi_i] q_i in its own ee. (5) Multiply base to tip and put MM at the very end.

The joint coordinates qiq_i correspond to the distances traveled along the respective screw axes. Leave them as VARIABLES when asked to "state" the PoE. They are the motor inputs, not numbers to find.

TFWI(q=0n)T_F^{W_I}(q = 0_n) is the homogeneous transformation of the end-effector in the initial/home position. Easy to forget, and the answer is incomplete without it.

You CANNOT add the exponents: eAeB≠eA+Be^{A}e^{B} \neq e^{A+B} for matrices unless AB=BAAB = BA. Joint motions almost never commute (order of rotations changes where you end up).

Evaluating it with numbers means four 4×44\times4 matrix exponentials, which is computer work. By hand, trace the motion physically instead: e.g. the SCARA at home (4,0,1)(4,0,1) with q=[−π2,π2,π2,1]Tq = [-\tfrac{\pi}{2}, \tfrac{\pi}{2}, \tfrac{\pi}{2}, 1]^{T} ends at [2,−2,0]T[2,-2,0]^{T}.

Unlike DH you only need two frames (base and tool). That is the whole selling point.

Seen in Practice exam 3872.

The exponential e(⋅)e^{(\cdot)} only works on a square matrix, so every 6-vector ξi\xi_i has to be "inflated" to 4×44\times4 before it goes into PoE. The hat (or the square brackets) is the instruction to do that.

No new maths: top 3 numbers (ω\omega) go into the skew-symmetric block, bottom 3 numbers (vv) become the right column, last row is all zeros.

Every joint gets its own hat. Not just the final result.

Notice the bottom-right is 00, not 11. This is NOT a homogeneous transform, it is a velocity-like object. It only becomes a transform after the exponential.

Angular part ω\omega on top, linear part vv below. Six numbers per joint, all in the BASE frame, with the robot in its home pose.

Revolute: ω\omega = unit vector of the rotation axis (read it off the figure), pp = ANY point on that axis. Position matters here (lever arm).

Prismatic: ω=03\omega = 0_3, vv = unit vector of the sliding direction. Position does NOT matter here, only the direction the joint slides.

Example, SCARA with joints at x=0,2,4x = 0, 2, 4 all turning about zz, plus a slider going down: ξ1=[0,0,1,0,0,0]T\xi_1 = [0,0,1,0,0,0]^{T}, ξ2=[0,0,1,0,−2,0]T\xi_2 = [0,0,1,0,-2,0]^{T}, ξ3=[0,0,1,0,−4,0]T\xi_3 = [0,0,1,0,-4,0]^{T}, ξ4=[0,0,0,0,0,−1]T\xi_4 = [0,0,0,0,0,-1]^{T}.

Spot the pattern: a zz-axis joint at distance LL along xx always gives v=[0,−L,0]Tv = [0, -L, 0]^{T}. Saves you the cross product.

Unit 3.3The Universal Robot Description Format (URDF)

Each <origin xyz rpy>\texttt{<origin xyz rpy>} is one homogeneous transform: xyz is the translation column, rpy builds the rotation. Then chain them like any other transforms.

At the home pose the joint variables are zero, so only the origins count.

1.5708\texttt{1.5708} rad is π2\tfrac{\pi}{2}, so rpy="0 0 1.5708"\texttt{rpy="0 0 1.5708"} is Rz(90∘)R_z(90^\circ).

Shortcut from 2.3: rotations multiply, and each new xyz gets rotated by everything before it, then added. You never need a full 4×44\times4 product.

An XML-based file format that provides a semantic description of the robot and its constituent parts.

Structure: everything sits inside <robot>\texttt{<robot>}. <link>\texttt{<link>} tags are the bones, <joint>\texttt{<joint>} tags are the hinges connecting a parent link to a child link.

Joint types: revolute\texttt{revolute} (turns, with limits), continuous\texttt{continuous} (turns forever, no limits), prismatic\texttt{prismatic} (slides), fixed\texttt{fixed}.

<axis>\texttt{<axis>} is the direction it turns around or slides along, exactly like ω\omega or vv in a screw axis.

THE trap: <origin>\texttt{<origin>} is RELATIVE to the parent joint, not measured from the base. PoE measures everything from the base; URDF measures each step from the previous one. If joint 2 is 2 units right of joint 1, write xyz="2 0 0"\texttt{xyz="2 0 0"}, not its absolute position.

Unit 4Inverse Kinematics

Turns a desired end-effector pose into joint coordinates. "I want the hand HERE, how do I set the motors?"

For an nn-joint arm the solution lives in Rn\mathbb{R}^{n}; it may have many, exactly one, infinitely many or no solutions. That is what makes it harder than FK.

Two families: analytical (4.1, exact formulas from geometry and algebra, for simple arms) and numerical (4.2, a guess-and-correct loop with the Jacobian, for everything else).

Seen in Practice exam 3872.

Unit 4.1Analytical Inverse Kinematics

Works for arbitrary link lengths a1a_1 and a2a_2. Solve q2q_2 (elbow) first, then q1q_1 (shoulder).

The ±\pm in sq2s_{q2} leads to two possible valid configurations (elbow up and elbow down) for the exact same Cartesian target. Pick the sign of sq2s_{q2}, and q1q_1 follows from it.

Read q1q_1 as two angles: γ=arctan2⁡(y,x)\gamma = \operatorname{arctan2}(y,x) is the angle from the base straight to the target, α=arctan2⁡(a2sq2, a1+a2cq2)\alpha = \operatorname{arctan2}(a_2 s_{q2},\ a_1 + a_2 c_{q2}) is how far link 1 sits off that line because the elbow is bent. q1=γ−αq_1 = \gamma - \alpha.

If q2q_2 is already given (common in exam questions) skip the first three lines. With a1=a2=1a_1 = a_2 = 1: α=arctan2⁡(sin⁡q2, 1+cos⁡q2)\alpha = \operatorname{arctan2}(\sin q_2,\ 1 + \cos q_2).

Casio: γ\gamma is Pol(x,y)\text{Pol}(x, y), α\alpha is Pol(a1+a2cos⁡q2, a2sin⁡q2)\text{Pol}(a_1 + a_2\cos q_2,\ a_2 \sin q_2).

Example: a1=a2=1a_1 = a_2 = 1, target (1,−0.5)(1, -0.5), q2=112.02∘q_2 = 112.02^\circ: γ=−26.57∘\gamma = -26.57^\circ, α=56.01∘\alpha = 56.01^\circ, so q1=−82.58∘q_1 = -82.58^\circ.

cq2c_{q2} outside [−1,1][-1, 1] means the target is out of reach. Stop there.

Seen in Practice exam 3872.

No calculation needed. Picture the two links folding and stretching.

Too far: even fully stretched the arm is too short. Zero solutions.

Exactly at max reach: only the straight arm (q2=0q_2 = 0) gets there. One solution.

Anywhere inside: the elbow can bend up or down and both hit the target. Two solutions.

At the base with equal links: fold the elbow completely back (q2=πq_2 = \pi) and the tip sits on the origin. Now spin q1q_1 to ANY angle, like a ceiling fan, and the tip stays put. Infinitely many.

With a1=a2=1a_1 = a_2 = 1 that reads: none for ∥XE∥>2\lVert X_E \rVert > 2, one for =2= 2, two for 0<∥XE∥<20 < \lVert X_E \rVert < 2, infinite for =0= 0.

If the FK is given as a matrix times qq, IK is just "solve Ax=bAx = b". No trig.

Gauss: write the augmented matrix [A∣XE][A \mid X_E] with the TARGET on the right of the bar (not the qqs), clear everything below the diagonal with row operations, then back-substitute from the bottom row up.

2×22\times2? Faster to use the inverse formula A−1=1det⁡A[d−b−ca]A^{-1} = \tfrac{1}{\det A}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}.

Always plug your answer back into AqAq and check you get XEX_E. Ten seconds.

Spot shortcuts: if subtracting two rows kills all but one unknown, solve it straight away.

Plain arctan⁡(y/x)\arctan(y/x) only sees the ratio, so it cannot tell (1,1)(1,1) from (−1,−1)(-1,-1), or (1,−1)(1,-1) from (−1,1)(-1,1). The signs cancel and you land in the wrong quadrant.

arctan2⁡\operatorname{arctan2} takes yy and xx SEPARATELY, checks both signs, and gives the true angle in all four quadrants.

Argument order: yy FIRST, then xx. Easy to swap under stress.

Casio fx-991ES PLUS has no atan2 button, but Pol(x,y)\text{Pol}(x, y) does the same thing: SHIFT + [+] opens Pol, type xx, SHIFT + [)] for the comma, type yy, close, =. It shows rr and θ\theta; θ\theta is your angle.

Careful: Pol wants xx FIRST, the opposite order to arctan2⁡(y,x)\operatorname{arctan2}(y, x).

Bonus: the rr Pol gives you is x2+y2\sqrt{x^2 + y^2}, the distance to the target. Handy for the reachability check.

Unit 4.2Numerical Inverse Kinematics

Think of walking to something in the dark. GUESS some joint angles qkq_k. CHECK where the hand actually is with FK, and how far that is from the target: the error XE−FK(qk)X_E - FK(q_k). CORRECT the guess using J−1J^{-1}, which translates "the hand is off by this much" into "turn the joints by this much". REPEAT until the error is basically zero.

Derived by Taylor-expanding the forward kinematics near qkq_k and neglecting the truncation error. That is why it is ≅\cong and not ==: each step is only an approximation, so you loop.

It breaks near singularities: det⁡J→0\det J \to 0 makes J−1J^{-1} blow up and the correction step explodes.

Uses the pseudo-inverse J#J^{\#} when JJ is not square.

Seen in Practice exam 3872.

A normal inverse only exists for SQUARE matrices. A redundant robot has more joints than workspace coordinates, so its Jacobian is wide (e.g. 2×32\times3: three joints, planar position).

Physically: three joints reaching a 2-D point have infinitely many poses. J#J^{\#} picks the "cheapest" one (smallest joint motion).

JJTJJ^{T} is square (2×22\times2 here), so it CAN be inverted, as long as the robot is not singular.

Exam phrasing: "which matrix must be used in numerical IK?" for a non-square JJ means: the pseudo-inverse (right inverse) J#J^{\#}.

Unit 5Differential Kinematics and Statics

Positions: FK forward, IK backward. Velocities: JJ forward, J−1J^{-1} backward. Forces: JTJ^{T} maps the hand force to joint torques, (JT)−1(J^{T})^{-1} goes back.

FEF_E is the force/moment AT THE END-EFFECTOR, τ\tau are the torques (or forces, for prismatic joints) AT THE JOINTS.

Most exam questions in this unit are one of these equations plus a 2×22\times2 inverse or a matrix-vector product.

Every Jacobian question starts the same way: write FK, take partial derivatives, plug in the numbers.

Unit 5.1Manipulator Jacobian

Derived using the chain rule on the nested functions FK(q(t))FK(q(t)): the hand depends on the joints, the joints depend on time. Derivative of the outside times derivative of the inside.

The manipulator Jacobian J(q)J(q) always has the dimension nWS×nJn_{WS} \times n_J (workspace dims ×\times joint dims).

ddt\tfrac{d}{dt} (normal derivative) for time because q(t)q(t) depends on time only. ∂∂q\tfrac{\partial}{\partial q} (partial) for FK because it depends on several joints.

Same idea as FK, just one level up: FK maps positions, JJ maps speeds.

Seen in Practice exam 3872.

Row = one workspace coordinate, column = one joint. So the size is nWS×nJn_{WS} \times n_J: count columns to get the DOF, count rows to get the workspace coordinates.

Column ii is the hand velocity you get when ONLY joint ii moves at unit speed. That is the most useful way to read a Jacobian.

So with q˙=[1,0]T\dot{q} = [1, 0]^{T} the hand velocity is just column 1. No multiplication needed.

Partial derivative = change ONE joint, freeze all the others. You need partials because the hand position depends on several joints at once.

Prismatic joints along xx and yy (x=q1x = q_1, y=q2y = q_2) give J=IJ = I. Sliders map straight through.

Seen in Practice exam 3872.

Unit 5.2Kinematic Singularities

Laplace: walk along a row, multiply each entry by the 2×22\times2 determinant left after crossing out its row and column, and alternate signs +,−,++,-,+.

Expand along the row or column with the MOST ZEROS. Every zero kills a whole term.

The calculator does 3×33\times3 determinants, but with symbols (sin⁡q1\sin q_1 and friends) you have to do it by hand.

Trig cleanup you will need: sin⁡Acos⁡B−cos⁡Asin⁡B=sin⁡(A−B)\sin A\cos B - \cos A \sin B = \sin(A - B), sin⁡(x+π)=−sin⁡x\sin(x + \pi) = -\sin x, cos⁡(x+π)=−cos⁡x\cos(x + \pi) = -\cos x.

The Jacobian loses rank: the arm cannot move in some direction, like locking your knees.

Fastest check, no calculation: look for dependent columns or rows. A column of zeros, two equal columns, or one column being a combination of others (e.g. col 1 + col 2 = col 3) means singular.

Square JJ: just compute det⁡J\det J. Non-square JJ: a determinant does not exist, so use det⁡(JJT)\det(JJ^{T}), which is square. For square JJ both work, since det⁡(JJT)=(det⁡J)2\det(JJ^{T}) = (\det J)^2.

To FIND singular configurations: write det⁡J\det J in terms of qq, set it to zero, solve. For the 2-link arm that is sin⁡q2=0\sin q_2 = 0, so q2=kπq_2 = k\pi: arm fully stretched or fully folded.

Getting sin⁡(−q2)=0\sin(-q_2) = 0 instead is the same answer, it just depends on the order you subtracted.

Seen in Practice exam 3872.

Column ii is what joint ii does to the hand. All zeros means spinning it does nothing.

2-link arm, equal links: q2=πq_2 = \pi kills column 1. Top: −sin⁡q1−sin⁡(q1+π)=−sin⁡q1+sin⁡q1=0-\sin q_1 - \sin(q_1 + \pi) = -\sin q_1 + \sin q_1 = 0. Bottom: cos⁡q1+cos⁡(q1+π)=0\cos q_1 + \cos(q_1 + \pi) = 0. The arm is folded back on itself, so the tip sits on the axis of joint 1.

A zero ROW instead means the hand cannot move in that workspace direction at all. E.g. J=[00−2−1]J = \begin{bmatrix} 0 & 0 \\ -2 & -1 \end{bmatrix}: velocity possible along yy, impossible along xx.

Unit 5.3Manipulability Ellipsoids

Cartesian velocities of the end-effector are located on the surface of an ellipsoid when the joint velocities satisfy q˙Tq˙=1\dot{q}^T\dot{q} = 1.

Why ∥q˙∥=1\lVert \dot{q} \rVert = 1? It is a SPEED BUDGET, not an angle limit. The dot means velocity. Give the motors a fixed total budget of 1 (a circle of joint speeds) and see what shape of hand speeds comes out. Bigger budget, same shape, just scaled.

Derivation (4 lines): start from q˙Tq˙=1\dot{q}^{T}\dot{q} = 1, substitute q˙=J−1X˙E\dot{q} = J^{-1}\dot{X}_E, use (AB)T=BTAT(AB)^{T} = B^{T}A^{T} to get X˙ET(J−1)TJ−1X˙E=1\dot{X}_E^{T}(J^{-1})^{T}J^{-1}\dot{X}_E = 1, and (J−1)TJ−1=(JJT)−1(J^{-1})^{T}J^{-1} = (JJ^{T})^{-1}.

Example: J=[−10−1−1]J = \begin{bmatrix} -1 & 0 \\ -1 & -1 \end{bmatrix} gives E=JJT=[1112]E = JJ^{T} = \begin{bmatrix} 1 & 1 \\ 1 & 2 \end{bmatrix}.

How far the configuration is from a singularity; zero at one.

It is proportional to the volume (area in 2-D) of the manipulability ellipsoid. Bigger ww, more freedom to move.

Comparing two configurations: compute ww for both and pick the larger. E.g. det⁡E1=0.52⇒w1≈0.72\det E_1 = 0.52 \Rightarrow w_1 \approx 0.72 beats det⁡E2=0.13⇒w2≈0.36\det E_2 = 0.13 \Rightarrow w_2 \approx 0.36.

Eigenvectors are the DIRECTIONS of the ellipse axes, eigenvalues are the SQUARED lengths of those axes.

Diagonal EE (zeros off the diagonal): eigenvalues are just the diagonal entries, eigenvectors are the unit vectors [1,0]T[1,0]^{T} and [0,1]T[0,1]^{T}. Zero work.

Equal eigenvalues: the ellipse is a CIRCLE, the robot is equally good in every direction. E.g. E=diag(9,9)E = \text{diag}(9,9) gives a circle of radius 3. Then (E−9I)v=0(E - 9I)v = 0 is all zeros and ANY vector works, so pick the clean unit vectors.

Very different eigenvalues: long thin ellipse. Easy to move along the long axis, hard along the short one.

General 2×22\times2: λ2−tr⁡(E) λ+det⁡E=0\lambda^{2} - \operatorname{tr}(E)\,\lambda + \det E = 0, then plug each λ\lambda back into (E−λI)v=0(E - \lambda I)v = 0.

An eigenvalue of 0 means the ellipse is flat: singular configuration.

Unit 5.4Inverse Differential Kinematics

Joint velocities needed to deliver a wanted end-effector velocity.

Blows up near singularities, where J−1J^{-1} does not exist.

By hand: either the 2×22\times2 inverse formula, or Gauss on [J∣X˙E][J \mid \dot{X}_E]. With Gauss, the TARGET goes on the right of the bar.

Seen in Practice exam 3872.

Transforms a desired Cartesian end-effector acceleration into required joint accelerations.

Derived from taking the first-time derivative of X˙E=Jq˙\dot{X}_E = J\dot{q}, which yields X¨E=Jq¨+J˙q˙\ddot{X}_E = J\ddot{q} + \dot{J}\dot{q} (product rule: JJ changes with time too).

Seen in Practice exam 3872.

Swap the diagonal, flip the signs of the off-diagonal, divide by the determinant.

Check: JJ−1=IJ J^{-1} = I.

This one formula shows WHY singularities are dangerous: det⁡J\det J sits in the denominator.

A tiny determinant like −0.001-0.001 puts a factor of 10001000 into J−1J^{-1}.

So some directions stay easy (normal joint speeds, e.g. [−1,1]T[-1, 1]^{T}) while others need absurd speeds (e.g. [−1000,2000]T[-1000, 2000]^{T} rad/s), which would wreck the motors.

Typical exam answer: "motion (a) is feasible, motion (b) is not recommendable because the configuration is close to singular and demands huge joint velocities." Show det⁡J\det J is close to zero, then compute both q˙\dot{q}.

That is why you check for (near-)singularity FIRST. It tells you which directions are safe before you command anything.

Unit 5.5Statics

Given the motor torques, which force does the hand exert? Invert JTJ^{T} (2×22\times2 formula).

Only for square, non-singular JJ. At a singularity some hand forces need no torque at all (the structure carries them), and some cannot be produced.

The transposed Jacobian maps an end-effector force to joint torques at rest.

Derivation (power balance): power at the joints = power at the hand, τTq˙=FETX˙E=FETJq˙\tau^{T}\dot{q} = F_E^{T}\dot{X}_E = F_E^{T}J\dot{q}. This must hold for EVERY possible q˙\dot{q}, and the only row vector that gives zero against every vector is zero itself, so τT=FETJ\tau^{T} = F_E^{T}J. Transpose: τ=JTFE\tau = J^{T}F_E.

FEF_E is the force the ROBOT applies. Pushing a wall on its left means FEF_E points along −x-x. Read the direction twice; flipping it flips every torque.

Holding a mass mm: the robot pushes UP with FE=[0, mg]TF_E = [0,\ mg]^{T}. Use g=9.81g = 9.81 and give units: N for FF, Nm for revolute torques.

Sanity check with torque = force ×\times lever arm. A force whose line passes straight through a joint needs zero torque at that joint.

It is the duality partner of X˙=Jq˙\dot{X} = J\dot{q}.

Seen in Practice exam 3872.

Unit 6.1Basic Concepts

Path specifications: start, end, waypoints, shapes (line, arc).

Path conditions: obstacles and forbidden zones.

Time specifications: total duration, start/end speeds and accelerations.

Kinematic/dynamic limits of the robot: max joint positions, speeds, accelerations.

Think Unity's Vector3.Lerp\texttt{Vector3.Lerp}: where from, where to, how fast, and what you are not allowed to hit.

The rate of change of acceleration; high jerk stresses actuators and wastes energy.

It affects smoothness, not the maximum velocity.

Position, velocity, acceleration, jerk: each one is the time derivative of the one before.

Seen in Practice exam 3872.

Joint space: interpolate each motor angle directly. Fast, no IK, no singularity trouble, but the hand path in between is some curve you do not control. Good for moving between points in open space (KUKA PTP).

Cartesian space: plan the hand path itself (a line, an arc), then run IK at every step. Use it when the SHAPE matters: welding a seam, gluing, cutting (KUKA LIN).

Cartesian planning has to watch out for singularities along the path.

Unit 6.2Trajectories in the Joint Space

Four coefficients match position and velocity at both ends.

Start and stop at rest (q˙0=q˙f=0\dot{q}_0 = \dot{q}_f = 0): a2=3Δq/T2a_2 = 3\Delta q / T^2, a3=−2Δq/T3a_3 = -2\Delta q / T^3.

Smooth velocity, but the acceleration jumps at the endpoints. Need smooth acceleration too? Go to degree 5.

These closed forms are what Gauss on the 4×44\times4 system gives you. Check by plugging t=Tt = T back in.

Joint-space move: each axis A1 to A6 goes straight to its target angle (degrees). The hand path in between is not controlled.

Compare LIN, which moves the hand along a straight Cartesian line.

For a linear trajectory the speed is the slope a1=Δq/Ta_1 = \Delta q / T. Longer TT, flatter slope, slower joint.

Do it per joint, then take the largest (see synchronous trajectories).

Example, limit 50∘/s50^\circ/\text{s}: joint 1 moves 100∘100^\circ so T1≥2T_1 \ge 2 s; joint 2 moves −10∘-10^\circ so T2≥0.2T_2 \ge 0.2 s.

Two position boundary conditions need a degree-one polynomial, so two coefficients.

Plug in t=0t = 0 to get a0a_0 (the start), then t=Tt = T to get a1a_1. q(t)q(t) literally means "the joint angle at time tt", so q(T)q(T) is the target.

Example, T=1T = 1: joint from 0∘0^\circ to 100∘100^\circ gives q(t)=100tq(t) = 100t; joint from 30∘30^\circ to 20∘20^\circ gives q(t)=−10t+30q(t) = -10t + 30.

Velocity is constant (q˙=a1\dot{q} = a_1), acceleration is zero during the move.

The catch: starting from rest it has to jump to full speed instantly at t=0t = 0 (and stop instantly at TT). Infinite acceleration, huge jerk, vibrations. Only fine if the joint is already moving at that speed before and after. Unity terms: no ease-in, no ease-out.

Seen in Practice exam 3872.

Every condition is one row: write q(t)q(t) or q˙(t)=a1+2a2t+3a3t2\dot{q}(t) = a_1 + 2a_2 t + 3a_3 t^{2} at the given time and set it equal to the given value.

The t=0t = 0 rows give a0a_0 and a1a_1 for free. Substitute them and only a small system for the rest is left.

Same pattern for degree 5: add q¨(t)=2a2+6a3t+12a4t2+20a5t3\ddot{q}(t) = 2a_2 + 6a_3 t + 12 a_4 t^2 + 20 a_5 t^3 rows for the accelerations.

A "condition" (or constraint) is just a checkpoint the motion MUST hit exactly, like "start in Madrid at 8:00" and "arrive in Barcelona at 14:00".

nn is the highest power of tt. A polynomial of order nn has n+1n + 1 coefficients and fulfills n+1n + 1 constraints: one unknown per rule.

2 conditions (start/end positions) →\rightarrow Degree 1 (Linear): q(t)=a1t+a0q(t) = a_1t + a_0.

4 conditions (+ velocities) →\rightarrow Degree 3 (Cubic).

6 conditions (+ accelerations) →\rightarrow Degree 5.

A speed LIMIT like ∣q˙∣≤50∘/s|\dot{q}| \le 50^\circ/\text{s} is NOT a condition. It is an inequality, it does not raise the degree; it only decides how long TT must be.

Physical meaning at t=0t=0: a0=qi0a_0 = q_{i0}, a1=q˙i0a_1 = \dot{q}_{i0}, a2=12q¨i0a_2 = \frac{1}{2}\ddot{q}_{i0}. Higher coefficients have no single meaning; they blend towards the end conditions.

Seen in Practice exam 3872.

Forces all joints to start and end their motions at the exact same time. (It is NOT about the hand matching some velocity.)

The minimal valid duration TT is dictated by the "slowest" joint (the one needing the most time to safely obey its speed limits).

Then recompute every joint with that common TT. Example with T=2T = 2: q1(t)=50tq_1(t) = 50t and q2(t)=−5t+30q_2(t) = -5t + 30. The fast joint just takes its time.

Do not shrink everything to 1 s: the slow joint would break its speed limit.

Seen in Practice exam 3872.

Unit 6.3Trajectories in the Workspace

rr is pure geometry (where on the line), r(t)r(t) adds the clock (when).

Linear r(t)=t/Tr(t) = t/T means constant hand speed. Replace it with a smooth polynomial in tt to ease in and out, same rules as joint space.

Example: y0=0y_0 = 0, yf=10y_f = 10, T=1T = 1 gives y(t)=10ty(t) = 10t and y˙=10\dot{y} = 10.

Robot controllers compute states at discrete intervals, not continuously.

Δt\Delta t is the sample time (e.g., 100 ms = 0.1 s).

kk is the step index (0, 1, 2...). Note there are T/Δt+1T/\Delta t + 1 steps because you count both ends: T=1T = 1 s with Δt=0.1\Delta t = 0.1 s gives 11 states.

Exam answer format: a table of kk, tt, position, velocity. With y(t)=10ty(t) = 10t it reads 0,1,2,…,100, 1, 2, \dots, 10.

Seen in Practice exam 3872.

Moves the end-effector along a straight Cartesian line.

Orientation mapping uses the ABC convention: A = yaw (about zz), B = pitch (about yy), C = roll (about xx). Note the order is the REVERSE of "roll, pitch, yaw".

Example: position at the origin, yaw 20∘20^\circ, roll 10∘10^\circ is LIN {X 0,Y 0,Z 0,A 20,B 0,C 10}\text{LIN}\ \{X\ 0, Y\ 0, Z\ 0, A\ 20, B\ 0, C\ 10\}.

Seen in Practice exam 3872.

The geometric slider for a straight line in Cartesian space. Literally Unity's Lerp(X0,Xf,r)\texttt{Lerp}(X_0, X_f, r).

r=0r = 0 gives the start, r=1r = 1 gives the target, anything in between is on the line.

Works per coordinate too: y(r)=y0+r(yf−y0)y(r) = y_0 + r(y_f - y_0).

Seen in Practice exam 3872.

Tap a card to unfold the notes.