Join the PiyushAI AI & Data Science Community | Newsletter
📬 PiyushAI  ·  AI & Data Science Learning Community

Stay Ahead in AI, Data Science, Exams & Your Learning Journey

Join 20,000+ learners exploring AI & Data Science — GATE, Bank IT & PSU exam aspirants, IIT Madras BS Degree students, school teachers exploring the CBSE CT & AI curriculum, working professionals, and anyone starting their AI literacy journey. Tell us a little about yourself and get personalised updates, resources, and mentorship alerts — straight from Piyush Wairale.

🎯
Exam & Career Updates First
GATE, Bank IT Officer, PSU & Government job alerts — plus IIT Madras BS Degree guidance.
📚
Free Learning Resources
Study notes, PYQ analysis, practice questions & guides for exams, data science & AI.
🚀
AI Literacy & CBSE CT-AI
AI tools & concepts for everyone, CBSE CT & AI curriculum support for schools & teachers, plus early course access.
✍️ Join the Community — Fill the Form

Takes less than 60 seconds  •  No spam, only what helps you learn & grow

👨‍🎓 20,000+ Students
▶️ 44,000+ YouTube Subscribers
🎓 IIT Madras Alumnus Mentor

Forward kinematics answers the most fundamental question in robot manipulation: given the joint variables — the angles of the revolute joints and the extensions of the prismatic joints — where in space does the end-effector sit, and how is it oriented? It is a guaranteed scoring topic in the “Principles of Robotics and Automation” line of the GATE Robotics and Automation (RA) 2027 syllabus, because every problem has a single, deterministic answer that you can grind out with rotation matrices, homogeneous transformations and the Denavit–Hartenberg (DH) convention. This guide builds the theory from the ground up — frames, transformation matrices, the DH parameters, position and velocity kinematics of planar and articulated arms — and then works through five GATE-style numerical problems end to end, with labelled diagrams, formula boxes and the exam pitfalls to avoid.

Video: Top 5 Forward Kinematics Questions — Principles of Robotics & Automation, worked through for GATE RA by Piyush Wairale (IIT Madras).

What is forward kinematics?

A serial manipulator is an open chain of rigid links connected by joints. Each joint contributes one degree of freedom: a revolute joint contributes an angle θi, and a prismatic joint contributes a linear displacement di. Collect these joint variables into a vector q = (q1, q2, …, qn). Forward kinematics is the map from joint space to task space: given q, it returns the position and orientation (the pose) of the end-effector expressed in the fixed base frame.

The defining feature of forward kinematics — and the reason it is such a reliable source of marks — is that the map is unique. For any set of joint values there is exactly one end-effector pose, so there is never any ambiguity to resolve. (The reverse problem, inverse kinematics, can have multiple solutions or none, which is a separate topic.) Forward kinematics splits naturally into position kinematics — where the tool point ends up — and velocity kinematics — how fast it moves for given joint rates, handled through the Jacobian.

Frames, rotation matrices & homogeneous transforms

Attach a coordinate frame to each link. The pose of one frame relative to another is captured by a homogeneous transformation matrix — a 4×4 matrix that packs a 3×3 rotation matrix R and a 3×1 position vector P together, so that a single matrix multiplication carries a point from one frame into another:

ATB =  [ R (3×3)   P (3×1) ;   0 0 0   1 ]   ⇒   AP = ARB · BP + APBorg

The rotation part obeys a crucial rule you will use in almost every problem: the columns of R are the unit vectors of frame B’s x, y and z axes, written in frame A’s coordinates. So if you ever need the direction of frame B’s z-axis as seen from the base, just read off the third column of R. The elementary rotations about the principal axes are worth memorising:

Rz(θ) = [cθ −sθ 0; sθ cθ 0; 0 0 1]  •  Ry(θ) = [cθ 0 sθ; 0 1 0; −sθ 0 cθ]  •  Rx(θ) = [1 0 0; 0 cθ −sθ; 0 sθ cθ]

The full forward-kinematics chain is then just the ordered product of the per-joint transforms, from base (0) to tool (n):

0Tn = 0T1 · 1T2 · 2T3 · … · n−1Tn

The Denavit–Hartenberg convention

The Denavit–Hartenberg (DH) convention is a systematic recipe that describes each link–joint pair with just four parameters instead of a full six-degree pose, by cleverly choosing where the link frames sit. The four DH parameters are the link length ai (distance between successive joint axes along the common normal), the link twist αi (angle between the axes), the link offset di (distance along the joint axis), and the joint angle θi (rotation about the joint axis). For a revolute joint θi is the variable; for a prismatic joint di is the variable.

