System Variation Of Constants Formula: Solve Forced Linear Systems

By Vegard Gjerde Based on Masterful Learning 12 min read Published
system-variation-of-constants-formula differential-equations math learning-strategies

System Variation Of Constants Formula writes a forced first-order linear system as x(t)=Φ(t)(c+Φ(τ)1f(τ)dτ)\mathbf{x}(t)=\Phi(t)\left(\mathbf{c}+\int \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right), where Φ\Phi is an invertible fundamental matrix for the homogeneous system. It applies when x=Ax+f\mathbf{x}^{\prime}=A\mathbf{x}+\mathbf{f}, Φ=AΦ\Phi^{\prime}=A\Phi, and Φ\Phi is invertible. Use it after the homogeneous flow is known; the forcing is first pulled back by Φ1\Phi^{-1}, then pushed forward by Φ\Phi.

Unisium hero titled System Variation Of Constants Formula, subtitled Solve Forced Linear Systems, with the solution equation and three applicability conditions.
The system variation-of-constants formula uses a fundamental matrix Φ\Phi to convert forcing into the solution coordinates of the homogeneous system.

On this page: The Principle | Conditions | Misconceptions | EE Questions | Retrieval Practice | Worked Example | Solve a Problem | Related Principles | FAQ


The Principle

Statement

For a nonhomogeneous first-order linear system,

x=A(t)x+f(t),\mathbf{x}^{\prime}=A(t)\mathbf{x}+\mathbf{f}(t),

a fundamental matrix Φ(t)\Phi(t) for the associated homogeneous system x=A(t)x\mathbf{x}^{\prime}=A(t)\mathbf{x} lets you express the forced solution as

x(t)=Φ(t)(c+Φ(τ)1f(τ)dτ).\mathbf{x}(t)=\Phi(t)\left(\mathbf{c}+\int \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right).

The homogeneous flow Φ(t)c\Phi(t)\mathbf{c} carries the adjustable constants. The integral adds the forcing response in coordinates where the homogeneous motion has been factored out. In initial-value problems, the same idea is often written with limits from t0t_0 to tt so the initial vector can determine c\mathbf{c} cleanly.

Mathematical Form

x(t)=Φ(t)(c+Φ(τ)1f(τ)dτ)\mathbf{x}(t)=\Phi(t)\left(\mathbf{c}+\int \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right)

Where:

  • x(t)\mathbf{x}(t) = vector-valued solution of the nonhomogeneous system
  • A(t)A(t) = coefficient matrix in the linear system
  • f(t)\mathbf{f}(t) = forcing vector
  • Φ(t)\Phi(t) = invertible fundamental matrix for the associated homogeneous system
  • c\mathbf{c} = arbitrary constant vector; initial conditions determine it once an antiderivative or base point is fixed

Initial-value form

For x(t0)=x0\mathbf{x}(t_0)=\mathbf{x}_0, the definite-integral form is

x(t)=Φ(t)(Φ(t0)1x0+t0tΦ(τ)1f(τ)dτ).\mathbf{x}(t)=\Phi(t)\left(\Phi(t_0)^{-1}\mathbf{x}_0+\int_{t_0}^{t}\Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right).

When Φ(t0)=I\Phi(t_0)=I, this simplifies to

x(t)=Φ(t)(x0+t0tΦ(τ)1f(τ)dτ).\mathbf{x}(t)=\Phi(t)\left(\mathbf{x}_0+\int_{t_0}^{t}\Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right).

Why the inverse appears

Variation of constants starts from the homogeneous form x(t)=Φ(t)u(t)\mathbf{x}(t)=\Phi(t)\mathbf{u}(t) and lets the constant vector become a changing vector u(t)\mathbf{u}(t). Differentiating gives

x=Φu+Φu.\mathbf{x}^{\prime}=\Phi^{\prime}\mathbf{u}+\Phi\mathbf{u}^{\prime}.

Because Φ=AΦ\Phi^{\prime}=A\Phi, the homogeneous part matches AxA\mathbf{x} and the remaining term must supply the forcing:

