WOLFRAM

OutputResponse[sys,u[t],{t,tmin,tmax}]

gives the numeric output response of systems model sys to the input u[t] for tminttmax.

OutputResponse[sys,{u[0],u[1],}]

gives the output response of the discrete-time system sys to the input sequence u[i].

OutputResponse[sys,u[t],t]

gives the symbolic output response of system sys to the input u[t] as a function of time t.

OutputResponse[sys,{u1[t],,um[t]},]

gives the output response for multiple inputs ui[t].

Details

  • OutputResponse is also known as impulse response, step response, and ramp response.
  • OutputResponse solves the underlying differential or difference equations for the given input.
  • The systems model sys can be a TransferFunctionModel, a StateSpaceModel, a continuous-time AffineStateSpaceModel, or a continuous-time NonlinearStateSpaceModel.
  • A linear TransferFunctionModel or StateSpaceModel sys can also be a descriptor and delay system.
  • The initial values for the differential and difference equations are taken to be zero for a TransferFunctionModel. For the state-space models, they are taken to be the state operating values of sys unless specified.
  • OutputResponse[{sys,{x10,x20,,xn0}},] can be used to specify the initial state for a state-space model sys.
  • For descriptor state-space systems, the initial states need to be consistent.
  • For delay state-space systems, the initial states include history and can be given as xi0[t] for t0. »

Examples

open allclose all

Basic Examples  (4)Summary of the most common use cases

The step response of a second-order system:

Out[1]=1

The output response of a transfer-function model to a sinusoidal input:

Out[1]=1

Visualize the response:

Out[2]=2

The response of a state-space model from nonzero initial conditions:

Out[1]=1
Out[2]=2

The response of a discrete-time system to a sampled sinusoid:

Out[1]=1
Out[2]=2

Scope  (47)Survey of the scope of standard use cases

Basic Uses  (19)

Find the initial value response for a scalar continuous-time state-space model:

Out[1]=1

Find the zero initial condition response for a symbolic input:

Out[1]=1

Find the numeric response of a fourth-order system to a sinusoidal input:

Out[1]=1
Out[2]=2

Find the numeric step response for a continuous-time transfer-function model:

Out[2]=2
Out[3]=3

Get the symbolic solution:

Out[4]=4
Out[5]=5

Find the numeric step response for a discrete-time state-space model:

Out[1]=1

Find the step response for a discrete-time transfer function with a numeric simulation:

Out[2]=2
Out[3]=3

Get the symbolic solution:

Out[4]=4
Out[5]=5

Find the symbolic response for an affine state-space model:

Out[1]=1

Find the symbolic response for an affine state-space model with a nonzero equilibrium:

Out[1]=1
Out[2]=2

Find the numeric response for an affine state-space model with multiple equilibria:

Out[1]=1

Find the symbolic response for a nonlinear state-space model:

Out[1]=1

Find the numeric response for a nonlinear state-space model:

Out[1]=1

Find the numeric response of a two-output fourth-order system to a triangle wave:

Out[1]=1

Find the symbolic response of a three-output transfer-function model:

Out[1]=1

Find the response of a state-space model with output delays:

Out[1]=1

A system with two inputs:

Out[1]=1

When a multiple-input system receives a single input, it is applied separately to each input:

Out[1]=1

A numeric response for a multiple-input, multiple-output transfer-function model:

Out[1]=1

A second-order system settling from nonzero initial states:

Out[1]=1
Out[2]=2

A nonlinear state-space model with multiple equilibria:

The steady-state position depends on the initial condition:

Out[2]=2

An alternating input signal can cause the system to switch between equilibria:

Out[3]=3

Continuous-Time Systems  (19)

The output response of a continuous-time system to a step input:

Out[2]=2

The response for various damping ratios:

Out[3]=3

The response to a unit step input:

Out[1]=1

The response of a descriptor StateSpaceModel:

Out[1]=1

The response when there is an algebraic equation:

Out[1]=1

The response of a state-space model:

Out[1]=1
Out[2]=2

The initial values of the states are assumed to be zero:

Out[3]=3

The response of a two-output system to a delayed step input:

Out[1]=1
Out[2]=2

The output response for nonzero initial conditions:

Out[1]=1

Plot the response:

Out[2]=2

The output response for a system with two inputs:

Out[1]=1

A second-order system step response goes from oscillations at to overdamped at :

Out[1]=1

If there are fewer input signals than system inputs, the remaining signals are set to zero:

Out[1]=1

A multi-input system:

When a scalar input signal is given, it is applied to each input in turn:

Out[2]=2

If the time interval is specified, the result is computed numerically:

Out[1]=1

The symbolic result:

Out[2]=2

The results are equivalent:

Out[3]=3

The response of a generic continuous-time system:

Out[1]=1

The response to a sine wave:

Out[1]=1

Step response of a time-delay transfer-function model:

Out[1]=1

Step response of a time-delay state-space model:

Out[1]=1

A StateSpaceModel with a singular descriptor matrix:

Out[1]=1

Plot the response:

Out[2]=2

