A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Forward and Inverse Kinematics

Graduate Depth 96 in the knowledge graph ☐ I know this ☆ Set as goal
21topics build on this
373prerequisites beneath it
See this on the map →
Right Triangle Trigonometry IntroductionThe Standard Matrix of a Linear Transformation→→Denavit-Hartenberg Notation and Transformation MatricesIndustrial Automation and Robotics+2 more
kinematics forward-kinematics inverse-kinematics robot-arm position-orientation

Core Idea

Forward kinematics solves the computational problem: given the joint angles of a robot arm, what is the position and orientation of the end-effector (tool, gripper, or sensor) in Cartesian space? Inverse kinematics solves the inverse problem: given a desired end-effector pose (position and orientation), what joint angles achieve it? Forward kinematics has a unique solution; inverse kinematics often has multiple, no, or infinitely many solutions depending on robot geometry. Both are essential for motion planning and control.

How It's Best Learned

Build a simple 2-link planar arm and solve forward kinematics by hand: given angle θ₁ and θ₂, compute end-effector (x, y). Then solve inverse kinematics for that arm and discover multiple solutions geometrically. Progress to a 3-link arm to see how complexity grows. Use a robot simulator (CoppeliaSim, Gazebo) to visualize configurations in real time.

Common Misconceptions

Explainer

Imagine you are building a robotic arm to pick objects from a table. The arm has several joints (shoulder, elbow, wrist) that you can rotate through specific angles. Forward kinematics answers the practical question: if I command the shoulder to angle θ₁, elbow to θ₂, and wrist to θ₃, where does the gripper end up? You solve this by following the kinematic chain: the first link rotates the second link, which rotates the third link. The final position is the vector sum of all link contributions in the global frame of reference.

For a 2-link arm, the computation is straightforward. If link 1 has length L₁ and rotates to angle θ₁, its tip is at (L₁ cos θ₁, L₁ sin θ₁). Link 2, with length L₂, attaches to that point and rotates an additional θ₂ (relative angle) or θ₁ + θ₂ (absolute angle). The gripper position is the sum: x = L₁ cos θ₁ + L₂ cos(θ₁ + θ₂), y = L₁ sin θ₁ + L₂ sin(θ₁ + θ₂). This direct calculation yields a unique answer for any joint configuration. Forward kinematics is a function (and typically a well-defined one) from joint space to Cartesian space.

Inverse kinematics is the reverse problem: you want the gripper at a specific position (x_d, y_d). What joint angles achieve this? This is much harder. Unlike forward kinematics, inverse kinematics is not a simple arithmetic calculation. The equations x = L₁ cos θ₁ + L₂ cos(θ₁ + θ₂) and y = L₁ sin θ₁ + L₂ sin(θ₁ + θ₂) are nonlinear in θ₁ and θ₂, with coupled trigonometric terms. Moreover, solutions may not be unique. For the 2-link arm, the gripper can reach most positions in two configurations: elbow-up (where the arm bends one way) and elbow-down (where it bends the opposite way). If the target is at the boundary of the reachable workspace (distance = L₁ + L₂ or distance = |L₁ - L₂|), there is exactly one solution. If the target is unreachable, there is no solution.

As robots become more complex — a 6-DOF arm with six revolute joints — the forward kinematics computation becomes a chain of matrix multiplications (using the Denavit-Hartenberg convention), but the computation is still straightforward and yields a unique answer. Inverse kinematics, however, becomes dramatically harder. With six joints and six position/orientation constraints (3 Cartesian coordinates plus 3 orientation angles), the system is "non-redundant" in principle, but the equations are transcendental (products of sines and cosines) and may have zero, one, multiple discrete solutions, or even continuous families of solutions depending on the arm geometry and target pose. Singularities — special configurations where the arm loses degrees of freedom — create regions where inverse kinematics is ill-posed.

Practical robotics solves inverse kinematics through a mix of analytical and numerical methods. For simple arm geometries (2-DOF planar, 3-DOF SCARA), analytical solutions exist and can be hard-coded. For complex arms, iterative numerical methods (Newton-Raphson, trust region methods) adjust joint angles to minimize the error between the current gripper position and the desired position. These methods require a good initial guess and can get stuck in local minima. This is why trajectory planning (the next topic) is crucial: instead of commanding a large jump to an arbitrary target, the planner constructs a smooth path through joint space that respects the arm's constraints and avoids singularities.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Vectors in Two Dimensions → Vectors in R^n → Scalar Multiplication of Vectors → Dot Product (Inner Product in R^n) → Matrix Multiplication → Determinants of 2×2 and 3×3 Matrices → Invertible Matrices and Matrix Inverses → Systems of Linear Equations and Matrix Form → Gaussian Elimination and Row Reduction → Row Echelon Form and Back Substitution → The Standard Matrix of a Linear Transformation → Forward and Inverse Kinematics

Longest path: 97 steps · 373 total prerequisite topics

Prerequisites (2)

Leads To (4)