Maths4UBETA

Linear first-order equations and models

Turn the left-hand side into one product derivative.

Try the quick check →
Lesson 1 of 5

Section 1 of 5 · Core · about 5 min

What makes an integrating factor work?

Write the equation with coefficient one on the first derivative. The integrating factor must have logarithmic derivative equal to the coefficient of y.

Worked example

Multiply by an exponential integrating factor

Solve 2y(x)+ddxy(x)=6x+52 y{\left(x \right)} + \frac{d}{d x} y{\left(x \right)}=6 x + 5 with y(0)=3y(0)=3. Give the exponent coefficient in the integrating factor ekx\mathrm e^{kx} and CC in y=Ce−2x+3x+1y=C e^{- 2 x} + 3 x + 1.

  1. The coefficient of y is constant. The integrating factor is e2xe^{2 x}.

  2. Multiplying makes the left side the derivative of e2xy\mathrm e^{2x}y. Integrate the right side and divide by the factor to obtain y=Ce−2x+3x+1y=C e^{- 2 x} + 3 x + 1.

  3. At zero CC makes up the difference between 33 and 11. Thus C=2C=2 and y=3x+1+2e−2xy=3 x + 1 + 2 e^{- 2 x}.

Your turn

Solve 3y(x)+ddxy(x)=12x+103 y{\left(x \right)} + \frac{d}{d x} y{\left(x \right)}=12 x + 10 with y(0)=5y(0)=5. Give the exponent coefficient in the integrating factor ekx\mathrm e^{kx} and CC in y=Ce−3x+4x+2y=C e^{- 3 x} + 4 x + 2.

Enter the value on its own or write k = … . Fractions and exact square roots are accepted.

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Section 2 of 5 · Core · about 5 min

When does the integrating factor become a power?

The integral of a simple reciprocal gives a logarithm, so exponentiation can convert it to a power.

Worked example

Use a power integrating factor on the stated interval

For x>−1x>-1, solve ddxy(x)+2y(x)x+1=3x+3\frac{d}{d x} y{\left(x \right)} + \frac{2 y{\left(x \right)}}{x + 1}=3 x + 3 with y(0)=114y(0)=\frac{11}{4}. Give the exponent in (x+1)k(x+1)^k used as integrating factor and the coefficient of 1(x+1)k\frac{1}{(x+1)^k} in the solution.

  1. Integrate the y coefficient to get 2ln⁡(x+1)2\ln(x+1). Exponentiating gives (x+1)2\left(x + 1\right)^{2}, positive in the domain.

  2. The new right side is 3(x+1)33 \left(x + 1\right)^{3}. Integrating and dividing by (x+1)2\left(x + 1\right)^{2} gives y=C(x+1)2+3(x+1)24y=\frac{C}{\left(x + 1\right)^{2}} + \frac{3 \left(x + 1\right)^{2}}{4}.

  3. Substituting zero produces C=2C=2. This solution stays on the original interval.

Your turn

For x>−1x>-1, solve ddxy(x)+3y(x)x+1=4x+4\frac{d}{d x} y{\left(x \right)} + \frac{3 y{\left(x \right)}}{x + 1}=4 x + 4 with y(0)=195y(0)=\frac{19}{5}. Give the exponent in (x+1)k(x+1)^k used as integrating factor and the coefficient of 1(x+1)k\frac{1}{(x+1)^k} in the solution.

Enter the value on its own or write k = … . Fractions and exact square roots are accepted.

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Section 3 of 5 · Core · about 7 min

Why should I divide before reading the coefficient?

In a linear equation the entire derivative term can carry a variable multiplier. Divide through only where that multiplier is non-zero.

Worked example

Divide by the derivative coefficient before finding a factor

For x>0x>0, (x+1)ddxy(x)+2y(x)=9x+7\left(x + 1\right) \frac{d}{d x} y{\left(x \right)} + 2 y{\left(x \right)}=9 x + 7. Its solution has the form y=C(x+1)2+3x+2y=\frac{C}{\left(x + 1\right)^{2}} + 3 x + 2. Give the exponent of x+1x + 1 in the integrating factor and the value of CC if y(1)=234y(1)=\frac{23}{4}.

  1. Divide the whole equation by x+1x + 1. Its new y coefficient is 2x+1\frac{2}{x + 1}.

  2. The integrating factor is (x+1)2\left(x + 1\right)^{2}. The corresponding product derivative can be integrated to obtain the stated form.

  3. At one the difference from the polynomial part is 34\frac{3}{4}. Multiply by the factor evaluated at one to get C=3C=3.

