Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

Linear Quadratic Regulator

A Linear Quadratic Regulator, or LQR, is an optimal state-feedback control method for a linear system. In Electrical Circuits and Systems II, it chooses a control input that keeps the system near a desired state while limiting input effort.

Last updated July 2026

What is Linear Quadratic Regulator?

A Linear Quadratic Regulator is a state-feedback controller used for linear systems in Electrical Circuits and Systems II. It gives you a rule for choosing the input u(t) from the current state x(t) so the system moves toward the target behavior without using more control effort than necessary.

The name tells you the structure of the problem. The system model is linear, usually written in state-space form, and the performance measure is quadratic, meaning the cost grows like squares of the state error and the control signal. That square penalty matters because large errors and large inputs get punished more strongly than small ones, so the controller naturally pushes for a balanced solution instead of an extreme one.

In practice, you set up a cost function with weighting matrices, often written as Q and R. Q tells the controller how costly it is for the states to drift away from the desired values, while R tells it how costly it is to use control input. If you choose Q large and R small, the controller reacts more aggressively. If you choose R larger, the controller becomes more conservative and uses less input.

The actual LQR law usually comes out as u = -Kx, where K is the feedback gain found by solving the algebraic Riccati equation. That equation is where the optimization gets turned into a usable controller. You do not guess K by trial and error, you compute it from the system matrices and the cost weights.

For this course, LQR fits naturally after state-space representation, controllability, and observability. A system has to be controllable for LQR to do its job well, because the controller can only steer states that the input can actually influence. Observability often matters too when the full state is not measured directly, since you may need an observer, like a Luenberger observer or Kalman filter, before the LQR feedback can be implemented.

Why Linear Quadratic Regulator matters in Electrical Circuits and Systems II

LQR shows up when Electrical Circuits and Systems II moves from analyzing circuits to designing how they behave. Instead of only asking what the output does after an input, you ask how to choose the input so the output and internal states settle where you want them.

That makes LQR a bridge between state-space modeling and real controller design. If you are working on an amplifier model, a motor-driven circuit, or a regulated power system, LQR gives you a structured way to reduce overshoot, steady deviation, and wasted input effort at the same time.

It also makes the abstract ideas of controllability and observability feel practical. A system that is not controllable will leave some states outside your reach, which means no optimal controller can fix everything. A system that is not fully measured may need an observer first, because LQR is built on state feedback, not just output feedback.

In problem solving, LQR trains you to read matrices as design choices. The Q and R weights are not decoration, they encode what you care about more, state accuracy or control cost. That makes the method useful any time the class asks you to reason from a model to a controller instead of just calculating a transfer function.

Keep studying Electrical Circuits and Systems II Unit 12

Official unit cheatsheet

open one-pager

How Linear Quadratic Regulator connects across the course

State Space Representation

LQR is built on state-space form, not just an input-output transfer function. You need the state matrices A and B to set up the control problem and compute the feedback gain. If you cannot write the circuit or system in state variables, you usually cannot apply LQR directly.

Cost Function

The cost function is the heart of LQR. It decides what counts as a good solution by penalizing state error and control effort with quadratic weights. Changing the cost function changes the controller, so Q and R are really design knobs, not just notation.

Controllability

Controllability tells you whether the input can actually move the system states where you want them. LQR assumes the system is controllable enough for feedback to shape the response well. If a system is poorly controllable, the optimal controller may still exist mathematically, but it will not give the behavior you expected.

Kalman Filter

A Kalman filter often pairs with LQR when not all states are measured. LQR computes the best control law from the state, while the Kalman filter estimates that state from noisy measurements. Together they form a practical estimator-controller setup for many electrical systems.

Is Linear Quadratic Regulator on the Electrical Circuits and Systems II exam?

A quiz or problem set might give you a state-space model and ask whether LQR is appropriate, what the cost weights mean, or how the feedback law changes when Q or R changes. You may also be asked to interpret the closed-loop behavior after applying state feedback, such as whether the system will respond more aggressively or more smoothly.

When the math is included, the task is usually to connect the matrices to the controller, not to memorize a one-line definition. You should be ready to identify the role of the Riccati equation, explain why controllability matters, and describe how an observer fits in if the states are not fully measured. If the question is conceptual, focus on the tradeoff between tracking the desired state and limiting control effort.

Linear Quadratic Regulator vs Kalman Filter

LQR and Kalman filter are often mentioned together, but they solve different problems. LQR is a controller, it decides the input that drives the system toward a goal. The Kalman filter is an estimator, it reconstructs the state from noisy measurements. If the system state is fully known, LQR alone may be enough.

Key things to remember about Linear Quadratic Regulator

  • Linear Quadratic Regulator is an optimal state-feedback controller for a linear system in state-space form.

  • It minimizes a quadratic cost that balances state error against control effort.

  • The weighting matrices Q and R control how aggressively the feedback responds.

  • LQR usually produces a control law of the form u = -Kx, where K comes from the Riccati equation.

  • Controllability matters because the controller can only steer states that the input can actually influence.

Frequently asked questions about Linear Quadratic Regulator

What is Linear Quadratic Regulator in Electrical Circuits and Systems II?

Linear Quadratic Regulator, or LQR, is a state-feedback control method for linear systems. In this course, it is used to choose an input that keeps a circuit or system close to a target state while avoiding unnecessary control effort. The result is an optimal balance, not just the fastest possible response.

How do Q and R affect LQR?

Q weights state deviation, while R weights control effort. If Q is larger relative to R, the controller pushes harder to remove error. If R is larger, the controller becomes more cautious and uses smaller inputs.

Is LQR the same as a Kalman filter?

No. LQR is for control, and a Kalman filter is for estimation. LQR tells you what input to apply, while a Kalman filter helps estimate the state when you cannot measure it directly. They are often paired, but they do different jobs.

Why does controllability matter for LQR?

LQR depends on the input being able to influence the system states. If the system is not controllable, some parts of the state cannot be moved where you want them, no matter how clever the feedback law is. That is why controllability is checked before treating LQR as a reliable design tool.

Linear Quadratic Regulator | Circuits and Systems II | Fiveable