Φ(t)u(t)=f(t).\Phi(t)\mathbf{u}^{\prime}(t)=\mathbf{f}(t).

Multiplying by Φ(t)1\Phi(t)^{-1} gives u(t)=Φ(t)1f(t)\mathbf{u}^{\prime}(t)=\Phi(t)^{-1}\mathbf{f}(t). Integrating this equation for u\mathbf{u} is what produces the integral inside the formula. This is the system-level analogue of variation of parameters, but the fundamental matrix handles all components at once.


Conditions of Applicability

Condition: x=Ax+f\mathbf{x}^{\prime}=A\mathbf{x}+\mathbf{f}; Φ=AΦ\Phi^{\prime}=A\Phi; Φinvertible\Phi invertible

Practical modeling notes

  • The formula assumes you already have an invertible fundamental matrix for the associated homogeneous system.
  • For a constant matrix AA, Φ(t)=eAt\Phi(t)=e^{At} is one common choice, but the formula itself is not limited to constant matrices.
  • If a fundamental matrix is not available explicitly, the formula remains valid structurally, but it does not remove the need to solve or approximate the homogeneous system first.
  • If using a definite integral from t0t_0 to tt, keep the same base point when interpreting c\mathbf{c} and the initial condition.
  • The forcing vector must be in the same system coordinates as x=Ax+f\mathbf{x}^{\prime}=A\mathbf{x}+\mathbf{f}.

When It Doesn’t Apply

This formula is not a closed solution formula for every system:

  • Nonlinear dependence on x\mathbf{x}: the displayed explicit formula assumes the forcing is f(t)\mathbf{f}(t), independent of the unknown solution. For x=A(t)x+g(t,x)\mathbf{x}^{\prime}=A(t)\mathbf{x}+\mathbf{g}(t,\mathbf{x}), the same substitution produces an implicit integral equation rather than this closed solution formula.
  • Noninvertible matrix candidate: a matrix of solution columns is not usable here unless it is invertible on the working interval.
  • Mismatched homogeneous system: Φ\Phi must solve the homogeneous system with the same coefficient matrix AA as the forced system.

Want the complete framework behind this guide? Read Masterful Learning.


Common Misconceptions

Misconception 1: “The integrand is just the forcing vector”

The truth: the integrand is Φ(τ)1f(τ)\Phi(\tau)^{-1}\mathbf{f}(\tau), not only f(τ)\mathbf{f}(\tau).

Why this matters: the inverse fundamental matrix rewrites the forcing in coordinates aligned with the homogeneous flow.

Misconception 2: “Any matrix of convenient functions can be Phi”

The truth: Φ\Phi must satisfy Φ=AΦ\Phi^{\prime}=A\Phi and be invertible.

Why this matters: if either check fails, the cancellation that leads to u=Φ1f\mathbf{u}^{\prime}=\Phi^{-1}\mathbf{f} fails.

Misconception 3: “Variation of constants replaces the homogeneous solution”

The truth: the formula uses the homogeneous solution matrix as its starting point.

Why this matters: the forced solution is built by combining homogeneous flow with accumulated forcing, not by ignoring the homogeneous system.


Elaborative Encoding

Use these questions to build deep understanding. (See Elaborative Encoding for the full method.)

Within the Principle

  • In x(t)=Φ(t)(c+Φ(τ)1f(τ)dτ)\mathbf{x}(t)=\Phi(t)\left(\mathbf{c}+\int \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right), which part stores initial data, and which part stores accumulated forcing?
  • Why does the formula need Φ1\Phi^{-1} before integrating the forcing?

For the Principle

  • Before using the formula, what two checks must you make about Φ\Phi?
  • How does choosing a lower integration limit change the way you interpret c\mathbf{c}?

Between Principles

Generate an Example

  • Describe a two-variable forced linear system where a diagonal fundamental matrix would make Φ1f\Phi^{-1}\mathbf{f} easy to compute.

Retrieval Practice

Answer from memory, then click to reveal and check. (See Retrieval Practice for the full method.)

