Integrating factors and nonhomogeneous differential equations
Introduced| English | Meaning |
|---|---|
| particular solution/pəˈtɪkjʊlə səˈluːʃn/ | One function that satisfies the given differential equation, with no arbitrary constants left to choose. |
| integrating factor/ˈɪntɪɡreɪtɪŋ ˈfæktə/ | A factor used to multiply a differential equation so that an expression becomes a complete derivative and can be integrated. |
| resonance/ˈrezənəns/ | In the trial method, overlap with the complementary function requires extra factors of x. An undamped system forced at its natural frequency can have a growing response. |
A steady input changes the response
- A heated object responds both to its initial temperature and to a continuing heat input. Linear equations separate the response to initial conditions from a particular solution 特解 that supplies the forcing under the differential operator.
- For $y''-3y'+2y=4$, the homogeneous terms give zero on the left; they cannot supply the forcing 4. We will use integrating factors 积分因子, complete trial forms and the resonance 共振 correction to find the missing part.
Put a first-order equation in standard form
- Start with $a(x)y'+b(x)y=f(x)$. On an interval where $a(x)\ne0$, divide every term by $a(x)$ to obtain $y'+p(x)y=q(x)$. The coefficient of $y'$ must be 1 before reading off $p$.
- Assume $p,q$ are continuous on that interval. An initial value at an interior point gives one solution throughout the interval. Zeros of the leading coefficient or singularities in $p,q$ need separate analysis; do not divide across them.
For $2y^{\prime}+4xy=2x$, what is $p(x)$ in the normalized form $y^{\prime}+p(x)y=q(x)$?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Divide every term by 2: y′+2xy=x. The coefficient p is 2x.
Make the left side a product derivative
- Choose a nonzero function $\mu$ satisfying $\mu'=p\mu$. Then $(\mu y)'=\mu y'+\mu' y=\mu(y'+py)$. Multiplying the equation by $\mu$ turns it into $(\mu y)'=\mu q$.
- One choice is $\mu=e^{\int p(x)\,dx}$, positive on the interval. Any nonzero constant multiple also works, including a negative multiple. The useful property is $\mu'/\mu=p$, not one unique formula for $\mu$.
If $e^{x^2}$ is an integrating factor for $y^{\prime}+2xy=x$, then $-3e^{x^2}$ is also an integrating factor.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
A nonzero constant multiple has the same logarithmic derivative μ′/μ=2x and produces the same product identity.
Integrate and keep the initial value
- Integrating once gives $\mu(x)y(x)=\int\mu(x)q(x)\,dx+C$. Divide by the nonzero integrating factor only after integrating. One arbitrary constant is enough for a first-order equation.
- To build in $y(x_0)=y_0$, choose $\mu(x)=\exp\!\left(\int_{x_0}^x p(t)\,dt\right)$, so $\mu(x_0)=1$. Then $y(x)=\dfrac{y_0+\int_{x_0}^x\mu(t)q(t)\,dt}{\mu(x)}$. Differentiate the product identity to verify the equation.
Work the original variable-coefficient example
- For $y'+2xy=x$, choose $\mu=e^{x^2}$. Thus $(e^{x^2}y)'=xe^{x^2}$, whose integral is $e^{x^2}/2+C$. Thus $y=1/2+Ce^{-x^2}$.
- With $y(0)=1$, $C=1/2$. The derivative is $y'=-xe^{-x^2}$, so $y'+2xy=x$ exactly. The constant $1/2$ is one particular solution; the remaining term solves the homogeneous equation.
Keep the solution interval
- For $y'+(2/x)y=x$, use either $x>0$ or $x<0$. Since $\int 2/x\,dx=2\ln|x|$, an integrating factor is $x^2$ on either interval. Then $(x^2y)'=x^3$. Integrating gives $y=x^2/4+C/x^2$.
- The equation is undefined at zero. Even when $C=0$ gives a formula with a finite limit there, it is not a solution of this equation on an interval containing zero. Constants on the two disconnected intervals need not agree.
An integrating factor for $y' + \frac{2}{x}y = x$ on $x > 0$ is
Difficulty 1/5 · 100 coins + a small bonus on first completion today
On x>0, an antiderivative of 2/x is 2 ln x, so choose μ=x². Then (x²y)′=x³. Nonzero constant multiples of x² also work on this interval.
The formula $y=x^2/4$ solves $y^{\prime}+(2/x)y=x$ on the whole real line because it has a value at zero.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
The equation itself is undefined at zero. The formula solves it on either side, not on an interval containing zero.
Check an initial-value answer twice
- For $y'+y=1$, $\mu=e^x$ gives $y=1+Ce^{-x}$. The original condition $y(0)=3$ sets $C=2$, and $y(\ln2)=2$. Check both the differential equation and the initial value.
- A proposed answer can pass one check and fail the other. For example, $y=1$ solves the equation but has the wrong initial value. The constant function $y=3$ has the correct initial value but gives $y'+y=3$, not 1.
$y' + y = 1$, $y(0) = 3$. Find $y(\ln 2)$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$y = 1 + 2e^{-x}$; at $\ln 2$ this is $1 + 1$.
Solve $y^{\prime}+(2/x)y=x$ with $y(1)=2$ on its maximal interval containing 1. Verify the equation and initial value.
Compare the interval, complete trial, initial conditions and substitution checks with the model.
Why homogeneous plus particular works
- For real constants $a,b,c$ with $a\ne0$, write $L[y]=ay''+by'+cy$. If $L[y_h]=0$ and $L[y_p]=r$, linearity gives $L[y_h+y_p]=r$. Conversely, subtracting $y_p$ from any solution leaves a homogeneous solution.
- Thus the general solution is $y_h+y_p$. A particular solution need not be unique: adding any homogeneous solution gives another particular solution. It changes the split, not the full two-constant family.
Read the homogeneous roots correctly
- The characteristic polynomial is $P(m)=am^2+bm+c$. Distinct real roots $m_1,m_2$ give $y_h=C_1e^{m_1x}+C_2e^{m_2x}$. A repeated real root $m$ gives $y_h=(C_1+C_2x)e^{mx}$.
- For conjugate roots $\alpha\pm i\beta$, with $\beta>0$, a real basis is $e^{\alpha x}\cos\beta x$ and $e^{\alpha x}\sin\beta x$. There are two independent homogeneous terms in each case; repeating the same exponential twice does not give two free directions.
Match constant forcing
- In $y''-3y'+2y=4$, the roots are 1 and 2. Try $y_p=A$: the left side is $2A$, so $y_p=2$. The general solution is $C_1e^x+C_2e^{2x}+2$.
- In the original exercise $y''+y'-6y=12$, the same constant trial gives $-6A=12$, hence $y_p=-2$. A constant forcing does not mean the particular solution equals that forcing; substitute the trial into the operator.
$y'' + y' - 6y = 12$ has a constant particular solution $y_p$. Find it.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
Try y_p = A: then y_p′ = y_p″ = 0, so −6A = 12 and A = −2.
Use a complete trial family
- For constant-coefficient equations, undetermined coefficients works for finite sums of polynomials times exponentials, sines and cosines. A polynomial forcing of degree $n$ starts with a full polynomial trial of degree $n$, including missing lower powers, before any resonance correction.
- For the operator $L[y]=y''-3y'+2y$, forcing $x$ uses $Ax+B$. Substitution gives $2Ax+2B-3A=x$, so $A=1/2$, $B=3/4$. The trial $Ax$ alone would leave an unwanted constant term.
For $y^{\prime\prime}-3y^{\prime}+2y=x$, let $y_p=x/2+B$. Find $B$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
The constant term on the left is 2B-3/2. Set it to zero, giving B=3/4.
A sine forcing needs both sine and cosine
- For $y''-3y'+2y=\sin x$, try $y_p=A\sin x+B\cos x$. Differentiation mixes the sine and cosine terms, even though the forcing has only sine.
- Matching coefficients gives $A+3B=1$ and $B-3A=0$, so $y_p=(\sin x+3\cos x)/10$. For a general forcing outside these finite trial families, such as $\tan x$, use another method, for example variation of parameters on an interval where the forcing is continuous.
Combine exponential and polynomial trials
- For $e^{kx}$ times a degree-$n$ polynomial, start with $e^{kx}Q_n(x)$, where $Q_n$ includes every power through $n$. If $k$ is a characteristic root of multiplicity $s$, multiply the whole trial by $x^s$; take $s=0$ when it is not a root.
- The identity $L[e^{kx}v]=e^{kx}P(D+k)v$, with $D$ meaning differentiation, explains the rule. Root multiplicity removes the lowest derivative terms. Compare the exponential rate with the characteristic roots, not whether the entire forcing function itself is a homogeneous solution.
Simple-root resonance
- For $y''-3y'+2y=e^x$, the root 1 is simple. The trial $Ae^x$ gives zero; use $Axe^x$. Differentiating gives $L[Axe^x]=-Ae^x$, so $y_p=-xe^x$.
- Here resonance means overlap with a homogeneous mode and the resulting $x$ correction. It does not by itself mean bounded oscillations or physical resonance: the homogeneous modes $e^x,e^{2x}$ already grow. The original figure shows this trial alongside the earlier first-order solution.
The correct trial for $y'' - y = e^x$ is
Difficulty 1/5 · 100 coins + a small bonus on first completion today
The root 1 is simple, so multiply Ae^x by x. Substitution gives L[Axe^x]=2Ae^x and A=1/2. The trial is Axe^x; its fitted coefficient is 1/2.
Repeated roots need the full power
- For $y''-2y'+y=e^x$, the root 1 has multiplicity two. Both $Ae^x$ and $Axe^x$ solve the homogeneous equation and give zero on the left. Use $Ax^2e^x$ instead.
- Writing $y=e^xv$ reduces the left side to $e^xv''$. With $v=Ax^2$, the result is $2Ae^x$, so $y_p=x^2e^x/2$. Multiplying by $x$ just once is not enough in this case.
Trial correction for y″ − 3y′ + 2y
Use roots 1 and 2 to choose the multiplier for each forcing family.
Choose the trial for $y^{\prime\prime}-2y^{\prime}+y=e^x$ that includes the required resonance correction.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
The characteristic polynomial is (m-1)². Multiply the exponential trial by x², because both e^x and xe^x are homogeneous.
For $y^{\prime\prime}-3y^{\prime}+2y=xe^x$, the trial $e^x(Ax+B)$ needs no extra factor because $xe^x$ is not itself homogeneous.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
The exponential rate 1 is a simple characteristic root. Use x e^x(Ax+B); the test is overlap of the trial family with homogeneous modes, not whether the whole forcing is homogeneous.
Find one particular solution of $y^{\prime\prime}-3y^{\prime}+2y=xe^x$. Explain the trial and verify it.
Compare the interval, complete trial, initial conditions and substitution checks with the model.
Oscillatory resonance uses the same test
- For $y''+y=\sin x$, the roots are $\pm i$, so both $\sin x$ and $\cos x$ are homogeneous modes. Use $x(A\cos x+B\sin x)$ rather than an unmodified sine/cosine trial.
- Since $(x\cos x)''+x\cos x=-2\sin x$, one particular solution is $-x\cos x/2$. The factor $x$ makes the oscillation size grow without bound along suitable sequences; this is the undamped resonant case.
Solve $y^{\prime\prime}+y=\sin x$ with $y(0)=0$ and $y^{\prime}(0)=0$. Verify the resonance correction and both conditions.
Compare the interval, complete trial, initial conditions and substitution checks with the model.
Split a sum of forcing terms
- Linearity lets us add particular solutions for different forcing terms. For $y''-3y'+2y=4+e^x$, use $y_p=2-xe^x$: its operator output is $4+e^x$.
- Apply the trial and multiplicity test to each distinct forcing family. Do not add a new independent pair of homogeneous constants for every forcing term; the final second-order equation still has just two homogeneous constants.
Apply conditions to the whole solution
- Return to $y''-3y'+2y=4$ with $y(0)=0$ and $y'(0)=0$. From the full solution, $C_1+C_2+2=0$ and $C_1+2C_2=0$, so $C_1=-4$, $C_2=2$.
- Therefore $y=2-4e^x+2e^{2x}$. It satisfies both initial values and gives 4 under the operator. Fitting zero initial values to $y_h$ alone would set both constants to zero, leaving $y=2$ and the wrong value at zero.
Which check does y pass for y′ + y = 1, y(0) = 3?
Separate satisfying the equation from meeting its initial value.
The constants $C_1, C_2$ should be fitted to the initial conditions before adding $y_p$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
The initial values belong to y=y_h+y_p and its derivative. Include y_p and y_p′ in the equations for C₁,C₂; fitting y_h alone generally gives different initial values.
For $y^{\prime\prime}-3y^{\prime}+2y=4$, $y(0)=0$ and $y^{\prime}(0)=0$, write $y=C_1e^x+C_2e^{2x}+2$. Find $C_2$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
The two equations are C₁+C₂=-2 and C₁+2C₂=0. Subtract them to obtain C₂=2, then C₁=-4.
Solve $y^{\prime\prime}-2y^{\prime}+y=e^x$ with $y(0)=1$ and $y^{\prime}(0)=0$. Explain why one factor of x would not suffice.
Compare the interval, complete trial, initial conditions and substitution checks with the model.
Recap: form, interval, trial, check
- Normalize a first-order equation and keep its interval. For constant-coefficient second order, find the homogeneous basis, choose a complete trial, apply root multiplicity and then fit conditions to the full sum. Verify derivatives in the original equation.
- integrating factor: A nonzero multiplier that turns a differential equation into a product derivative.
- particular solution: One function that satisfies the given differential equation, with no arbitrary constants left to choose.
- resonance: Overlap between a forcing mode and a homogeneous mode, requiring an extra power of the independent variable in an undetermined-coefficient trial.