The output response of an AffineStateSpaceModel to a UnitStep input:

Out[1]=1

Plot the response:

Out[2]=2

The response from nonzero initial conditions:

Out[3]=3

The output response of a NonlinearStateSpaceModel to a UnitStep input:

Out[1]=1

Plot the response:

Out[2]=2

Discrete-Time Systems  (9)

The output response of a single-input system to a sampled sinusoid:

Out[1]=1

Plot of the sampled output with a zero-order hold:

Out[2]=2

The response for a generic discrete-time system:

Out[1]=1

The response to a unit step sequence:

Out[1]=1

The response for a symbolic descriptor system:

Out[1]=1

The response of a two-input system:

Out[1]=1
Out[2]=2

The response of a first-order discrete-time system:

Out[1]=1

The response to a unit step sequence:

Out[1]=1

The output response of a discrete-time system to a time-dependent input:

Out[1]=1

The response for τ=0.1:

Out[2]=2

Ramp response of a time-delay system:

Out[1]=1

Generalizations & Extensions  (3)Generalized and extended use cases

If the initial time is not specified, it is assumed to be zero:

Out[2]=2

When a system has state delays, the initial states can include history:

Out[2]=2

For discrete-time systems with delays, the initial states can be given as a sequence:

Out[1]=1
Out[2]=2

Applications  (3)Sample problems that can be solved with this function

Determine the steady-state output value of a stable first-order system in response to a unit step input:

Out[1]=1

The time constant:

Out[2]=2

Visualize it:

Out[3]=3

Visualize the response of an unstable system and its response after feedback stabilization:

Out[2]=2

A compensator for the antenna:

The closed-loop system:

Out[4]=4

Plot the response:

Out[5]=5

The zero-input response of a system:

Out[1]=1

Properties & Relations  (5)Properties of the function, and connections to other functions

The natural response is determined by the poles of the system:

Out[1]=1

The poles:

Out[2]=2

The results of StateResponse and OutputResponse match for state output:

Out[1]=1

A discrete-time system responding to a continuous-time input:

Out[1]=1

For a smaller sampling period, more sample points are needed:

Out[2]=2

The impulse response of a system:

Out[1]=1

OutputResponse assumes that the input is zero for :

Out[2]=2

Thus the solution obtained using InverseLaplaceTransform is different for :

Out[3]=3
Out[4]=4

The initial states for a descriptor systems are chosen to be consistent for the inputs:

Out[2]=2

The second output equals the derivative of the input:

Out[3]=3

When inconsistent conditions are given, they are replaced:

Out[4]=4
Out[5]=5

Consistent initial states depend on the slow subsystem from KroneckerModelDecomposition:

Out[6]=6

For continuous-time systems, the initial conditions are given by :

Out[7]=7

Possible Issues  (4)Common pitfalls and unexpected behavior

A continuous-time system cannot be simulated with sampled inputs:

Out[1]=1

Discretize the system:

Out[2]=2

Computations with machine numbers can be unstable:

Out[1]=1

Rationalize the system:

Out[2]=2
Out[3]=3

Or compute the numeric response:

Out[4]=4
Out[5]=5

Symbolic output responses do not support time delays:

Out[1]=1

Try a numeric simulation:

Out[2]=2

For descriptor systems, solutions only exist when Det[λ e - a]0 for some λ:

Out[1]=1
Wolfram Research (2010), OutputResponse, Wolfram Language function, https://reference.wolfram.com/language/ref/OutputResponse.html (updated 2014).
Wolfram Research (2010), OutputResponse, Wolfram Language function, https://reference.wolfram.com/language/ref/OutputResponse.html (updated 2014).

Text

Wolfram Research (2010), OutputResponse, Wolfram Language function, https://reference.wolfram.com/language/ref/OutputResponse.html (updated 2014).

Wolfram Research (2010), OutputResponse, Wolfram Language function, https://reference.wolfram.com/language/ref/OutputResponse.html (updated 2014).

CMS

Wolfram Language. 2010. "OutputResponse." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/OutputResponse.html.

Wolfram Language. 2010. "OutputResponse." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/OutputResponse.html.

APA

Wolfram Language. (2010). OutputResponse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OutputResponse.html

Wolfram Language. (2010). OutputResponse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OutputResponse.html

BibTeX

@misc{reference.wolfram_2025_outputresponse, author="Wolfram Research", title="{OutputResponse}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/OutputResponse.html}", note=[Accessed: 25-July-2025 ]}

@misc{reference.wolfram_2025_outputresponse, author="Wolfram Research", title="{OutputResponse}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/OutputResponse.html}", note=[Accessed: 25-July-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_outputresponse, organization={Wolfram Research}, title={OutputResponse}, year={2014}, url={https://reference.wolfram.com/language/ref/OutputResponse.html}, note=[Accessed: 25-July-2025 ]}

@online{reference.wolfram_2025_outputresponse, organization={Wolfram Research}, title={OutputResponse}, year={2014}, url={https://reference.wolfram.com/language/ref/OutputResponse.html}, note=[Accessed: 25-July-2025 ]}