State the principle in words: _____A fundamental matrix converts a nonhomogeneous first-order linear system into an explicit variation-of-constants solution form.
Write the canonical equation: _____x(t)=Φ(t)(c+Φ(τ)1f(τ)dτ)\mathbf{x}(t)=\Phi(t)\left(\mathbf{c}+\int \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right)
State the canonical condition: _____x=Ax+f;Φ=AΦ;Φinvertible\mathbf{x}^{\prime}=A\mathbf{x}+\mathbf{f}; \Phi^{\prime}=A\Phi; \Phi invertible

Worked Example

Use this worked example to practice Self-Explanation.

Problem

For the forced system

x=[1002]x+[ete2t],\mathbf{x}^{\prime}=\begin{bmatrix}1&0\\ 0&2\end{bmatrix}\mathbf{x}+\begin{bmatrix}e^t\\ e^{2t}\end{bmatrix},

use the fundamental matrix

Φ(t)=[et00e2t]\Phi(t)=\begin{bmatrix}e^t&0\\ 0&e^{2t}\end{bmatrix}

and the initial condition x(0)=[21]\mathbf{x}(0)=\begin{bmatrix}2\\ -1\end{bmatrix} to write x(t)\mathbf{x}(t).

Step 1: Verbal Decoding

Target: x(t)\mathbf{x}(t)
Given: AA, f(t)\mathbf{f}(t), Φ(t)\Phi(t), x(0)\mathbf{x}(0)
Constraints: first-order nonhomogeneous linear system; the supplied matrix is an invertible fundamental matrix for the matching homogeneous system; initial data are specified at time zero

Step 2: Visual Decoding

Draw two component lanes. Label the first lane with homogeneous factor ete^t and forcing ete^t, and the second lane with homogeneous factor e2te^{2t} and forcing e2te^{2t}. Mark t=0t=0 as the base point where the initial vector enters. (Each forcing component becomes simple after multiplication by Φ1\Phi^{-1}.)

Step 3: Mathematical Modeling

  1. Φ(t)=[et00e2t],x0=[21]\Phi(t)=\begin{bmatrix}e^t&0\\ 0&e^{2t}\end{bmatrix},\qquad \mathbf{x}_0=\begin{bmatrix}2\\ -1\end{bmatrix}
  2. f(τ)=[eτe2τ]\mathbf{f}(\tau)=\begin{bmatrix}e^\tau\\ e^{2\tau}\end{bmatrix}
  3. x(t)=Φ(t)(x0+0tΦ(τ)1f(τ)dτ)\mathbf{x}(t)=\Phi(t)\left(\mathbf{x}_0+\int_0^t\Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right)

Step 4: Mathematical Procedures

  1. Φ(τ)1=[eτ00e2τ]\Phi(\tau)^{-1}=\begin{bmatrix}e^{-\tau}&0\\ 0&e^{-2\tau}\end{bmatrix}
  2. Φ(τ)1f(τ)=[11]\Phi(\tau)^{-1}\mathbf{f}(\tau)=\begin{bmatrix}1\\ 1\end{bmatrix}
  3. 0tΦ(τ)1f(τ)dτ=[tt]\int_0^t \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau=\begin{bmatrix}t\\ t\end{bmatrix}
  4. x(t)=[et00e2t]([21]+[tt])\mathbf{x}(t)=\begin{bmatrix}e^t&0\\ 0&e^{2t}\end{bmatrix}\left(\begin{bmatrix}2\\ -1\end{bmatrix}+\begin{bmatrix}t\\ t\end{bmatrix}\right)
  5. x1(t)=et(t+2)\underline{x_1(t)=e^t(t+2)}
  6. x2(t)=e2t(t1)\underline{x_2(t)=e^{2t}(t-1)}

Step 5: Reflection

  • Verification: differentiating gives x=[et(t+3)e2t(2t1)]\mathbf{x}^{\prime}=\begin{bmatrix}e^t(t+3)\\ e^{2t}(2t-1)\end{bmatrix}, which equals Ax+f(t)A\mathbf{x}+\mathbf{f}(t).
  • Initial-value check: substituting t=0t=0 gives x(0)=[21]\mathbf{x}(0)=\begin{bmatrix}2\\ -1\end{bmatrix}.
  • Connection to concept: multiplying by Φ1\Phi^{-1} removes the homogeneous growth before the forcing is accumulated.

