Learning center

Check a first-order model against its exact response

Use an analytic curve as a reference when studying a simple dynamic system.

The scientific question

How does a time constant affect the approach to a fixed final value?

An exact mathematical solution makes a useful starting point for understanding a model. Here, all curves share their initial condition and final value; only the time constant changes.

24-second educational animation with synthetic data. No audio; captions and transcript available. Download MP4Video and transcript

Mathematical example

τ dy/dt + y = 1; y(0) = 0; y(t) = 1 − exp(−t/τ)

Data and analysis settings

SettingDefinition
InputA unit step held at one for t ≥ 0.
Initial conditiony(0) = 0.
Time constantsτ = 0.5 s, 1 s, and 2 s.
Time grid0 to 5 s inclusive, at 0.01 s intervals.
ComputationDirect evaluation of the exact formula; no numerical ODE solver is used.
OutputNormalized response; final value one.

1. State the assumptions

This is a stable, linear, first-order system with a positive constant τ. The example does not include delays, saturation, disturbances, or multiple interacting states.

2. Evaluate the exact curves

For each τ, evaluate 1 − exp(−t/τ) at every time in the CSV. Plot all three responses against the same axes.

3. Check one time constant

Set t = τ. The exponent is −1, so all curves reach 1 − exp(−1), approximately 0.6321206, at their own time constant.

4. Compare a numerical calculation

If you evaluate the differential equation with a solver, compare its sampled output with the exact curve. Specify the solver, tolerances, step handling, and comparison metric.

Expected result

CheckExpected result
At t = 0All three responses equal zero.
At t = τResponse ≈ 0.6321206.
As t increasesThe response approaches one; smaller τ gives a faster approach.

Scope of this example

These are directly calculated analytic curves. They are not timing benchmarks, a demonstration of solver accuracy, or a model of a particular physical device.

Read the video transcript

0:00 Three analytic first-order step responses start at zero and approach one. The only parameter changed is the time constant: 0.5, 1, or 2 seconds.

0:08 A smaller time constant gives a faster response. All three curves use the formula y(t) = 1 − exp(−t/τ). The animation draws the analytic curves directly.

0:16 At t = τ, the response equals 1 − exp(−1), or about 63.2 percent of the final value. A numerical simulation can be compared with this exact mathematical reference.

Read and keep this CSV

This is a synthetic teaching dataset. The file contains 501 data rows plus one header row. Its first and last saved timestamps are 0.0 s and 5.0 s. Column order is shown below.

Exact CSV columnMeaning and units
time_sTime in seconds.
response_tau_0_5Normalized analytic response with time constant 0.5 s.
response_tau_1Normalized analytic response with time constant 1 s.
response_tau_2Normalized analytic response with time constant 2 s.
Show the CSV file identity

first-order-response.csv · 32415 bytes

SHA-256: 8fbc5ed91dcd3bbea7357388c05a336e9bede2dc052a7e5773afb53d2fd9ed7d

These identifiers describe the retained CSV bytes; they do not establish scientific validity or an application import contract.

Continue with a scoped workflow guide

Read the SBML timecourse guide

The SBML guide describes a separate numerical integration and export workflow. These analytic curves do not validate a solver or establish an app import contract.

Worked examples describe particular inputs, methods and recorded results. Check current availability and input requirements before planning an evaluation.

← Back to the learning center