Each single-link transform is the product of a screw along the previous axis and a screw along the common normal:

i−1Ti = Rotzi) · Transz(di) · Transx(ai) · Rotxi)

Building the DH table for a manipulator and multiplying the link transforms in order is the general, machine-crackable route to forward kinematics of any serial arm. For the low-DOF planar and articulated arms that dominate GATE numericals, you can usually write the position equations by direct geometry (projection onto axes), which is faster — but the DH product always gives the same answer and also delivers the orientation.

Forward position kinematics of a planar 2R arm

The planar two-revolute (2R) arm is the canonical worked example. Two links of length L1 and L2 rotate in a plane by angles θ1 (measured from the x-axis) and θ2 (measured relative to the first link). Projecting each link onto the x and y axes and adding gives the end-effector position directly:

x y θ₁ θ₂ L₁ L₂ (x, y) end-effector at (x, y); joint 2 measured relative to link 1

Figure 1. Planar 2R manipulator. The tool point is the vector sum of the two link projections.

x = L1cosθ1 + L2cos(θ12)   |   y = L1sinθ1 + L2sin(θ12)

The orientation of the end link is simply φ = θ1 + θ2. Notice how the angles accumulate down the chain: the second link’s absolute orientation is the sum of both joint angles. That accumulation is the single most important idea in serial-arm kinematics and it generalises directly to three-link and spatial arms.

Forward velocity kinematics & the Jacobian

Differentiating the position equations with respect to time gives the velocity kinematics — how fast the end-effector moves for given joint rates. For the planar 2R arm, applying the chain rule (and remembering that the derivative of the (θ12) term carries the sum of both joint rates) yields:

ẋ = −L1sinθ1·θ̇1 − L2sin(θ12)(θ̇1+θ̇2)
ẏ =   L1cosθ1·θ̇1 + L2cos(θ12)(θ̇1+θ̇2)

In matrix form this is v = J(q)·q̇, where J is the manipulator Jacobian — the matrix of partial derivatives ∂(x,y)/∂(θ12). The Jacobian is central to robotics: it maps joint rates to Cartesian velocities, it maps joint torques to end-effector forces (via τ = JTF), and the configurations where it loses rank are the singularities where the arm loses a direction of motion. The magnitude of the tool velocity is then |v| = √(ẋ² + ẏ²).

Articulated (RRR) spatial manipulator

A three-revolute articulated (RRR) arm — the classic industrial “anthropomorphic” robot — has a vertical waist joint θ1 that swings the whole arm about the base axis, a shoulder joint θ2, and an elbow joint θ3. The neat trick for its forward kinematics is to work in the vertical plane of the arm first: resolve the reach into a height z above the base and a radial distance r from the waist axis, then let the waist angle rotate that (r, z) point around.

r z L₁ L₂ L₃ θ₂ EE radial reach r work in the vertical plane: (r, z)

Figure 2. Articulated RRR arm resolved in its vertical plane. The straight-line reach from the base is d = √(r² + z²).

With the shoulder angle θ2 measured from the horizontal and the elbow angle θ3 measured relative to the upper arm, the height and radial reach are:

z = L1 + L2sinθ2 + L3sin(θ23)   |   r = L2cosθ2 + L3cos(θ23)

The straight-line distance of the end-effector from the base origin is d = √(r² + z²), and — importantly — it does not depend on the waist angle θ1, because rotating about the vertical axis keeps the tool at the same radius and height. The Cartesian coordinates come from spinning r by the waist angle: x = r·cosθ1, y = r·sinθ1.

Worked examples (GATE-style)

Example 1 — end-effector velocity of a planar 2R arm

A planar 2R manipulator has link lengths L1 = 0.50 m and L2 = 0.40 m. At the instant when θ1 = 60° and θ2 = −30°, the joints rotate at θ̇1 = 1 rad/s and θ̇2 = 2 rad/s. Find the magnitude of the end-effector linear velocity.

Solution. Here θ12 = 30° and θ̇1+θ̇2 = 3 rad/s.

ẋ = −0.50·sin60°·(1) − 0.40·sin30°·(3) = −0.433 − 0.600 = −1.033 m/s.

ẏ = 0.50·cos60°·(1) + 0.40·cos30°·(3) = 0.250 + 1.039 = 1.289 m/s.

|v| = √(1.033² + 1.289²) = √2.729 = 1.65 m/s.

Example 2 — reach of an articulated RRR robot

An articulated (RRR) robot has base height L1 = 0.40 m, upper-arm length L2 = 0.60 m and forearm length L3 = 0.45 m. The waist angle is θ1 = 120°, the shoulder angle θ2 = 30° (from the horizontal) and the elbow angle θ3 = 60° (relative to the upper arm). Find the straight-line distance of the end-effector from the base origin.