Before moving on: self-explain the model

Try explaining Step 3 out loud or in writing: why Φ(0)=I\Phi(0)=I makes Φ(0)1x(0)=x(0)\Phi(0)^{-1}\mathbf{x}(0)=\mathbf{x}(0), why the forcing is multiplied by Φ1\Phi^{-1}, and why Φ(t)\Phi(t) returns the accumulated result to the original coordinates.

Mathematical model with explanation

Principle: System Variation Of Constants Formula - x(t)=Φ(t)(c+Φ(τ)1f(τ)dτ)\mathbf{x}(t)=\Phi(t)\left(\mathbf{c}+\int \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right).

Conditions: the system is first-order linear and nonhomogeneous, the given Φ\Phi satisfies Φ=AΦ\Phi^{\prime}=A\Phi, and Φ\Phi is invertible.

Relevance: the problem supplies the fundamental matrix, so the useful move is to use it to integrate the forcing rather than solve the coupled system from scratch.

Description: The inverse fundamental matrix changes the forcing into homogeneous-flow coordinates. The integral accumulates that changed forcing from the base point to tt.

Goal: compute the pulled-back forcing integral and multiply by Φ(t)\Phi(t) to obtain the initial-value solution.


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem

For the forced upper-triangular system

x=[1101]x+[et(1+2t)2et],\mathbf{x}^{\prime}=\begin{bmatrix}1&1\\ 0&1\end{bmatrix}\mathbf{x}+\begin{bmatrix}e^t(1+2t)\\ 2e^t\end{bmatrix},

use

Φ(t)=[ettet0et]\Phi(t)=\begin{bmatrix}e^t&te^t\\ 0&e^t\end{bmatrix}

and x(0)=[10]\mathbf{x}(0)=\begin{bmatrix}1\\ 0\end{bmatrix} to write x(t)\mathbf{x}(t).

Hint (if needed): compute Φ(τ)1f(τ)\Phi(\tau)^{-1}\mathbf{f}(\tau) before integrating.

Show Solution

Step 1: Verbal Decoding

Target: x(t)\mathbf{x}(t)
Given: AA, f(t)\mathbf{f}(t), Φ(t)\Phi(t), x(0)\mathbf{x}(0)
Constraints: first-order nonhomogeneous linear system; the supplied matrix is an invertible fundamental matrix for the matching homogeneous system; initial data are specified at time zero

Step 2: Visual Decoding

Draw a two-component vector lane where the second component feeds the first through the upper-right entry of the fundamental matrix. Mark the initial vector at t=0t=0 and reserve one integral slot for each component. (The inverse fundamental matrix removes the coupled homogeneous flow before integrating.)

Step 3: Mathematical Modeling

  1. Φ(t)=[ettet0et],x0=[10]\Phi(t)=\begin{bmatrix}e^t&te^t\\ 0&e^t\end{bmatrix},\qquad \mathbf{x}_0=\begin{bmatrix}1\\ 0\end{bmatrix}
  2. f(τ)=[eτ(1+2τ)2eτ]\mathbf{f}(\tau)=\begin{bmatrix}e^\tau(1+2\tau)\\ 2e^\tau\end{bmatrix}
  3. x(t)=Φ(t)(x0+0tΦ(τ)1f(τ)dτ)\mathbf{x}(t)=\Phi(t)\left(\mathbf{x}_0+\int_0^t\Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right)

Step 4: Mathematical Procedures

  1. Φ(τ)1=[eττeτ0eτ]\Phi(\tau)^{-1}=\begin{bmatrix}e^{-\tau}&-\tau e^{-\tau}\\ 0&e^{-\tau}\end{bmatrix}
  2. Φ(τ)1f(τ)=[12]\Phi(\tau)^{-1}\mathbf{f}(\tau)=\begin{bmatrix}1\\ 2\end{bmatrix}
  3. 0tΦ(τ)1f(τ)dτ=[t2t]\int_0^t \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau=\begin{bmatrix}t\\ 2t\end{bmatrix}
  4. x(t)=[ettet0et][1+t2t]\mathbf{x}(t)=\begin{bmatrix}e^t&te^t\\ 0&e^t\end{bmatrix}\begin{bmatrix}1+t\\ 2t\end{bmatrix}
  5. x1(t)=et(1+t+2t2)\underline{x_1(t)=e^t(1+t+2t^2)}
  6. x2(t)=2tet\underline{x_2(t)=2te^t}

