state-space-linearization

Compute linearized state-space A and B matrices via Jacobian evaluations.

4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill state-space-linearization-generalreasoning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: state-space-linearization
Source: https://github.com/GeneralReasoning/env-skillsbench/tree/main/r2r-mpc-control/environment/skills/state-space-linearization
Command: npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill state-space-linearization-generalreasoning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Linearizes nonlinear dynamics around an operating point to produce a usable linear model (A, B) for controller design and analysis.

Core Features & Use Cases

  • Jacobian-based linearization of dx/dt = f(x, u) to obtain state-space matrices.
  • Discretization options: Euler for simple discretization and exact matrix exponential for precise step propagation.
  • Guidance for R2R-like systems and interpretation of partial derivatives with respect to states, inputs, and parameters.

Quick Start

Given a nonlinear system dx/dt = f(x, u) and a chosen operating point, compute the Jacobian matrices A and B and apply Euler or matrix-exponential discretization to obtain a usable linear model.

Frequently Asked Questions about state-space-linearization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I linearize nonlinear dynamics around an operating point for control design?

To linearize nonlinear dynamics, you compute the Jacobian matrices A and B by evaluating the partial derivatives of your system equations dx/dt = f(x, u) at a chosen reference operating point. This yields a local linear state-space model suitable for controller design.

What is the difference between Euler discretization and matrix exponential for state-space models?

Euler discretization offers a simple approximation for converting continuous-time state-space models to discrete-time, while the exact matrix exponential method provides precise step propagation. Both options are supported to generate a usable discrete linear model from your Jacobian matrices.

Can I use Jacobian-based linearization for robotics and aerospace control tasks?

Yes, Jacobian-based linearization is suitable for aerospace, robotics, and run-to-run (R2R) control tasks. It applies to any system described by dx/dt = f(x, u) where you need to obtain local linear state-space matrices for analysis and controller design.

How do I get A and B matrices from a nonlinear system for stability analysis?

You obtain A and B matrices by computing the Jacobian of your nonlinear dynamics with respect to the states and inputs, respectively, evaluated at the operating point. The resulting linear model also includes guidance for performing stability checks.

When do I need to linearize a nonlinear system instead of using it directly?

You need to linearize a nonlinear system when your controller design or stability analysis requires a linear state-space model. Linearization produces local approximations A and B that are valid around a specific operating point, enabling standard linear control techniques.