Solution. Work in the vertical plane; θ23 = 90°.

z = 0.40 + 0.60·sin30° + 0.45·sin90° = 0.40 + 0.30 + 0.45 = 1.15 m.

r = 0.60·cos30° + 0.45·cos90° = 0.520 + 0 = 0.52 m.

d = √(r² + z²) = √(0.52² + 1.15²) = √1.593 = 1.26 m. (The waist angle θ1 does not affect this distance.)

Example 3 — gripper tip from a transformation matrix

The pose of the wrist frame with respect to the base frame is
0T3 = [0 0 1 0.40; 1 0 0 0.30; 0 1 0 0.90; 0 0 0 1]. A gripper of length 0.15 m is mounted so that its tip lies along the positive z-axis of the wrist frame. Find the x-coordinate of the gripper tip in the base frame.

Solution. The wrist position is P = (0.40, 0.30, 0.90). The z-axis of the wrist frame, in base coordinates, is the third column of the rotation part: (1, 0, 0).

Tip = P + 0.15·(1, 0, 0) = (0.40 + 0.15, 0.30, 0.90) = (0.55, 0.30, 0.90).

x-coordinate = 0.55 m.

Example 4 — minimum reach with a joint limit

An articulated robot has upper-arm length L2 = 0.55 m and forearm length L3 = 0.35 m. Mechanical stops restrict the elbow angle to −120° ≤ θ3 ≤ +120°. Find the minimum distance of the end-effector from the shoulder joint that the arm can achieve.

Solution. By the cosine rule, the shoulder-to-tip distance is d = √(L2² + L3² + 2L2L3cosθ3). This is minimised when cosθ3 is smallest, i.e. at the limit θ3 = ±120°, where cosθ3 = −0.5.

d = √(0.55² + 0.35² + 2·0.55·0.35·(−0.5)) = √(0.3025 + 0.1225 − 0.1925) = √0.2325.

d = 0.48 m. (The elbow cannot fold fully to 180°, so the arm cannot pull in any closer than this.)

Example 5 — mapping a tool-frame point to the base frame

A tool frame is oriented with respect to the base frame by R = Rz(90°)Ry(90°), and its origin is at (0.50, 0.40, 0.80) m in the base frame. A workpiece feature lies at (0.30, 0.10, 0.20) m in the tool frame. Find its y-coordinate in the base frame.

Solution. First build R = Rz(90°)Ry(90°) = [0 −1 0; 0 0 1; −1 0 0].

Rotate the tool-frame point: R·(0.30, 0.10, 0.20) = (−0.10, 0.20, −0.30).

Add the tool-frame origin: (−0.10, 0.20, −0.30) + (0.50, 0.40, 0.80) = (0.40, 0.60, 0.50).

y-coordinate = 0.60 m.

Key formulas

FORMULA SHEET

Homogeneous transform:   AP = ARB·BP + APBorg
FK chain:   0Tn = 0T1·1T2·…·n−1Tn
DH link transform:   i−1Ti = Rotz(θ)Transz(d)Transx(a)Rotx(α)
Planar 2R:   x = L11 + L2c(θ12),   y = L11 + L2s(θ12)
Velocity:   v = J(q)·q̇   |   Force: τ = JTF
RRR reach:   z = L1 + L22 + L3s(θ23),   r = L22 + L3c(θ23)
Straight-line reach:   d = √(r² + z²)

Applications

Forward kinematics is the computational backbone of every manipulator controller. It runs continuously to report where the tool actually is so the robot can be commanded in Cartesian space; it feeds trajectory planning, where a path in task space is checked link by link; it underpins collision checking and workspace mapping, since sweeping the joint variables through their ranges traces out the reachable envelope; and it is the essential first step before inverse kinematics and Jacobian-based velocity and force control can be set up. The same 4×4 transformation machinery describes camera-to-robot calibration in machine vision, tool-centre-point programming on welding and painting robots, and the digital twins used to simulate a cell before commissioning. Mastering it is the gateway to the entire manipulator-kinematics section of the GATE RA syllabus.