Step 5: Reflection

  • Verification: differentiating gives x=[et(2+5t+2t2)2et(1+t)]\mathbf{x}^{\prime}=\begin{bmatrix}e^t(2+5t+2t^2)\\ 2e^t(1+t)\end{bmatrix}, which equals Ax+f(t)A\mathbf{x}+\mathbf{f}(t).
  • Initial-value check: at t=0t=0, the solution becomes [10]\begin{bmatrix}1\\ 0\end{bmatrix}.
  • Connection to concept: the upper-right entry in Φ\Phi shows why the forcing must be transformed before it is integrated.

PrincipleRelationship to System Variation Of Constants Formula
First-Order Linear System FormIdentifies the matrix-plus-forcing system that this formula solves after a fundamental matrix is known.
Matrix Exponential Solution FormSupplies Φ(t)=eAt\Phi(t)=e^{At} in constant homogeneous systems.
Nonhomogeneous Linear System Solution StructureExplains how the forced solution combines a homogeneous family with one particular response.

See Differential Equations Subdomain for the full systems lane, and Principle Structures for organizing formulas, conditions, and neighboring principles.


FAQ

What is the system variation-of-constants formula?

The system variation-of-constants formula is the solution form x(t)=Φ(t)(c+Φ(τ)1f(τ)dτ)\mathbf{x}(t)=\Phi(t)\left(\mathbf{c}+\int \Phi(\tau)^{-1}\mathbf{f}(\tau)\,d\tau\right) for a nonhomogeneous first-order linear system. It uses an invertible fundamental matrix from the associated homogeneous system.

When does the system variation-of-constants formula apply?

It applies when the system has the form x=Ax+f\mathbf{x}^{\prime}=A\mathbf{x}+\mathbf{f}, the matrix Φ\Phi satisfies Φ=AΦ\Phi^{\prime}=A\Phi, and Φ\Phi is invertible on the working interval. The forcing must be the same forcing vector from the target system.

Why is Phi inverse in the formula?

Φ1\Phi^{-1} converts the forcing vector into coordinates that remove the homogeneous flow. After that forcing is integrated, multiplying by Φ(t)\Phi(t) returns the result to the original solution coordinates.

Is this the same as matrix exponential solution form?

No. Matrix Exponential Solution Form handles constant homogeneous systems with x(t)=eAtc\mathbf{x}(t)=e^{At}\mathbf{c}. System variation of constants adds the forcing integral needed for nonhomogeneous systems.

Do I need a constant matrix A?

No. Constant matrices make one common case because Φ(t)=eAt\Phi(t)=e^{At} is available. The formula itself uses any invertible fundamental matrix that satisfies Φ=AΦ\Phi^{\prime}=A\Phi.



How This Fits in Unisium

Within the differential equations subdomain, Unisium treats System Variation Of Constants Formula as the bridge from homogeneous system flow to forced system response. The Unisium Study System pairs this guide with elaborative encoding, retrieval practice, and structured problem solving so you learn the stable sequence: verify Φ\Phi, pull back the forcing, integrate, and push forward.

Ready to practice differential equations with structure? Check access and join the Unisium waitlist or explore the full framework in Masterful Learning.

Masterful Learning book cover

Masterful Learning

The book behind these guides: a study system for physics, math, & programming built on retrieval, connection, explanation, and problem solving.

Ready to apply this strategy?

Unisium turns these evidence-based techniques into guided study sessions for math and physics. Unisium is currently in early access. See pricing, availability, and join the waitlist.

Check Unisium Access and Pricing Read More Guides

Already have access? Sign in