Your turn

For x>0x>0, (x+2)ddxy(x)+3y(x)=16x+17\left(x + 2\right) \frac{d}{d x} y{\left(x \right)} + 3 y{\left(x \right)}=16 x + 17. Its solution has the form y=C(x+2)3+4x+3y=\frac{C}{\left(x + 2\right)^{3}} + 4 x + 3. Give the exponent of x+2x + 2 in the integrating factor and the value of CC if y(1)=19327y(1)=\frac{193}{27}.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Worked example

Divide by the derivative coefficient before finding a factor

For x>0x>0, (x+3)ddxy(x)+4y(x)=25x+31\left(x + 3\right) \frac{d}{d x} y{\left(x \right)} + 4 y{\left(x \right)}=25 x + 31. Its solution has the form y=C(x+3)4+5x+4y=\frac{C}{\left(x + 3\right)^{4}} + 5 x + 4. Give the exponent of x+3x + 3 in the integrating factor and the value of CC if y(1)=2309256y(1)=\frac{2309}{256}.

Try it on paper first.

  1. Divide the whole equation by x+3x + 3. Its new y coefficient is 4x+3\frac{4}{x + 3}.

  2. The integrating factor is (x+3)4\left(x + 3\right)^{4}. The corresponding product derivative can be integrated to obtain the stated form.

  3. At one the difference from the polynomial part is 5256\frac{5}{256}. Multiply by the factor evaluated at one to get C=5C=5.

Your turn

For x>0x>0, (x+4)ddxy(x)+5y(x)=36x+49\left(x + 4\right) \frac{d}{d x} y{\left(x \right)} + 5 y{\left(x \right)}=36 x + 49. Its solution has the form y=C(x+4)5+6x+5y=\frac{C}{\left(x + 4\right)^{5}} + 6 x + 5. Give the exponent of x+4x + 4 in the integrating factor and the value of CC if y(1)=343813125y(1)=\frac{34381}{3125}.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Section 4 of 5 · Core · about 5 min

What if the coefficient is hyperbolic?

Look for a derivative of the form f prime over f. This can make the integrating factor a familiar hyperbolic function.

Worked example

Recognise a hyperbolic logarithmic derivative

Solve 2y(x)tanh⁡(x)+ddxy(x)=3cosh⁡2(x)2 y{\left(x \right)} \tanh{\left(x \right)} + \frac{d}{d x} y{\left(x \right)}=\frac{3}{\cosh^{2}{\left(x \right)}} subject to y(0)=2y(0)=2. Give the exponent in the factor (cosh⁡x)k(\cosh x)^k and the additive constant in the numerator after dividing by the factor.

  1. The derivative of ln⁡(cosh⁡x)\ln(\cosh x) is tanh⁡x\tanh x. The positive factor is cosh⁡2(x)\cosh^{2}{\left(x \right)}.

  2. After multiplying, the right side is the constant 33. Integrate it to get numerator C+3xC + 3 x.

  3. At zero the hyperbolic cosine is one, giving C=2C=2. The solution is y=3x+2cosh⁡2(x)y=\frac{3 x + 2}{\cosh^{2}{\left(x \right)}}.

Your turn

Solve 3y(x)tanh⁡(x)+ddxy(x)=4cosh⁡3(x)3 y{\left(x \right)} \tanh{\left(x \right)} + \frac{d}{d x} y{\left(x \right)}=\frac{4}{\cosh^{3}{\left(x \right)}} subject to y(0)=3y(0)=3. Give the exponent in the factor (cosh⁡x)k(\cosh x)^k and the additive constant in the numerator after dividing by the factor.

Enter the value on its own or write k = … . Fractions and exact square roots are accepted.

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Section 5 of 5 · Core · about 7 min

How do I interpret a first-order model after solving?

Choose a quantity and consistent units. The mass balance is the inflow rate minus the outflow rate, and a well-mixed outflow carries the current concentration.

Worked example

Model a fixed-volume inflow and outflow

A well-mixed container holds 1010 litres. Fluid of concentration 33 grams per litre enters at two litres per minute, with the same outflow rate. Initially the concentration is 11 grams per litre. Find the decay constant of the transient and the limiting mass of solute.

  1. Let mass be M grams. The inlet brings 66 grams per minute. The outlet concentration is M10\frac{M}{10}.

  2. The linear model is dMdt+15M=6\frac{\mathrm dM}{\mathrm dt}+\frac{1}{5}M=6. Use the exponential factor or solve for the deviation from equilibrium.

  3. With the initial mass, the solution is M=30−20e−t5M=30 - 20 e^{- \frac{t}{5}}. The exponential correction tends to zero. The limiting mass is 3030 grams.