Common mistakes to avoid

  • Mixing relative and absolute joint angles. In the 2R and RRR arms the outer link’s orientation is the sum of the joint angles, so the second term uses (θ12), not θ2 alone.
  • Dropping the (θ̇1+θ̇2) factor in velocity. When differentiating a cos(θ12) term, the chain rule brings down the sum of both joint rates.
  • Reading the wrong column of R for an axis direction. The z-axis of a frame is the third column of its rotation matrix, expressed in the reference frame — not a row.
  • Multiplying transforms in the wrong order. Homogeneous transforms do not commute; the chain must be built base-to-tool as 0T1·1T2·…, and RzRy ≠ RyRz.
  • Measuring an angle from the wrong reference. Always check whether the shoulder angle is given from the horizontal or the vertical, and whether the elbow angle is relative to the upper arm or absolute.
  • Forgetting the base offset. When transforming a point between frames, add the origin-position vector after applying the rotation — a rotation alone does not translate the point.

GATE ROBOTICS & AUTOMATION 2027

Master Manipulator Kinematics & the Full RA Syllabus

Get in-depth video lectures, handwritten notes, PYQs and full-length tests covering forward and inverse kinematics, transformations and the Jacobian — plus the entire GATE RA syllabus — taught by Piyush Wairale (IIT Madras).

Enroll in the GATE RA Complete Course

Frequently asked questions

What is the difference between forward and inverse kinematics?

Forward kinematics goes from joint variables to the end-effector pose and always has a unique answer. Inverse kinematics goes the other way — from a desired pose back to the joint variables — and can have multiple solutions (e.g. elbow-up and elbow-down), a unique solution, or no solution if the pose is outside the workspace.

Why do we use homogeneous transformation matrices?

A 4×4 homogeneous transform packs rotation and translation into a single matrix, so the pose of the whole arm is just the ordered product of the per-link transforms. It turns a chain of rotations and offsets into one clean matrix multiplication and automatically carries both the position and the orientation of the end-effector.

What are the four Denavit–Hartenberg parameters?

They are the link length ai, the link twist αi, the link offset di and the joint angle θi. For a revolute joint θi is the variable and the other three are fixed; for a prismatic joint di is the variable. The DH convention describes each link with just these four numbers instead of a full six-parameter pose.

What is the manipulator Jacobian used for?

The Jacobian J maps joint velocities to end-effector velocity through v = J·q̇, and by duality maps end-effector forces to joint torques through τ = JTF. Configurations where J loses rank are singularities, where the arm momentarily cannot move in some Cartesian direction. It is the key tool of velocity and force control.

Does the waist (base) rotation change the reach of an articulated arm?

No. The straight-line distance of the end-effector from the base axis, d = √(r² + z²), depends only on the shoulder and elbow angles. The waist joint rotates that fixed (r, z) point around the vertical axis, changing the x and y coordinates but not the distance from the base.

This guide is part of the manipulator-kinematics track of the complete GATE RA 2027 Syllabus overview. It expands the forward-kinematics section of the Principles of Robotics and Automation guide — review that pillar for manipulators, degrees of freedom, rotation matrices and homogeneous transformations.

Share This Story, Choose Your Platform!
Join the PiyushAI AI & Data Science Community | Newsletter
📬 PiyushAI  ·  AI & Data Science Learning Community

Stay Ahead in AI, Data Science, Exams & Your Learning Journey

Join 20,000+ learners exploring AI & Data Science — GATE, Bank IT & PSU exam aspirants, IIT Madras BS Degree students, school teachers exploring the CBSE CT & AI curriculum, working professionals, and anyone starting their AI literacy journey. Tell us a little about yourself and get personalised updates, resources, and mentorship alerts — straight from Piyush Wairale.

🎯
Exam & Career Updates First
GATE, Bank IT Officer, PSU & Government job alerts — plus IIT Madras BS Degree guidance.
📚
Free Learning Resources
Study notes, PYQ analysis, practice questions & guides for exams, data science & AI.
🚀
AI Literacy & CBSE CT-AI
AI tools & concepts for everyone, CBSE CT & AI curriculum support for schools & teachers, plus early course access.
✍️ Join the Community — Fill the Form

Takes less than 60 seconds  •  No spam, only what helps you learn & grow

👨‍🎓 20,000+ Students
▶️ 44,000+ YouTube Subscribers
🎓 IIT Madras Alumnus Mentor

Recent Post

Connect with PiyushAI | YouTube & Telegram Community
🔗 Connect With Us

Learn Daily, Wherever You Are

Free lectures, exam updates, PYQ discussions, and job alerts — delivered through our YouTube channel and Telegram communities.

▶️
YouTube Channel
Piyush Wairale IITM
Free lectures on AI, Data Science, GATE preparation & exam strategy — trusted by 44,000+ subscribers.
Subscribe Now →
🌐
Official Website
piyushwairale.com
Complete courses, GATE DA test series, mock exams & structured preparation programs — all in one place.
Explore Courses →

Leave A Comment