Skip to lesson content

Lesson 5 of 6

Differential Equations · Lesson 5 of 6

Linear Equations and Integrating Factors

“Use the product rule to derive integrating factors and solve linear equations in either variable.”

Learning Objectives

• Recognise a first-order linear equation and put it into standard form. • Identify the coefficient and forcing function using the correct independent variable. • Derive the integrating factor from the product rule. • Solve general and particular linear equations with clear integration steps. • Treat x as a function of y when that makes the equation linear. • Check intervals, initial conditions, and the meaning of a stated slope.

A different route to integration

Separation works when variable-dependent factors can be separated completely. A linear equation has a different useful structure: the dependent variable and its first derivative occur to the first power, with coefficients depending only on the independent variable. Multiplying by a carefully chosen function turns its left-hand side into one derivative.

Definition
First-order linear equation

An equation is linear in if it can be written as , where and are functions of only, including constants.

Linear standard formLaTeX
is the dependent variable. is its coefficient after the coefficient of has been made one, and is the remaining function of the independent variable.

For , we have and . For , and . The equation is not linear in , and neither is : these involve nonlinear functions of the dependent variable.

You must first normalise the coefficient of the derivative. For , divide by on an interval where to get . Reading from the unnormalised equation would give the wrong integrating factor.

Why the integrating factor works

The product rule tells us how to combine a derivative and a multiple of the original function. We want to equal the derivative of . Choosing the multiplier to make this happen gives the method its explanation.

The product rule gives . Therefore we require . A nonzero solution satisfies . Integrating gives plus a constant; one convenient positive choice is .

Integrating factorLaTeX
The symbol denotes a multiplier depending only on . The arbitrary multiplicative constant can be omitted because any nonzero constant multiple works equally well.

Now multiply the entire standard-form equation by . The left side becomes , which is . Integrating both sides gives a direct expression for the product .

Integrated linear equationLaTeX
After evaluating the integral, divide by the nonzero integrating factor if an explicit expression for is wanted. Use an initial condition to determine afterward.

For a logarithmic integral, use absolute values as needed: . An integrating factor may be simplified on a fixed interval. For instance, , and a convenient multiplier for is on either interval or ; it differs from only by a constant sign there.

Example — A constant coefficient with a trigonometric term

Problem
Solve .

  1. 1.Here and , so choose .
  2. 2.Multiplication gives , or .
  3. 3.Thus , where . Integrating by parts gives .
  4. 4.Another integration by parts gives . Hence .
  5. 5.Therefore . Divide by to obtain .
  6. 6.The integrating factor simplified the differential equation; ordinary integration techniques are still needed for the right-hand side.
Example — Normalise before finding the multiplier

Problem
Solve , with .

  1. 1.Divide by : . Now , , and .
  2. 2.Multiply through: . The left side is .
  3. 3.Integrate: , giving .
  4. 4.The result applies separately on intervals that avoid zero. Substituting the derivative into cancels the constant terms and leaves .
Example — A logarithmic coefficient

Problem
Solve on an interval where and .

  1. 1.Divide by : .
  2. 2.The integral of is . A convenient integrating factor is , nonzero on the chosen interval.
  3. 3.Then . Integration by parts gives .
  4. 4.Thus . Division by gives an explicit solution if desired.

Linear in the other variable

Linearity depends on which variable is treated as dependent. A relation that is nonlinear as an equation for may be linear as an equation for . Solve for the derivative in both directions when the first form looks unhelpful.

Definition
Reverse linear form

An equation linear in has the form . Its coefficient functions depend only on .

Reverse-variable integrating factorLaTeX
The integration variable is throughout. The product to differentiate is .
Example — A relation linear in x

Problem
Solve .

  1. 1.For , divide by to get . It is linear in , with and .
  2. 2.Choose on a nonzero-y interval. Then .
  3. 3.Integrate: , giving .
  4. 4.Check directly: , so .
  5. 5.The derivation used . The curve also satisfies the original differential relation when read as a constant function of ; it is not represented by using as an independent coordinate.
Example — An inverse-tangent integrating factor

Problem
Solve .

  1. 1.Write . This is linear in .
  2. 2.Here , so .
  3. 3.The solution is .
  4. 4.Set , so . The integral becomes .
  5. 5.Divide by to obtain .

Use initial conditions after the integral

An initial condition determines the remaining constant. It also helps choose an interval on which the coefficients and integrating factor are defined. Keep the product form until the condition has been substituted if that reduces algebra.

Example — An integrating factor involving sine

Problem
Solve with .

  1. 1.On an interval avoiding the zeros of sine, . Choose .
  2. 2.Multiplication gives .
  3. 3.The right-hand side is the derivative of by the product rule. Thus .
  4. 4.At , , so . Therefore .
  5. 5.The natural coefficient interval containing the given point is . The original equation is undefined at the endpoints, so the solution is considered on that interval.
Example — Translate a tangent-slope description

Problem
A curve passes through . At its tangent slope equals x plus the product xy. Find the curve.

  1. 1.The statement means . Rearrange as , so and .
  2. 2.The integrating factor is . Therefore .
  3. 3.Use , so . The integral is .
  4. 4.Hence . The point gives , so .
  5. 5.The curve is . It is also separable as , illustrating that a valid equation may fit more than one method.
Example — A first-degree appearance is not enough

Problem
Is linear in y? Compare it with .

  1. 1.In the first equation, moving terms to the left leaves a term. It cannot be written with and depending only on , so it is not linear in .
  2. 2.The second equation already has standard form, with and .
  3. 3.Both equations contain the derivative only to power one. That makes them first degree as differential equations, but only the second is linear in the dependent variable.
Multiply every term

An integrating factor multiplies the derivative term, the dependent-variable term, and the right-hand side. Multiplying only the derivative term does not produce the product rule identity. After normalising, check if you are unsure about a sign.

A verbal condition can also be inconsistent. “The sum of the coordinates exceeds the magnitude of the tangent slope by five” means . At this would require , which is impossible. Dropping “magnitude” and using a signed derivative creates a different mathematical problem; it should not be done silently.

Check your understanding

Identify the dependent variable, normalise the derivative coefficient, and read the coefficient function before choosing an integrating factor. The questions also test the distinction between degree and linearity.

Quiz

Quick check

For , what is P after normalisation?

Quick check

For , which is a valid integrating factor?

Quick check

Which equation is linear in y?

Quick check

Which identity explains the integrating-factor method?

Quick check

For , which multiplier is convenient on a nonzero-y interval?

Quick check

If , which is a convenient integrating factor where sine is nonzero?

Quick check

Which equation can be solved by either separation or a linear integrating factor?

Quick check

After finding , which integrated relation is correct?

Practice Problems

Practice Problems
  1. Solve .
  2. Solve .
  3. Solve for .
  4. Solve on .
  5. Solve on .
  6. Solve for .
  7. Solve where sine is nonzero.
  8. Solve by treating x as a function of y.
  9. Solve for .
  10. Solve for .
  11. Solve with .
  12. Solve with .
  13. Find a curve through the origin with tangent slope equal to the sum of its coordinates.
  14. Explain why no curve through can satisfy .
  15. Find an integrating factor for on .
  16. Solve on an interval where .
  17. Solve with .
  18. Find an integrating factor and solve for .

. Use and integration by parts.

Key Takeaways

Key Takeaways

• Write a linear equation with derivative coefficient one before identifying its coefficient function. • The integrating factor is chosen so that the left side becomes the derivative of a product. • For , use and . • If the equation is linear in , integrate with respect to throughout. • Apply given conditions only on intervals where the original equation is defined, and check that verbal conditions are consistent.