Your turn

A well-mixed container holds 1212 litres. Fluid of concentration 44 grams per litre enters at two litres per minute, with the same outflow rate. Initially the concentration is 22 grams per litre. Find the decay constant of the transient and the limiting mass of solute.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Worked example

Model a fixed-volume inflow and outflow

A well-mixed container holds 1414 litres. Fluid of concentration 55 grams per litre enters at two litres per minute, with the same outflow rate. Initially the concentration is 33 grams per litre. Find the decay constant of the transient and the limiting mass of solute.

Try it on paper first.

  1. Let mass be M grams. The inlet brings 1010 grams per minute. The outlet concentration is M14\frac{M}{14}.

  2. The linear model is dMdt+17M=10\frac{\mathrm dM}{\mathrm dt}+\frac{1}{7}M=10. Use the exponential factor or solve for the deviation from equilibrium.

  3. With the initial mass, the solution is M=70−28e−t7M=70 - 28 e^{- \frac{t}{7}}. The exponential correction tends to zero. The limiting mass is 7070 grams.

Your turn

A well-mixed container holds 1616 litres. Fluid of concentration 66 grams per litre enters at two litres per minute, with the same outflow rate. Initially the concentration is 44 grams per litre. Find the decay constant of the transient and the limiting mass of solute.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Worked examples

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

The whole polynomial and transient

2 marks

Solve y′+2y=3x−1y^{\prime}+2y=3 x - 1, y(0)=2y(0)=2. Give the full polynomial P(x) and C in y=P(x)+Ce−2xy=P(x)+Ce^{-2x}.

Enter an expression in x; use ^ for powers and / for fractions.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Multiply by an exponential integrating factor

Solve 4y(x)+ddxy(x)=20x+174 y{\left(x \right)} + \frac{d}{d x} y{\left(x \right)}=20 x + 17 with y(0)=7y(0)=7. Give the exponent coefficient in the integrating factor ekx\mathrm e^{kx} and CC in y=Ce−4x+5x+3y=C e^{- 4 x} + 5 x + 3.

Enter the value on its own or write k = … . Fractions and exact square roots are accepted.

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Use a power integrating factor on the stated interval

For x>−1x>-1, solve ddxy(x)+4y(x)x+1=5x+5\frac{d}{d x} y{\left(x \right)} + \frac{4 y{\left(x \right)}}{x + 1}=5 x + 5 with y(0)=296y(0)=\frac{29}{6}. Give the exponent in (x+1)k(x+1)^k used as integrating factor and the coefficient of 1(x+1)k\frac{1}{(x+1)^k} in the solution.

Enter the value on its own or write k = … . Fractions and exact square roots are accepted.

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Divide by the derivative coefficient before finding a factor

For x>0x>0, (x+5)ddxy(x)+6y(x)=49x+71\left(x + 5\right) \frac{d}{d x} y{\left(x \right)} + 6 y{\left(x \right)}=49 x + 71. Its solution has the form y=C(x+5)6+7x+6y=\frac{C}{\left(x + 5\right)^{6}} + 7 x + 6. Give the exponent of x+5x + 5 in the integrating factor and the value of CC if y(1)=60653546656y(1)=\frac{606535}{46656}.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Recognise a hyperbolic logarithmic derivative

Solve 4y(x)tanh⁡(x)+ddxy(x)=5cosh⁡4(x)4 y{\left(x \right)} \tanh{\left(x \right)} + \frac{d}{d x} y{\left(x \right)}=\frac{5}{\cosh^{4}{\left(x \right)}} subject to y(0)=4y(0)=4. Give the exponent in the factor (cosh⁡x)k(\cosh x)^k and the additive constant in the numerator after dividing by the factor.

Enter the value on its own or write k = … . Fractions and exact square roots are accepted.

Enter the value on its own or write c = … . Fractions and exact square roots are accepted.

Model a fixed-volume inflow and outflow

A well-mixed container holds 1818 litres. Fluid of concentration 77 grams per litre enters at two litres per minute, with the same outflow rate. Initially the concentration is 55 grams per litre. Find the decay constant of the transient and the limiting mass of solute.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.