mfr-morreformation.com
RSS
26 Jun 2025 maximios
Equations

16.1.3 First-Order Linear Equations

16.1.3
First-Order Linear Equations

Return To Contents
Go To Problems & Solutions

1. First-Order Linear Differential Equations

In this section, the abbreviation “DE” stands for “differential equation”.

In Section 7.5 Part 3, we encountered the DE dy/dt = ky, or y‘ + by = 0, where b = – k. In this equation, the highest order of
derivative is 1 (the equation is of first order), and each term contains at most one factor y or y‘, but not both, whose power is 1
(the equation is linear). It’s called a first-order linear differential equation. Similarly, the equation x2y – 2x3y‘ – ex + 3 = 0 is a
first-order linear DE. It can be converted to the form y‘ – (1/2x)y = (3 – ex)/2x3 by changing the order of the first 2 terms,
moving the last 2 terms to the right-hand side, and dividing the resulting equation by -2x3. This form is called the standard
form
of the DE.

Definition 1.1 – First-Order Linear Differential Equations

A DE that can be written in the form:

y‘ + p(x)y = q(x),

where p(x) and q(x) are given continuous functions, is called a first-order linear differential equation. The form
y‘ + p(x) y = q(x) is called the standard form of the DE.

The highest derivative order is 1, thus the adjective “first-order”, and each term contains at most either a factor y or a factor y‘
raised to just the power of 1, thus the adjective “linear” (note: a term such as y‘y is of power 1 + 1 = 2). Remark that the
equation is written in the decreasing order of the derivative (recall that y = y(0)). The coefficient of y‘ is 1 and that of y is p(x).
Observe that while the equation is linear, each function y, y‘, p(x), and q(x) doesn’t have to be linear. For example, y = 2x + 3
is linear while y = x2 + 3 and q(x) = sin x

The DE y‘ = f (x), as discussed in Section 16.1.1 Part 2, is a first-order linear one. For this equation, p(x) = 0 and q(x) = f (x).

When The Coefficient Of y‘ Isn’t 1

Suppose the coefficient of y‘ of the DE:

f(x)y‘ + p1(x)y = q1(x)

is the function f(x) that’s not the constant function 1. In this case, to get an equation of the form y‘ + p(x)y = q(x) that has 1
as the coefficient of y‘ and that’s equivalent to the given equation, we divide both sides of the given equation by f(x):

A Particular Case

Consider the simple example of the particular case of the above DE, y‘ + by = 0, where p(x) = b and q(x) = 0, and where b is
a constant. We solve it as follows:

y‘ + by = 0

y‘ = – by,

So y = Ce–bx + K isn’t the general solution of y‘ + by = 0. The reason is that the general solution of a first-order equation
involves only one arbitrary constant, and y = Ce–bx already has one arbitrary constant, which is C. The arbitrary constant C
originates from the arbitrary constant C1, which is added to –bx to obtain the general antiderivative of –b. This confirms that
we’ve already added an arbitrary constant.

Now let’s solve the DE by using an alternative approach. The left-hand side of y‘ + by = 0 has 2 terms, one term contains the
derivative y‘ as a factor and the other term contains the function y as a factor. This reminds us of the product rule of
differentiation: (uv)’ = u‘v + uv‘, or (uv)’ = uv‘ + u‘v, where the first term of the right-hand side contains the derivative v‘
as a factor and the other term contains the function v as a factor. So we try to examine if y‘ + by is the derivative of the
product of some function, say u, and y, so that the product is uy, whose derivative is (uy)’ = uy‘ + u‘y. We see that y‘ + by =
1y‘ + by, so it should be that u = 1 and u‘ = b. But b isn’t the derivative of 1 unless b = 0. Thus y‘ + by, when b is non-0, in
itself can’t be the derivative of the product of any function and y. The problem is that the coefficient of y‘ is 1. So we multiply
both sides of y‘ + by = 0 by a function u, obtaining uy‘ + buy = 0. In order for uy‘ + buy to be the derivative uy‘ + u‘y of uy,
bu must be the derivative u‘ of u. We determine u so that this requirement is fulfilled, as follows:

u‘ = bu,

Multiplying y‘ + by = 0 by ebx works out well. The general solution is the same as obtained previously.

General Case

We don’t need to memorize the formula of the general solution y of the DE y‘ + p(x)y = q(x). In solving such an equation,
we instead can follow the procedure that leads to that formula.

Integrating Factors

In the general solution:

The solution procedure of the first-order linear DE can be summarized as follows.

Solution Procedure Of The First-Order Linear Differential Equation

The first-order linear DE of the standard form y‘ + p(x)y = q(x), where p(x) and q(x) are continuous, is solved by
the integrating-factor technique as follows (you don’t have to remember things in brackets that start with “thus”):

Make sure that the DE is in the standard form y‘ + p(x) y = q(x), where the coefficient of y’ is 1, because the above
technique assumes the standard form. If it’s not in the standard form, convert it to the standard form.

Example 1.1

In Section 7.5 Part 3, we solved the DE dy/dt = ky, or y‘ + by = 0, where b = – k, and found the general solution to be y =
Cekt, where C = y(0). Use the integrating-factor technique described in this section to show that the general solution of the DE:

y‘ + by = 0,

where y = y(x) is a function of x and b is a constant, is y = y(0)e–bx. Note that we’ve dealt with this DE under the heading “A
Particular Case” above.

Note

Here the functions p(x) = b and q(x) = 0 are constant and thus continuous.

Solution
An antiderivative of b is bx. Then:

ebxy’ + ebxby = 0     (multiply both sides of the given DE by ebx),
(ebxy)’ = 0,

y(x) = y = Ce–bx,
y(0) = Ce0 = C(1) = C,
y = y(0)e–bx.
EOS

Remark 1.1 – On Example 1.1

Let’s find out what happens if we utilize the general antiderivative bx + c of b, where c is an arbitrary constant, instead of the
simple particular antiderivative bx, where c = 0:

ebx+cy’ + ebx+cby = 0     (multiply both sides of the given DE by ebx+c),
(ebx+cy)’ = 0,

y(x) = y = Ce–bx–c = Ce–ce–bx,
y(0) = Ce–ce0 = Ce–c(1) = Ce–c,
y = y(0)e–bx.

It’s the same general solution. Thus utilizing any particular antiderivative of p(x) is fine. We utilize the simplest one, where
the constant of integration is 0.

Example 1.2

Solve y‘ + y/x = 2, where x > 0.

Solution

EOS

Example 1.3

Solve the first-order linear DE dy/dx + xy = 2x3.

Solution

Example 1.4

Solve this initial-value problem:

Solution

EOS

Return To Top Of Page     Go To Problems & Solutions

We now present examples of some of the applications of the first-order linear DEs.

Concentrations In (Liquid) Solutions
Example 2.1

A tank contains 200 L of brine in which 2.5 kg of salt is dissolved. Then brine containing 0.1 kg of salt per liter enters the tank at a rate of 15 L/min. While the brine is entering the tank, brine from the tank is also exiting the tank at a rate of 8 L/min. The concentration of the brine in the tank is kept uniform throughout the tank by stirring. Find the amount of salt in the tank after 30

min.

Solution
Let S be the amount of salt in the tank at time t, where S is in kg and t in min. The initial time t = 0 is when the brine starts to
enter and exit the tank. The rate of change of the amount of salt in the tank at time t is:

C = (-17.5)(2008/7),

After 30 min, the amount of salt in the tank is approximately 33.3 kg.

EOS

Remark 2.1 – On Example 2.1

We’re to determine a quantity. First we find the rate of change or derivative of that quantity. We obtain a DE whose unknown
function is the quantity. Then we solve the DE and get the quantity.

Savings Accounts
Example 2.2

A savings account is opened with a deposit of $10,000. Money is being continuously transferred automatically from another account and deposited into this account in such a way that the accumulated deposited amount increases at the rate of (1,000 +

200

t) dollars per year, where t is the number of years after the account is opened. Interest is being paid also continuously into
the account at the rate of 13% per year. Determine the balance of the account after 5 years.

Notes

1. The quantity 1,000 + 200t is the rate of increase of the accumulated deposited amount (ADA), not of the deposit, at time t.
    For example, for the simpler case of an ADA increasing at the constant rate of $5,000 per year, the deposit is constant at
    $5,000 per year and thus increases at the rate of $0 per year.

2. Since the interest is paid continuously, the accumulated interest (AI) at time t increases at (13%)B = $0.13B per year, where
    B is the balance at time t. In this problem the unit of time is the year. So the rate of increase of the AI (not the rate of
    interest, not the rate of increase of the rate of interest, the rate of interest being fixed at 13% per year) is also $0.13B per
    year.

3. Since the deposit is made continuously (the number of deposits on any time interval approaches infinity), we wonder if the
    ADA is infinite and thus the balance is infinite at any time t > 0 (the initial time t = 0 is when the account is opened). Let’s
    find out. As the rate of increase of the ADA is 1,000 + 200t and the initial amount (at time t = 0) is $10,000, the ADA at
    time t is a(t) = 1,000t + 200(t2/2) + 10,000, or a(t) = 100t2 + 1,000t + 10,000. So at any time t where 0 < t < infinity, the
    ADA a(t) is finite. Although the parabola a(t) rises or increases continuously for all increasing t > 0, its height at any t
    where 0 < t < infinity is finite. For any bounded interval [t1, t2] where 0 < t1 < t2, divide [t1, t2] into n equal sub-intervals,
    and consider the parabola as increasing n times on [t1, t2] from a(t1) to a(t2). For the continuous increase, let n approach
    infinity. As the number of increases approaches infinity, each increase approaches 0 and fast, fast enough for their sum to be
    finite. Thus the height of the parabola at any t where 0 < t < infinity is finite. Although the deposits are made continuously,
    each is small enough that the ADA is finite. As for the interest, we already know that although it’s paid continuously, the
    accumulated interest is finite. Thus at any time t where 0 < t < infinity the balance is finite.

Solution
Let B be the balance at time t. Then the rate of increase of the balance at time t is:

Let u = t and dv = e–0.13t dt, so that du = dt and v = –e–0.13t/0.13. Then:

The balance of the account after 5 years is $29,340.53.
EOS

Return To Top Of Page

1. Solve the DE y‘ – 2y/x = x2.

Solution

An antiderivative of –2/x is –2 ln x. Then:

Return To Top Of Page

2. Solve y‘ + y = 3ex

Solution

An antiderivative of 1 is x, and so an integrating factor is ex. We have:

Return To Top Of Page

Solution

y‘ + (cot x) y – 2x – 1 = 0,
y‘ + (cot x) y = 2x + 1.

Return To Top Of Page

4. Solve this initial-value problem:

Solution

(1 + sin x) y‘ + (cos x) y = sin2 x,

Return To Top Of Page

5. A tank contains 240 L of brine in which 6 kg of salt is dissolved. Then brine containing 0.06 kg of salt per litre from outside
    the tank flows into it at a rate of 24 L/min and the brine in it flows out of it at a rate of 12 L/min. The concentration of brine
    in the tank is kept uniform by stirring. Determine the amount of salt in the tank after 10 minutes.

Solution

Let S be the amount of salt in the tank at time t, where S is in kg and t in min. The initial time t = 0 is when the brine starts to
flow into and out of the tank. The rate of change of the amount of salt in the tank at time t is:

After 10 min, the amount of salt in the tank is 16 kg.

Return To Top Of Page

6. The initial balance of a savings account was $2,000. Interest is paid into the account continuously at the variable rate of (1 +
    (t/60))% per month, where t is the number of months after the account was opened. Determine the amount in the account
    after 1 year.

Solution

Let a(t) be the amount in the account t months after the account was opened. The rate of increase of a(t) is:

2,000 = a(0) = Ce0 = C,

After 1 year or 12 months, the amount in the account is $2,282.22

Return To Top Of Page

7. The equation y‘ + p(x)y = q(x)yn, where n is a constant different from 0 and 1, is known as Bernoulli equation. (For n = 0,
    the equation becomes y‘ + p(x)y = q(x), and for n = 1, it becomes y‘ + (p(x) – q(x))y = 0. In both cases, the equation is
    of first-order and linear, and can be solved by the integrating-factor technique discussed in this section.)

a. Prove that the substitution v = y1–n reduces the Bernoulli equation to a DE for v that is of first-order and linear.
b. Use the result of part a to solve the DE y‘ – 2xy = 5xy3.

Solution

a. Let v = y1–n. Then:

Return To Top Of Page     Return To Contents

26 Jun 2025 maximios
Equations

16.3.1 Equations With Constant Coefficients – Undetermined Coefficients

16.3.1
Equations With Constant Coefficients – Undetermined Coefficients

Return To Contents
Go To Problems & Solutions

1. Second-Order Linear Non-Homogeneous Differential Equations With
    Constant Coefficients

In this section, we’ll use the abbreviations:

“DE”

for

“differential equation”,

“GS”

for

“general solution”,

“HDE”

for

“homogeneous differential equation”,

“HE”

for

“homogeneous equation”,

“NHDE”

for

“non-homogeneous differential equation”,

“NHE”

for

“non-homogeneous equation”, and

“PS”

for

“particular solution”.

Definition 1.1 – Second-Order Linear Non-Homogeneous Differential Equations With
                          Constant Coefficients

A differential equation of the form:

y” + by‘ + cy = f (x),

where b and c are constants and f is a continuous function that isn’t identically 0, is called a second-order linear
non-homogeneous differential equation with constant coefficients
.

Note that there are only the terms for y, y‘, and y” on the left-hand side. Everything else must be on the right-hand side and is
a part of f. Distinguish between the functions y and f. Observe that while the equation is linear, each function y, y‘, y”, and
f (x) doesn’t have to be linear. For example, y = 2x + 3 is linear while y = x2 + 3 and y = e2x + 3 aren’t.

Return To Top Of Page     Go To Problems & Solutions

2. General Solutions Of The Non-Homogeneous Equations

Suppose yn1 is a PS of the NHE:

y” + by‘ + cy = f (x)

and yh is the GS of the corresponding HE:

y” + by‘ + cy = 0.

Then intuitively the sum yh + yn1 should be the GS of the NHE, because: (1) when we substitute yh + yn1 into the NHE, the
expression containing yh and its derivatives equals 0, since yh is the GS of the HE, (2) the expression containing yn1 and its
derivatives equals f (x), since yn1 is a PS of the NHE, and (3) there are 2 arbitrary constants in yh + yn1, they’re the arbitrary
constants of yh. And so the substituted sum equals 0 + f (x) = f (x). This intuition is confirmed true in the theorem below.

Theorem 2.1 – General Solutions Of The Non-Homogeneous Equations

Let:

((GS Of NHE) = (GS Of HE) + (A PS Of NHE)).

Proof
First let’s prove that yh + yn1 is a solution of the NHE [2.1]. We have:

Thus yn2 – yn1 is a PS of the HE. Let yh1 be that PS, so that yn2 – yn1 = yh1, or yn2 = yh1 + yn1. Now yh1 can be obtained from yh.
As a consequence, yn2 can be obtained from yh + yn1. Hence yh + yn1 is the GS of the NHE [2.1].
EOP

Return To Top Of Page     Go To Problems & Solutions

3. Principle Of Superposition

Because 0 + f (x) = f (x), by Theorem 2.1 we see that:

(GS of y” + by‘ + cy = 0 + f (x)) = (GS of y” + by‘ + cy = 0) + (PS of y” + by‘ + cy = f (x)).

This leads us to investigate to see if the property:

(solution of y” + by‘ + cy = f1 (x) + f2 (x)) = (solution of y” + by‘ + cy = f1 (x)) + (solution of y” + by‘ + cy = f2 (x))

is also true for any functions f1 (x) and f2 (x). Intuitively this is obviously true. Let y1 be a solution of y” + by‘ + cy = f1 (x) and
y2 a solution of y” + by‘ + cy = f2 (x). Substituting y1 + y2 for y in the expression y” + by‘ + cy, we get f1 (x) + f2 (x), because
the expression containing y1 and its derivatives equals f1 (x) and the expression containing y2 and its derivatives equals f2 (x).

It turns out that this property is indeed true, as asserted by Theorem 3.1 below, which establishes the relationship between the
solutions of the equations:

y” + by‘ + cy = f 1(x),
y” + by‘ + cy = f 2(x), and
y” + by‘ + cy = f 1(x) + f 2(x),

the relationship being that the sum of a solution of the 1st equation and a solution of the 2nd equation is a solution of the 3rd
equation. Letting “RHS” stands for “right-hand side”, this property can be thought of as:

(solution when RHS is) ( f1(x) + f2(x)) = (solution when RHS is) ( f1(x)) + (solution when RHS is) ( f2(x)).

This linearity property of the solutions is called the principle of superposition, as a solution of the 3rd equation is obtained by superimposing a solution of 1st equation on a solution of the 2nd equation.

Theorem 3.1 – Principle Of Superposition

If y1 is a solution of the equation:

This property is called the principle of superposition, because a solution of Eq. [3.3] is obtained by superimposing a
solution of Eq. [3.1] on a solution of Eq. [3.2].

Proof

So y1 + y2 is a solution of y” + by‘ +  cy = f1(x) + f2(x).

EOP

Remarks 3.1

a. The sum of a solution of Eq. [3.1] and a solution of Eq. [3.2] is a solution of Eq. [3.3], not a solution of the equation that’s
    the sum of Eqs. [3.1] and [3.2], which is 2( y” + by‘ + cy) = f1(x) + f2(x), or y” + by‘ + cy = (1/2)( f1(x) + f2(x)).

b. It’s straightforward to show that the principle of superposition is valid for any number of equations. Let n be any integer
    greater than or equal to 2. If y1, y2, …, and yn are the solutions of the equations y” + by‘ +  cy = f1(x), y” + by‘ +  cy =
    f2(x), …, and y” + by‘ + cy = fn(x) respectively, then y1 + y2 + … + yn is a solution of the equation y” + by‘ +  cy = f1(x) +
    f2(x) + … + fn(x).

Return To Top Of Page     Go To Problems & Solutions

4. The Method Of Undetermined Coefficients

Clearly Theorem 2.1 tells us that to solve (find the GS of) a second-order linear NHDE with constant coefficients, we have to find the GS of the corresponding HE and a PS of the NHE, then we add them up to get the GS of the NHDE. We already know

how to find the GS of a HE. We’ll present a method to determine a PS of the NHE, called the method of undetermined
coefficients
. The reason for this naming is clear later on. This method applies only to some types of functions on the right-hand

side of the NHE, ie the function f (x).

When f (x) Is A Non-0 Constant

Solving By Inspection

First we show that when f (x) is constant, we can find a PS of the NHE simply by inspection. Suppose we’re to find a PS of the
NHE:

y” – 7y‘ + 10y = 20.

Since a non-0 constant, 20 in this case, is a polynomial (of degree 0), finding a PS of the NHE where f (x) is a polynomial can
be done by the method of undetermined coefficients, as illustrated in Example 4.2 below.

Finding a PS of the NHE where f (x) is a non-0 constant can also be done by inspection. The function f (x) is the constant 20. If
y is a constant say k, then y‘ = 0 and y” = 0, so when we compute y” – 7y‘ + 10y, it’s a constant, namely 10k, and thus we
can choose k so that y” – 7y‘ + 10y = 20. We’ll then have 10k = 20, consequently k = 20/10 = 2. Hence we’ll try the function
y = 2 as a PS of the NHE. We use inspection in Example 4.1 below.

Example 4.1

Find the GS of the equation y” – 7y‘ + 10y = 20. Check the answer.

Solution
 

For a PS of the given NHE y” – 7y‘ + 10y = 20, let’s try y = 20/10 = 2. Then y‘ = 0, y” = 0, and y” – 7y‘ + 10y = 0 – 7(0)
+ 10(2) = 20. So a PS of the NHE is y = 2.

Thus the GS of the NHE is y = c1e5x + c2e2x + 2.

Check:

y = c1e5x + c2e2x + 2,
y‘ = 5c1e5x + 2c2e2x,
y” = 25c1e5x + 4c2e2x,
y” – 7y‘ + 10y = (25c1e5x + 4c2e2x) – 7(5c1e5x + 2c2e2x) + 10(c1e5x + c2e2x + 2) = 20.

Indeed the GS y = c1e5x + c2e2x + 2 is correct. 
EOS

Finding A Particular Solution By The Method Of Undetermined Coefficients

When f (x) Is A Polynomial Function

Let’s find a PS of the NHE:

y” + 2y‘ – 3y = 2x.

The function f (x) is a linear function, f (x) = 2x. So y should also be a linear function y = a1x + a0, so that when we compute
y” + 2y‘ – 3y, it’s also a linear function, and thus we can select the coefficients a1 and a0 that make y” + 2y‘ – 3y equal 2x.
Let’s try y = ax, where a is a constant to be determined such that y” + 2y‘ – 3y = 2x. We have:

y = ax,     y‘ = a,     y” = 0,
2x = y” + 2y‘ – 3y = 0 + 2a – 3ax = – 3ax + 2a,
– 3ax + 2a = 2x,
these 2 linear functions are the same thing if the coefficients of like powers of x are equal; so let’s equate the coefficients of
like powers of x:

a = –2/3 and a = 0, impossible,

the system has no solutions.

The trial PS y = ax doesn’t work.

So what do we do? Ok, there’s one remaining thing to do: it’s to try the linear function of the general form y = a1x + a0, where
a1 and a0 are constants to be determined such that y” + 2y‘ – 3y = 2x. We have:

y = a1x + a0,     y‘ = a1,     y” = 0,

2x = y” + 2y‘ – 3y = 0 + 2a1 – 3(a1x + a0) = – 3a1x + 2a1 – 3a0,
– 3a1x + 2a1 – 3a0 = 2x,
these 2 linear functions are the same thing if the coefficients of like powers of x are equal; so let’s equate the coefficients of
like powers of x:

solving this system we get a1 = –2/3 and a0 = 2(–2/3)/3 = –4/9.

The trial PS y = a1x + a0 works. A PS of the NHE is y = – (2/3)x – 4/9.

Example 4.2

Solve the NHE y” + 2y‘ – 3y = 2x by going thru the following steps:
a. Solve the HE y” + 2y‘ – 3y = 0.
b. Find a PS of the given NHE. Verify the answer.
c. Form the GS of the NHE. Verify the answer.

Solution

    Verification:

    Indeed the GS is correct.

EOS

The Method Of Undetermined Coefficients

In Example 4.2 part b, since 2x is a linear function, a PS y should also be a linear function, so that y‘ and y” also are, then y”
+ 2y‘ – 3y also is, thus we can make it equal the linear function 2x. Consequently, as a PS, we try the linear function of the
general form y = a1x + a0, not of the non-general form y = ax, as seen in the discussion preceding Example 4.2. We compute
y‘, y”, then y” + 2y‘ – 3y. For y” + 2y‘ – 3y to equal 2x, its x-expression must equal 2x. Hence we equate its x-expression
with 2x. For the 2 expressions to be the same thing, ie to be equal for all x, the coefficients of like powers of x must be equal.
It follows that we equate the coefficients of like powers of x (the constants are the coefficients of x0 = 1), get a system of 2
equations in a1 and a0, solve it, obtain a1 = –2/3 and a0 = –4/9. Therefore the PS is y = – (2/3)x – 4/9.

We try the trial solution y = a1x + a0, where the coefficients a1 and a0 are to be determined. Of course initially they’re
undetermined. Hence this method of trying a PS with initially-undetermined coefficients is called the method of
undetermined coefficients
.

As asked, we verify the PS and the GS of the NHE, and find that indeed they’re correct. The procedure to determine a PS
assures that the PS must be correct, and thus, by Theorem 2.1, the GS must also be correct. Example 4.2 asks to verify simply because at the first contact with the method, it’s good to assure you clearly that of course the method works. In solutions to

problems, if you’re not asked to verify, then you don’t have to verify.

Example 4.3

Solve y” – y = x2.

Note

The function f (x) is a quadratic function, f(x) = x2. So y should also be a quadratic function, so that when we compute y” – y,
it’s also a quadratic function and thus has a chance to equal x2. This convinces us, in using the method of undetermined
coefficients, to try as a PS of the given NHE the quadratic function of the general form y = a2x2 + a1x + a0, where a2, a1, and a0
are constants to be determined in such a way that y” – y = x2. As in the case for f (x) being a linear function, we must try the
general form of the polynomial, in this case the general form of the quadratic function.

Solution
 

a2 = –1,     a1 = 0,     a0 = 2a2 = 2(–1) = –2,
y = – x2 – 2.

The GE of the NHE is y = c1ex + c2e–x – x2 – 2.
EOS

When f (x) Is An Exponential Function

Let’s find the working trial solution of the NHE:

y” – 3y‘ + y = 7e2x.

The function f (x) is an exponential function with exponent 2x, f (x) = 7e2x. So y should also be an exponential function with
the same exponent 2x, so that when we compute y” – 3y‘ + y, it’s also an exponential function with the same exponent 2x, as
the derivative of any order of e2x is a constant multiple of e2x, and thus y” – 3y‘ + y can be made to equal 7e2x. The trial
solution is the general form of the exponential function e2x, which is y = ae2x. This trial solution works, as shown in Example
4.4 below. Note that the trial solution when f (x) = kesx, where k and s are constants, is aesx, not akesx.

Example 4.4

Solve the DE y” – 3y‘ + y = 7e2x.

Solution

EOS

When f (x) Is A Sine Or Cosine Function

Let’s determine the working trial solution of the NHE:

y” + 5y‘ + 4y = 2 sin x.

The function f (x) is a sine function, f (x) = 2 sin x. So the x-expression of y” + 5y‘ + 4y must be able to equal 2 sin x. This
suggests that we should use a sine function as a trial solution. The derivative of any order of sin x is a constant multiple of
either sin x or cos x. This re-enforces the suggestion to use a sine function. Thus let’s try y = a sin x, where a is a constant to
be determined so that y” + 5y‘ + 4y = 2 sin x. We have:

y = a sin x,     y‘ = a cos x,     y” = – a sin x,
2 sin x = y” + 5y‘ + 4y = – a sin x + 5a cos x + 4a sin x = 3a sin x + 5a cos x,
3a sin x + 5a cos x = 2 sin x,
equate the coefficients of like trigonometric functions of x:

this system has no solutions.

So the trial solution y = a sin x doesn’t work. The reason is discussed after the Solution of Example 4.5 below.

So what do we do? Ok, there’s one remaining thing to do: it’s to try the cosine+sine function of the general form y = A cos x +
B sin x, where A and B are constants to be determined so that y” + 5y‘ + 4y = 2 sin x. This trial PS works, as seen in
Example 4.5 below. The reason is discussed after the Solution of Example 4.5.

Example 4.5

Solve y” + 5y‘ + 4y = 2 sin x.

Solution

EOS

Why y = a sin x Doesn’t Work But y = A cos x + B sin x Does

For the trial solution y = ax, the x-expression of y” + 5y‘ + 4y is 3a sin x + 5a cos x, where the coefficients of cos x and
sin x are products containing the same factor a. When we remove the term 5a cos x by setting a = 0, the term 3a sin x will
also disappear. That’s the reason why y = a sin x doesn’t work.

For the trial solution y = A cos x + B sin x, the x-expression of y” + 5y‘ + 4y is (– 5A + 3B) sin x + (3A + 5B) cos x, where
the coefficients of cos x and sin x aren’t products containing the same factor that has to be set to 0. When we remove the
term (3A + 5B) cos x by setting 3A + 5B = 0, the term (– 5A + 3B) sin x won’t disappear. That’s the reason why y = A cos x
+ B sin x works.

Example 4.6

Find the general solution of the DE y” – 3y‘ + 2y = 2 cos 4x.

Note

Similar to the discussions surrounding Example 4.5. The general form of the cosine+sine function cos 4x + sin 4x is A cos 4x
+ B sin 4x.

Solution

EOS

Eligible Functions

In this section, eligible functions refer to functions that are eligible for the method of undetermined coefficients. They’re
represented by the function f (x) in the NHE:

y” + by‘ + cy = f (x).

They’re the polynomial, sine, cosine, and exponential functions.

If f (x) is a polynomial function of degree n: derivatives of orders 0 thru to 2, which appear on the left-hand side of the
equation, of the polynomial function f (x) of degree n are polynomial functions of degree n and less; so the trial PS of the NHE
is a polynomial function of degree n of the general form:

y = anxn + an–1xn–1 + an–2xn–2 + … + a2x2 + a1x + a0,

so that the two sides can be made equal by equating the coefficients of like powers of x.

If f (x) is a sine or cosine function: derivatives of the sine function f (x) = r sin sx and of the cosine function f (x) = r cos sx
are each constant multiples of the sine and cosine functions sin sx and cos sx; so the trial PS is the cosine+sine function of the
general form:

y = A cos sx + B sin sx.

If f (x) is an exponential function: derivatives of the exponential function f (x) = resx are constant multiples of the exponential
function esx; so the trial PS is the exponential of the general form:

y = aesx.

For non-eligible functions, consider the following example:

If f (x) = ln x, letting the trial solution be y = a ln x would lead to y” + by‘ + cy containing a constant multiple of –1/x2, and
thus y” + by‘ + cy can’t be made equal to ln x.

There are situations where the trial PSs have to be modified. This modification is discussed in the next section, where part 2 of this topic is presented. Thus if you’re encountering this topic for the first time, you’re reminded that your knowledge of it will be

complete only after you successfully finish its part 2.

When f (x) Is A Sum Of Eligible Functions

Example 4.7

Consider the equation y” – y = x2 + 3 cos x.
a. Solve the equation y” – y = x2.
b. Solve the equation y” – y = 3 cos x.
c. Solve the equation y” – y = x2 + 3 cos x using the principle of superposition.
d. Solve the equation y” – y = x2 + 3 cos x using the method of undetermined coefficients.

Note

For part d. The function f (x) is the sum of a quadratic function and a cosine function, f (x) = x2 + 3 cos x. So naturally, as a
PS of the NHE y” – y = x2 + 3 cos x, we’ll try the sum of the general quadratic function and the general form of the
cosine+sine function, that sum being y = a2x2 + a1x + a0 + A cos x + B sin x, so that when we compute y” – y, it’ll contain x2
and cos x, and thus it’ll be possible to make it equal x2 + 3 cos x by the process of equating coefficients.

Solution

    a2 = –1, a1 = 0, a0 = 2(–1) = –2,
    a PS of the NHE is y = – x2 – 2.

    So the required GS is:

    y = c1ex + c2e–x – x2 – 2.

b. By part a, the GS of the HE y” – y = 0 is y = c1ex + c2e–x.

    For a PS of the NHE y” – y = 3 cos x, let y = A cos x + B sin x. We have:

    y = A cos x + B sin x,     y‘ = – A sin x + B cos x,     y” = – A cos x – B sin x,

    3 cos x = y” – y = (– A cos x – B sin x) – (A cos x + B sin x) = – 2A cos x – 2B sin x,
    – 2A cos x – 2B sin x = 3 cos x,

d. By part a, the GS of the HE y” – y = 0 is y = c1ex + c2e–x.

    For a PS of the NHE y” – y = x2 + 3 cos x, let y = a2x2 + a1x + a0 + A cos x + B sin x. We have:

    y = a2x2 + a1x + a0 + A cos x + B sin x,     y‘ = 2a2x + a1 – A sin x + B cos x,     y” = 2a2 – A cos x – B sin x,

EOS

Using The Principle Of Superposition

As Example 4.7 part c shows, when f (x) is the sum of two or more eligible functions, we can use the principle of
superposition, as shown in Theorem 3.1. A PS of:

y” + by‘ + cy = f1(x) + f2(x) + … fn(x)

equals the sum of PSs of:

y” + by‘ + cy = f1(x),     y” + by‘ + cy = f2(x),     …,     and     y” + by‘ + cy = fn(x).

When f (x) Is A Product Of A Polynomial Function And An Exponential Function

Let’s find a PS of the NHE:

y” + y = xe2x.

The function f (x) is the product of a polynomial function of degree 1 and an exponential function, f (x) = xe2x. So naturally, as a PS of this equation, we’ll try the product of the general polynomial function of degree 1 and the general form of the

exponential function e2x, that product being y = (a1x + a0)ae2x, so that when we compute y” + y, it’ll contain the product xe2x,

and thus it’ll be possible to make it equal xe2x by the process of equating coefficients. We have:

y = (a1x + a0)ae2x,
y‘ = aa1e2x + (2aa1x + 2aa0)e2x,
y” = 2aa1e2x + 2aa1e2x + (4aa1x + 4aa0)e2x = 4aa1e2x + (4aa1x + 4aa0)e2x,

xe2x = y” + y = 4aa1e2x + (4aa1x + 4aa0)e2x + (a1x + a0)ae2x = (5aa1x  + 4aa1 + 5aa0)e2x,
(5aa1x  + 4aa1 + 5aa0)e2x = xe2x,
5aa1x  + 4aa1 + 5aa0 = x,

a1 = 1/(5a), a0 = – 4a(1/(5a)) / (5a) = – 4/(25a),
letting a = 1 we get a1 = 1/5 and a0 = –4/25, and a PS is y = ((1/5)x – (4/25))e2x.

Now (a1x + a0)(ae2x) = (aa1x + aa0)e2x, and aa1 and aa0 are constants. Thus we can simply use y = (A1x + A0)e2x, where A1
and A0 are constants, as the trial PS. Re-utilizing the letters a1 and a0 in place of A1 and A0 respectively, our trial PS is y = (a1x
+ a0)e2x. This is the same as using a = 1. It works all right, giving the same PS, as seen in Example 4.8 below. When a
constant can be combined with all the remaining constants, it can be removed.

Example 4.8

Consider the equation y” + y = xe2x.
a. Solve the equation y” + y = x.
b. Solve the equation y” + y = e2x.
c. Solve the equation y” + y = xe2x.
d. Does the GS of y” + y = xe2x equal the product of the GS of y” + y = x and the GS of y” + y = e2x?

Solution

    a1 = 1, a0 = 0,
    a PS of the NHE is y = x.

    So the GS of y” + y = x is:

    y = x + c1 cos x + c2 sin x.

b. By part a, the GS of the HE y” + y = 0 is y = c1 cos x + c2 sin x.

    For a PS of the NHE y” + y = e2x, let y = ae2x. We have:

     y = ae2x,     y‘ = 2ae2x,     y” = 4ae2x,

    e2x = y” + y = 4ae2x + ae2x = 5ae2x,
    5ae2x = e2x,
    5a = 1,
    a = 1/5,

    a PS of the NHE is y = (1/5)e2x.

    So the GS of y” + y = e2x is:

    a1 = 1/5,
    a0 = – 4(1/5)/5 = –4/25,
    a PS of the NHE is y = ((1/5)x – (4/25))e2xy” + y = xe2x is:

    The product [1] x [2] contains the term x(c1 cos x) = c1x cos x, which [3] doesn’t contain. So the product [1] x [2] can’t
    equal [3]. Thus the answer is no.

EOS

When f (x) Is A Product Of A Polynomial Function And A Sine Or Cosine Function

Let’s determine the working trial PS of the NHDE:

y” – y = x sin x.

Let’s try y = (a1x + a0)(A cos x + B sin x). We have:

y = (a1x + a0)(A cos x + B sin x),
y‘ = a1(A cos x + B sin x) + (a1x + a0)(– A sin x + B cos x),
y” = a1(– A sin x + B cos x) + a1(– A sin x + B cos x) + (a1x + a0)(– A cos x – B sin x)
     = 2a1(– A sin x + B cos x) – (a1x + a0)(A cos x + B sin x),
x sin x = y” – y
           = 2a1(– A sin x + B cos x) – (a1x + a0)(A cos x + B sin x) – (a1x + a0)(A cos x + B sin x)
           = 2a1(– A sin x + B cos x) – 2(a1x + a0)(A cos x + B sin x),
           = (– 2a1A – 2a1xB – 2a0B) sin x + (2a1B – 2a1xA – 2a0A) cos x
           = (– 2a1Bx – 2a1A – 2a0B) sin x + (– 2a1xA + 2a1B – 2a0A) cos x
(– 2a1Bx – 2a1A – 2a0B) sin x + (– 2a1Ax + 2a1B – 2a0A) cos x = x sin x,

as [1] and [3] show, the system has no solution, the trial solution y = (a1x + a0)(cos x + sin x) fails too.

In Example 4.8, we have f (x) = xe2x, and the working trial solution is y = (a1x + a0)e2x, obtained by multiplying the coefficient
of e2x into the polynomial, so that e2x has a coefficient of 1. Let’s try the same strategy: move A and B from A cos x + B sin x
to the polynomial, so that cos x and sin x each have a coefficient of 1. We have:

y = (a1x + a0)(A cos x + B sin x) = (a1x + a0)A cos x + (a1x + a0) B sin x = (a1Ax + a0A) cos x + (a1Bx + a0B) sin x.

Let’s re-use the letters a1 and a0 for the products a1A and a0A respectively, and let b1 = a1B and b0 = a0B. Then y =
(a1x + a0) cos x + (b1x + b0) sin x. That’s what we want! Let’s try it: y = (a1x + a0) cos x + (b1x + b0) sin x, done in
Example 4.9 below. It works, as seen in the Solution! Wow!

Example 4.9

Solve the NHDE y” – y = x sin x.

Solution

For a PS of the given NHE y” – y = x sin x, let y = (a1x + a0) cos x + (b1x + b0) sin x. We have:

y = (a1x + a0) cos x + (b1x + b0) sin x,
y‘ = a1 cos x – (a1x + a0) sin x + b1 sin x + (b1x + b0) cos x,
y” = – a1 sin x – a1 sin x – (a1x + a0) cos x + b1 cos x + b1 cos x – (b1x + b0) sin x
    = (– a1x – a0 + 2b1) cos x + (– b1x – 2a1 – b0) sin x,
x sin x = y” – y
           = ((– a1x – a0 + 2b1) cos x + (– b1x – 2a1 – b0) sin x) – ((a1x + a0) cos x + (b1x + b0) sin x)
           = (– 2b1x – 2a1 – 2b0) sin x + (– 2a1x – 2a0 + 2b1) cos x,
(– 2b1x – 2a1 – 2b0) sin x + (– 2a1x – 2a0 + 2b1) cos x = x sin x,

b1 = –1/2, a1 = 0, b0 = 0, a0 = – 2(–1/2) / (–2) = –1/2,
a PS of the NHE is y = – (1/2) cos x – (1/2)x sin x, or y = – (1/2)(cos x + x sin x).

Thus the GS of the given NHE is y = c1ex + c2e–x – (1/2)(cos x + x sin x).

EOS

When f (x) Is A Product Of An Exponential Function And A Sine Or Cosine Function

Let’s find a PS of the NHE:

y” – 3y‘ + 2y = ex sin x.

Let y = aex(A cos x + B sin x). Then y = ex(aA cos x + aB sin x). So we can simply utilize y = ex(A cos x + B sin x). It
works ok, as evidenced in Example 4.10 below.

Example 4.10

Determine the GS of y” – 3y‘ + 2y = ex sin x.

Solution

EOS

Return To Top Of Page     Go To Problems & Solutions

5. Modification Of The Method Of Undetermined Coefficients

When f (x) Is A Polynomial

Let’s find a PS of the NHE:

y” + y‘ = x3 – x2.

Let’s try y = a3x3 + a2x2 + a1x + a0. We have:

y = a3x3 + a2x2 + a1x + a0,     y‘ = 3a3x2 + 2a2x + a1,     y” = 6a3x + 2a2,

x3 – x2 = y” + y‘ = (6a3x + 2a2) + (3a3x2 + 2a2x + a1) = 3a3x2 + (6a3 + 2a2)x + 2a2 + a1,
3a3x2 + (6a3 + 2a2)x + 2a2 + a1 = x3 – x2.

We may add the term 0x3 to the left-hand side, but then we can’t equate 0 to the coefficient 1 of x3 on the right-hand side, and so the process of equating coefficients can’t be done.

The trial solution y = a3x3 + a2x2 + a1x + a0 doesn’t work. That’s because when we compute (the x-expressions of ) y‘ and y”,
they’re polynomials of degree 2, and so is y” + y‘, while x3 – x2 is a polynomial of degree 3. The term containing y, which is of
degree 3 in x, is absent from the left-hand side.

So what do we do? Ok, let’s try a polynomial of degree 4, so that when we compute y” + y‘, it’ll be a polynomial of degree 3,
the same as that of x3 – x2. Let y = a4x4 + a3x3 + a2x2 + a1x + a0. We have:

y = a4x4 + a3x3 + a2x2 + a1x + a0,     y‘ = 4a4x3 + 3a3x2 + 2a2x + a1,     y” = 12a4x2 + 6a3x + 2a2,

x3 – x2 = y” + y‘ = (12a4x2 + 6a3x + 2a2) + (4a4x3 + 3a3x2 + 2a2x + a1) = 4a4x3 + (12a4 + 3a3)x2 + (6a3 + 2a2)x + 2a2 + a1,
4a4x3 + (12a4 + 3a3)x2 + (6a3 + 2a2)x + 2a2 + a1 = x3 – x2.

The constant term a0 is absent from the left-hand side, and thus can’t be determined. The trial solution y = a4x4 + a3x3 + a2x2
+ a1x + a0 doesn’t work either.

So, again, what do we do? Ok, let’s multiply the initial trial solution a3x3 + a2x2 + a1x + a0 by x to get the modified trial solution
y = a3x4 + a2x3 + a1x2 + a0x. This trial PS works, as will be seen in Example 5.1 below.

When f (x) is a polynomial and y is absent from the left-hand side (because its coefficient is 0), the modified trial solution is a
polynomial of degree greater than that of the polynomial f (x) by 1 and with the constant coefficient equal to 0. In the term
aixi+1, the subscript i of the coefficient ai is less than the exponent i + 1 of xi+1 by 1, to reveal the multiplication by x and to
stop at a0x where the subscript is already the lowest 0. This is an example where the method of undetermined coefficients
must be modified.

Example 5.1

Find the GS of the DE y” + y‘ = x3 – x2.

Solution

a3 = 1/4,     a2 = (– 1 – 12(1/4)) / 3 = –4/3,     a1 = –6(–4/3)/2 = 4,     a0 = –2(4) = –8,
a PS of the NHE is y = (1/4)x4 – (4/3)x3 + 4x2 – 8x.

So the GS of the given NHE is y = c1 + c2e–x + (1/4)x4 – (4/3)x3 + 4x2 – 8x.
EOS

When The Initial Trial PS Of The NHE Is A PS Of The HE

Multiplying By x

Let’s determine a PS of the NHE:

y” – y = 2ex.

Let’s try y = aex. We have:

y = aex,     y‘ = aex,     y” = aex,

2ex = y” – y = aex – aex = 0.

The case of the polynomial in Example 5.1 suggests that we can try the multiplication of the initial trial solution aex by x. Let’s
try y = axex. This trial solution works quite well, as shown in Example 5.2 below. Note that axex isn’t a PS of the HE for any
values of c1 and c2.

In the solution we of course first find the GS of the HE. If we observe that the initial trial PS g(x) of the NHE is a PS of the HE,
then we multiply it by x, if xg(x) obtained isn’t a PS of the HE, then we use it as the modified trial PS. This is another example
where the method of undetermined coefficients must be modified.

Example 5.2

Solve y” – y = 2ex.

Solution

For a PS of the given NHE y” – y = 2ex. The function aex is a PS of the HE and the function axex isn’t. So let’s try y = axex.
We have:

y = axex,     y‘ = aex + axex,     y” = aex + (aex + axex) = 2aex + axex,

2ex = y” – y = (2aex + axex) – axex = 2aex,
2aex = 2ex,
a = 1,
a PS is y = xex.

So the GS of the given NHE is y = c1ex + c2e–x + xex, or y = (x + c1)ex + c2e–x.
EOS

Example 5.3

Solve the initial-value problem y” + y = cos x, y(0) = 2, y‘(0) = –3.

Note

For a PS of the given NHE. Let’s try y = A cos x + B sin x. We have:

y = A cos x + B sin x,     y‘ = – A sin x + B cos x,     y” = – A cos x – B sin x,

cos x = y” + y = (– A cos x – B sin x) + (A cos x + B sin x) = 0.

Solution

c1 = 2,

c2 = –3.

Thus the unique solution of the given initial-value problem is y = 2 cos x – 3 sin x + (1/2)x sin x.

EOS

Multiplying By xn

Let’s find a PS of the equation:

y” – 2y‘ + y = ex.

Let’s try y = aex. We have:

y = aex,     y‘ = aex,     y” = aex,

ex = y” – 2y‘ + y = aex – 2aex + aex = 0.

The trial PS y = aex fails. It’s a PS of the HE y” – 2y‘ + y = 0, and thus can’t be a PS of the NHE. Let’s determine the GS of the
HE. We have (–2)2 – 4(1) = 0, –b/2 = –(–2)/2 = 1, and the GS is y = c1ex + c2xex. The trial PS y = aex of the NHE is a PS of
the HE, obtained from the GS of the HE by letting c1 = a and c2 = 0.

Now let’s multiply the initial trial PS aex by x to get axex. But axex is still a PS of the HE, obtained by letting c1 = 0 and c2 = a.
So y = axex would fail too. Let’s check:

y = axex,     y‘ = aex + axex,     y” = aex + aex + axex = 2aex + axex,

ex = y” – 2y‘ + y = 2aex + axex – 2(aex + axex) + axex = 0.

Indeed y = axex fails too.

So what do we do? Ok, let’s multiply the initial trial PS aex by x2 to get ax2ex. Now ax2ex isn’t a PS of the HE. Thus let’s try y =
ax2ex. This trial solution works, as evidenced in Example 5.4 below. Note that ax2ex isn’t a PS of the HE for any values of c1
and c2. This is another example where the method of undetermined coefficients must be modified.

In the solution we of course first find the GS of the HE. If we observe that the initial trial PS g(x) of the NHE is a PS of the HE,
then we multiply it by xn, where n is the smallest positive integer such that xng(x) isn’t a PS of the HE, and we use the
modified trial PS y = xng(x).

Example 5.4

Determine the GS of the DE y” – 2y‘ + y = ex.

Solution
For the GS of the HE y” – 2y‘ + y = 0, we have (–2)2 – 4(1) = 0, –b/2 = –(–2)/2 = 1, and the GS is y = c1ex + c2xex.

For a PS of the given NHE y” – 2y‘ + y = ex. The functions y = aex and axex are PSs of the HE. So let’s try y = ax2ex. We
have:

y = ax2ex,     y‘ = 2axex + ax2ex,     y” = (2aex + 2axex) + (2axex + ax2ex) = 2aex + 4axex + ax2ex,

ex = y” – 2y‘ + y = (2aex + 4axex + ax2ex) – 2(2axex + ax2ex) + ax2ex = 2aex,
2aex = ex,
2a = 1,
a = 1/2,
a PS of the NHE is y = (1/2)x2ex.

Thus the GS of the given NHE is y = c1ex + c2xex + (1/2)x2ex, or y = ((1/2)x2 + c2x + c1)ex.

EOS

When One Or More Terms Of The Initial Trial PS Of The NHE Is A PS Of The HE

Let’s determine a PS of the equation:

y” + y = x sin x.

Let’s try y = (a1x + a0) cos x + (b1x + b0) sin x. We have:

y = (a1x + a0) cos x + (b1x + b0) sin x,
y‘ = a1 cos x – (a1x + a0) sin x + b1 sin x + (b1x + b0) cos x = (b1x + a1 + b0) cos x + (– a1x – a0 + b1) sin x,

y” = b1 cos x – (b1x + a1 + b0) sin x – a1 sin x + (– a1x – a0 + b1) cos x = (– a1x – a0 + 2b1) cos x + (– b1x – 2a1 – b0) sin x,

x sin x = y” + y = 2b1 cos x – 2a1 sin x,
2b1 cos x – 2a1 sin x = x sin x.

Now the factor x in x sin x is a polynomial of degree 1, but there’s no polynomial of degree 1 as a factor in – 2a1 sin x. The
process of equating coefficients can’t be done. The trial PS y = (a1x + a0) cos x + (b1x + b0) sin x doesn’t work. Let’s find the
GS of the HE y” + y = 0. As done in Example 5.3, it’s y = c1 cos x + c2 sin x. The trial PS is:

y = (a1x + a0) cos x + (b1x + b0) sin x = a1x cos x + a0 cos x + b1x sin x + b0 sin x.

Clearly the terms a0 cos x and b0 sin x are solutions of the HE. They disappear from the x-expression of y” + y. So the trial
solution is the same as if it’s y = a1x cos x + b1x sin x. Let’s check:

y = a1x cos x + b1x sin x,
y‘ = a1 cos x – a1x sin x + b1 sin x + b1x cos x = (b1x + a1) cos x + (– a1x + b1) sin x,
y” = b1 cos x – (b1x + a1) sin x – a1 sin x + (– a1x + b1) cos x = (– a1x + 2b1) cos x + (– b1x – 2a1) sin x,

y” + y = 2b1 cos x – 2a1 sin x,

which is the same as found above. Indeed the trial solution is the same as if it’s y = a1x cos x + b1x sin x, which is
incomplete, and consequently doesn’t work.

Let’s multiply the initial trial solution by x to get the modified trial solution (a1x2 + a0x) cos x + (b1x2 + b0x) sin x. No term of
this modified trial solution is a solution of the HE. This modified trial solution works quite well, as shown in Example 5.5 below.

In the solution we of course first find the GS of the HE. If we observe that one or more terms of the initial trial PS g(x) of the
NHE are PSs of the HE, then we multiply g(x) by xn, where n is the smallest positive integer such that no term of xng(x) is a
solution of the HE, and we use the modified trial PS y = xng(x).

Example 5.5

Solve the equation y” + y = x sin x.

Solution

b1 = 0,     a1 = –1/4,     b0 = –2(–1/4)/2 = 1/4,     a0 = 0,
a PS of the NHE is y = (–1/4)x2 cos x + (1/4)x sin x.

So the GS of the given NHE is y = c1 cos x + c2 sin x + (–1/4)x2 cos x + (1/4)x sin x, or y = (c1 – (1/4)x2) cos x +
(c2 + (1/4)x) sin x.

EOS

Terms And Factors

Let’s recall the following terminology. In the expression:

y = ax2ex + bx sin 3x,

ax2ex and bx sin 3x are terms of y. In the expression:

y = ax2ex,

a, x2 (or x, as x2 = xx), and ex are factors of y.

In Example 5.5, the modified trial solution of the NHE is:

y = (a1x2 + a0x) cos x + (b1x2 + b0x) sin x = x2(a1 cos x + b1 sin x) + x(a0 cos x + b0 sin x).

The items a1 cos x, b1 sin x, a0 cos x, and b0 sin x are solutions of the HE, but they cause no problem, because they’re not
terms of y. (The terms are a1x2 cos x, b1x2 sin x, a0x cos x, and b0x sin x.)

In Example 5.2, the initial trial solution is y = aex, which is a solution of the HE. The modified trial solution is y = axex =
x(aex), where the factor aex is a solution of the HE, but it causes no problem, because it’s not a term of y. Similarly for
Examples 5.3 and 5.4.

Return To Top Of Page     Go To Problems & Solutions

We now recap the results of this section. Consider the NHE:

y” + by‘ + cy = f (x)

and its associated HE:

y” + by‘ + cy = 0.

Case 1. No part of the trial PS of the NHE is a solution of the HE. A PS of the NHE has the form of y as described in the table
below, where Pn(x) and Qn(x) are polynomials of degree n.

{6.1} Examples 4.2 and 4.3

{6.2} Example 5.1

{6.3} Example 4.4
{6.4} Example 4.5

{6.5} Example 4.6
{6.6} Example 4.8
{6.7} Example 4.9
{6.8} Example 4.10

Case 2. One or more terms of the initial trial PS of the NHE are solutions of the HE. Multiply the appropriate trial solution y in
the table above by xn, where n is the smallest positive integer such that no term of the obtained product is a solution of the HE.

Return To Top Of Page

1. Find the GS of y” + 4y‘ + 4y = 12.

Solution

For the GS of the HE y” + 4y‘ + 4y = 0, we have 42 – 4(4) = 0, –b/2 = –4/2 = –2, and the GS is y = c1e–2x + c2xe–2x.

For a PS of the given NHE y” + 4y‘ + 4y = 12, let’s try y = 12/4 = 3. Then y‘ = 0, y” = 0, and y” + 4y‘ + 4y = 0 + 4(0) + 4(3) =
12. So a PS of the NHE is y = 3.

Thus the GS of the NHE is y = c1e–2x + c2xe–2x + 3.

Return To Top Of Page

2. Determine the GS of y” – 3y‘ + 2y = x + 1.

Solution

Return To Top Of Page

3. Find the unique solution of the initial-value problem:

Solution

a2 = 1,     a1 = 1,     a0 = 1 – 2(1) = –1,
a PS is y = 1x2 + 1x – 1 or y = x2 + x – 1.

So the GS of the NHE is y = c1 cos x + c2 sin x + x2 + x – 1. Then y‘ = – c1 sin x + c2 cos x + 2x + 1. We have:

3 = y(0) = c1 cos 0 + c2 sin 0 + 02 + 0 – 1 = c1 – 1, c1 = 4,

1 = y‘(0) = – c1 sin 0 + c2 cos 0 + 2(0) + 1 = c2 + 1, c2 = 0.

Thus the required solution is y = 4 cos x + 0 sin x + x2 + x – 1, or y = 4 cos x + x2 + x – 1.

Return To Top Of Page

4. Solve y” – 3y‘ + 2y = 6e3x.

Solution

For a PS of the given NHE y” – 3y‘ + 2y = 6e3x, let y = ae3x. We have:

y = ae3x,     y‘ = 3ae3x,     y” = 9ae3x,

6e3x = y” – 3y‘ + 2y = 9ae3x – 3(3ae3x) + 2ae3x = 2ae3x,
2ae3x = 6e3x,
2a = 6,
a = 3,
a PS is y = 3e3x.

So the required GS is y = c1e2x + c2ex + 3e3x.

Return To Top Of Page

5. Find the GS of the equation y” + 4y = 3 sin x.

Solution

A = 0, B = 1,
a PS is y = 0 cos x + 1 sin x or y = sin x.

So the GS of the given NHE is y = c1 cos 2x + c2 sin 2x + sin x.

Return To Top Of Page

6. Determine the GS of the DE y” – 2y‘ = 2 sin x + 2e3x. Hint: use the principle of superposition.

Solution

For a PS of the NHE y” – 2y‘ = 2 sin x, let y = A cos x + B sin x. We have:

y = A cos x + B sin x,     y‘ = – A sin x + B cos x,     y” = – A cos x – B sin x,
2 sin x = y” – 2y‘ = (– A cos x – B sin x)­ ­– 2(– A sin x + B cos x) = (2A – B) sin x + (– A – 2B) cos x,
(2A – B) sin x + (– A – 2B) cos x = 2 sin x,

Return To Top Of Page

7. Solve the initial-value problem y” – 4y‘ + 4y = 6xe3x, y(0) = 0, y‘(0) = 3.

Solution

For the GS of the HE y” – 4y‘ + 4y = 0, we have (–4)2 – 4(4) = 0, –b/2 = –(–4)/2 = 2, and the GS is y = c1 e2x + c2xe2x.

For a PS of the given NHE, let y = (a1x + a0)e3x. We have:

y = (a1x + a0)e3x,
y‘ = a1e3x + 3(a1x + a0)e3x = (a1 + 3a0)e3x + 3a1xe3x,
y” = 3(a1 + 3a0)e3x + 3a1e3x + 9a1xe3x = (6a1 + 9a0)e3x + 9a1xe3x,
6xe3x = y” – 4y‘ + 4y = (6a1 + 9a0)e3x + 9a1xe3x – 4((a1 + 3a0)e3x + 3a1xe3x) + 4(a1x + a0)e3x = (a1x + 2a1 + a0)e3x,
(a1x + 2a1 + a0)e3x = 6xe3x,

a1x + 2a1 + a0 = 6x,

a1 = 6,     a0 = –2(6) = –12,
a PS of the NHE is y = (6x – 12)e3x, or y = 6(x – 2)e3x.

So the GS of the NHE is y = c1e2x + c2xe2x + 6(x – 2)e3x. We have:

0 = y(0) = c1e0 + 0 + 6(0 – 2)e0 = c1 – 12,     c1 = 12,
y‘ = 2c1e2x + c2e2x + 2c2xe2x + 6e3x + 18(x – 2)e3x = (2c1 + c2)e2x + 2c2xe2x + (18x – 30)e3x,
3 = y‘(0) = (2(12) + c2)e0 + 0 + (0 – 30)e0 = c2 – 6,     c2 = 9.

Thus the unique solution of the given initial-value problem is y = 12e2x + 9xe2x + 6(x – 2)e3x.

Return To Top Of Page

8. Solve the NHE y” + 4y = 16x sin 3x.

Solution

Return To Top Of Page

9. Find the GS of the NHDE y” + 4y‘ + 4y = e2x cos x.

Solution

For the GS of the HE y” + 4y‘ + 4y = 0, we have 42 – 4(4) = 0, –b/2 = –4/2 = –2, and the GS is y = c1e–2x + c2xe–2x.

For a PS of the given NHE, let y = e2x(A cos x + B sin x). We have:

y = e2x(A cos x + B sin x),
y‘ = 2e2x(A cos x + B sin x) + e2x(– A sin x + B cos x),
y” = 4e2x(A cos x + B sin x) + 2e2x(– A sin x + B cos x) + 2e2x(– A sin x + B cos x) + e2x(– A cos x – B sin x)
     = 4e2x(A cos x + B sin x) + 4e2x(– A sin x + B cos x) – e2x(A cos x + B sin x)
     = 3e2x(A cos x + B sin x) + 4e2x(– A sin x + B cos x),
4y‘ = 8e2x(A cos x + B sin x) + 4e2x(– A sin x + B cos x),
4y = 4e2x(A cos x + B sin x),
e2x cos x = y” + 4y‘ + 4y
              = 15e2x(A cos x + B sin x) + 8e2x(– A sin x + B cos x)
              = e2x((15A + 8B) cos x + (– 8A + 15B) sin x),
e2x((15A + 8B) cos x + (– 8A + 15B) sin x) = e2x cos x,
(15A + 8B) cos x + (– 8A + 15B) sin x = cos x,

[1] x 8:  120A + 64B = 8,  [3]
[2] x 15:  – 120A + 225B = 0,  [4]
[3] + [4]:  289B = 8, B = 8/289,
[1]:  A = (1 – 8(8/289))/15 = 15/289,
a PS of the NHE is y = e2x((15/289) cos x + (8/289) sin x).

So the GS of the given NHE is y = c1e–2x + c2xe–2x + e2x((15/289) cos x + (8/289) sin x).

Return To Top Of Page

10. Determine the GS of the equation y” + y‘ = 3x2.

Solution

a2 = 3/3 = 1, a1 = –6(1)/2 = –3, a0 = –2(–3) = 6,
a PS of the NHE is y = x3 – 3x2 + 6x.

So the GS of the given NHE is y = c1 + c2e–x + x3 – 3x2 + 6x.

Return To Top Of Page

11. Solve the DE y” + 4y = sin 2x.

Solution

B = 0, A = –1/4,
a PS of the NHE is y = –(1/4)x cos 2x.

Thus the GS of the given NHE is y = c1 cos 2x + c2 sin 2x – (1/4)x cos 2x, or y = (– (1/4)x + c1) cos 2x + c2 sin 2x.

Return To Top Of Page

12. Find the GS of x” – 4x‘ + 4x = e2t.

Solution

For the GS of the HE x” – 4x‘ + 4x = 0, we have (–4)2 – 4(4) = 0, –(–4)/2 = 2, and the GS of the HE is x = c1e2t + c2te2t.

For a PS of the given NHE. The functions x = ae2t and x = ate2t are PSs of the HE. So let’s try x = at2e2t. We have:

x = at2e2t,
x‘ = 2ate2t +2at2e2t = (2at2 + 2at)e2t,
x” = (4at + 2a)e2t + 2(2at2 + 2at)e2t = (4at2 + 8at + 2a)e2t,
–4x‘ = (– 8at2 – 8at)e2t,
4x = 4at2e2t,
e2t = x” – 4x‘ + 4x = 2ae2t,
2ae2t = e2t,
2a = 1,
a = 1/2,
a PS of the NHE is x = (1/2)t2e2t.

Thus the GS of the given NHE is x = c1e2t + c2te2t + (1/2)t2e2t, or x = ((1/2)t2 + c2t + c1)e2t.

Return To Top Of Page

       y” + by‘ + cy = f (x)

      has a PS that’s a polynomial of degree n.

Solution

Suppose:

Return To Top Of Page

14. Prove that the GS of the NHDE:

Solution

Return To Top Of Page     Return To Contents

26 Jun 2025 maximios
Equations

16.2.1 Equations With Constant Coefficients – Characteristic Equation

16.2.1
Equations With Constant Coefficients –
Characteristic Equation

Return To Contents
Go To Problems & Solutions

1. Second-Order Linear Homogeneous Differential Equations With
    Constant Coefficients

In this section, we’ll use the abbreviations:

“CE”

for

“characteristic equation”,

“DE”

for

“differential equation”,

“GS”

for

“general solution”, and

“PS”

for

“particular solution”.

In the differential equation:

y” + b(x)y‘ + c(x)y = q(x),

For example, the equations:

y” + 3y‘ – 2y = 0     and     y” – 5x2y‘ + 3e5xy = 0

are linear, while the equations:

y” + 3( y‘)3 – 2y2 = 0     and     y”y – 5x2y‘ + 3e5xy = 0

are non-linear.

The differential equation y” = f (x), as discussed in Section 16.1.1 Part 3, is a second-order linear one with constant
coefficients. For this equation, b(x) = c(x) = 0 and q(x) = f (x).

Definition 1.1 – Second-Order Linear Homogeneous Differential Equations With Constant
                          Coefficients

A differential equation of the form:

where b and c are constants, is called a second-order linear homogeneous differential equation with constant coefficients.

When The Coefficient Of y” Isn’t 1

The DE:

ay” + b1y‘ + c1y = 0,

where a isn’t 1 or 0, can be transformed into one of the form of Eq. [1.1] by dividing both sides by a:

So y1 is also a solution of ay” + b1 y‘ + c1 y = 0. Thus to solve ay” + b1 y‘ + c1 y = 0, where a isn’t 1 or 0, we first divide both
sides of it by a to get the form of Eq. [1.1].

Return To Top Of Page     Go To Problems & Solutions

A Particular Solution

Of course the second-order linear homogeneous DE with constant coefficients:

always has y = 0 as a PS (if y = 0 then y‘ = 0 and y” = 0 and thus y” + by‘ + cy = 0). Of course we’re interested in finding
non-0 solutions of this DE.

By Section 16.1.3 A Particular Case, the GS of the first-order linear DE y‘ + by = 0 is y = Ce–bx, where C is an arbitrary
constant. So a PS is y = e–bx. Thus it’s natural to wonder if Eq. [2.1] has a PS of the form:

Characteristic Equations

The quadratic equation:

Definition 2.1 – The Characteristic Equation

Given the differential equation:

is called the characteristic equation of the differential equation [2.2].

Solutions Obtained From Two Solutions

So the sum c1y1 + c2y2 is also a solution. We’ve proved the following theorem.

Theorem 2.1 – Solutions Obtained From Two Solutions

Suppose y1 and y2 are solutions of:

Then for any constants c1 and c2, the function:

y3 = c1 y1 + c2 y2

is also a solution of Eq. [2.4].

General Solution

Some PSs of the DE y‘ = 2x are y = x2, y = x2 + 10, or y = x2 – 5/4. Its GS is y = x2 + C, where C is an arbitrary constant. Recall that the GS of a DE is the solution that represents all the solutions, ie, every PS can be obtained from the GS by giving appropriate value(s) to the constant(s) present in the GS. This definition of course also applies to the GS of a second-order

linear homogeneous DE with constant coefficients.

Linear Independence And General Solution

Let y1 and y2 be 2 different solutions of Eq. [2.4]. Then, by Theorem 2.1, for any constants c1 and c2 the function c1y1 + c2y2 is
also a solution. That is, if a function is of the form c1y1 + c2y2 then it’s a solution. We wonder if the converse is true: if a
function is a solution, is it of the form c1y1 + c2y2? That is, is every solution of the form c1y1 + c2y2? That means, is c1y1 + c2y2
the GS? That is, can every solution be obtained from c1 y1 + c2 y2 by giving appropriate particular values to c1 and c2?

Suppose y1, y2, and y3 are solutions where y2 is a constant multiple of y1 but y3 isn’t a constant multiple of y1. So y2 = ky1,
where k is a constant other than 0 and 1. We have:

c1y1 + c2y2 = c1y1 + c2(ky1) = (c1 + c2k)y1 = Ky1,

where K = c1 + c2k, and any solution obtained from y1 and y2 can actually be obtained from y1 alone. Now c1y1 + c3y3 can’t be
reduced to the form Ly1, where L is constant, and any solution obtained from y1 and y3 must indeed be obtained from both y1
and y3; it can’t be obtained just from y1 alone.

Thus a PS that’s obtained from y1 and y3 where y3 isn’t a constant multiple of y1 can’t be obtained from y1 alone, ie it can’t be
obtained from y1 and y2 where y2 is a constant multiple of y1. Consequently c1y1 + c2y2 isn’t the GS if y2 is a constant multiple
of y1.

Also recall that if two vectors v1 and v2 in a plane are linearly independent, then any vector v3 in the same plane can be
expressed as a linear combination of v1 and v2: v3 = k1v1 + k2v2 for some constants k1 and k2. That is, the linear combination
c1v1 + c2v2, where c1 and c2 are arbitrary constants, represents all the vectors in that plane.

Analogously, two functions f (x) and g(x) are said to be linealy independent if none is a constant multiple of the other, ie if
there doesn’t exist a constant k such that f (x) = kg(x) for all x where both f (x) and g(x) are defined, ie if the ratio f (x)/g(x)
isn’t a constant, or if they have the following property: if c1 f (x) + c2 g(x) = 0, where c1 and c2 are constants, then c1 = c2 = 0.

The answer to our wondering is as follows. If y1 and y2 are particular linearly independent solutions of Eq. [2.4], then the GS
of Eq. [2.4] is y = c1y1 + c2y2, where c1 and c2 are arbitrary constants. The GS is a linear combination of the 2 particular linearly independent solutions. The proof of the following theorem is given in a course on differential equations and is omitted

here.

Theorem 2.2 – General Solution

If y1 and y2 are linearly independent particular solutions of the HE:

then the general solution of this equation is:

y = c1 y1 + c2 y2,

where c1 and c2 are arbitrary constants.

Remark 2.1

How about y = c1 y1 + c2 y2 + C, where C is also an arbitrary constant? Shouldn’t it instead be the general solution? Let’s find
out:

So y = c1 y1 + c2 y2 + C isn’t the general solution of y” + by‘ + cy = 0. The reason is that the general solution of a
second-order equation involves only two arbitrary constants, not three, and y = c1 y1 + c2 y2 already involves two, which are c1
and c2 .

Remark 2.2

Combining Theorems 2.1 and 2.2 we see that if y1 and y2 are solutions of y” + by‘ + cy = 0, then for any constants c1 and c2,
c1 y1 + c2 y2 is also a solution, and additionally if y1 and y2 are linearly independent, then for arbitrary constants c1 and c2 , c1 y1
+ c2 y2 is the GS.

Return To Top Of Page     Go To Problems & Solutions

3. The Method Of Characteristic Equation

Recall that to solve a DE is to find its GS. Let’s discuss the solving of our equation:

General Solution If b2 – 4c > 0

If b2 – 4c > 0, then the CE of Eq. [3.1] has 2 distinct real roots:

where c1 and c2 are arbitrary constants.

General Solution If b2 – 4c = 0

If b2 – 4c = 0, then the CE of Eq. [3.1] has 2 equal real roots:

divide both sides by u‘y1:

y2 = uy1 = (Cx + K)e–(b/2)x.

Let’s check that y2 is indeed a solution of Eq. [3.1]:

y = c1e–(b/2)x + c2xe–(b/2)x,

where c1 and c2 are arbitrary constants.

General Solution If b2 – 4c < 0

If b2 – 4c < 0, then the CE of Eq. [3.1] has 2 imaginary roots:

where c1 and c2 are arbitrary constants.

In Section 15.3 Problem & Solution 8, we established Euler formula:

eix = cos x + i sin x.

Thus the GS can be written as:

where c1 and c2 are arbitray constants.

General Solution Of y” + by‘ + cy = 0

All the above discussion shows that we’ve proved the following theorem. The above procedure relies on the characteristic
equation, and thus is called the method of characteristic equation. Recall that the GS of a DE is such that every PS of the
DE can be obtained from it by assigning appropriate values to the constants present in it.

Theorem 3.1 – General Solution Of  y” + by‘ + cy = 0

Consider the second-order linear homogeneous differential equation with constant coefficients:

and let c1 and c2 be arbitrary constants. By the method of characteristic equation:

    and the general solution of the differential equation is:

Remarks 3.1

a. Once we’ve found 2 linearly independent solutions of Eq. [3.2], we’ve essentially found all  the solutions of that equation.

b. The GS of Eq. [3.2] always involves the exponential function ekx, where k is a real number.
c. Eq. [3.2] has infinitely many solutions.

Example 3.1

Find the GS of the DE y” – 3y‘ + 2y = 0.

Solution
(–3)2 – 4(2) = 1,

the GS is:

y = c1e2x + c2ex,

where c1 and c2 are arbitrary constants.
EOS

Example 3.2

Note

Recall that to solve a DE is to find its GS.

Solution

where c1 and c2 are arbitrary constants.
EOS

Remark 3.2

When the letter x is used for the function, of course we can’t use it also for the variable, we must use another letter. Usually
when the function is x, it’s customary that the variable is t.

Example 3.3

Solve the equation w” + w‘ + w = 0.

Solution
12 – 4(1) = –3,

where c1 and c2 are arbitrary constants.
EOS

Remark 3.3

When a letter other than x, whatever it is, is used for the function, we can always use the letter x for the variable.

Return To Top Of Page     Go To Problems & Solutions

4. For Initial-Value Problems

As seen in Section 16.1.1 Remarks 4.1, an initial-value problem involving a first-order DE specifies 1 initial condition. As seen in
the same section Remarks 4.2, an initial-value problem involving a second-order DE specifies 2 initial conditions. The DE y” +
by‘ + cy is of second order, and so an intial-value problem involving it specifies 2 initial conditions. This fact is also clear from
the form of the equation’s GS: y = c1y1 + c2y2, where there are 2 constants c1 and c2 to be determined to get a PS. To solve an
initial-value problem is to find the PS of the DE that satisfies the conditions.

Example 4.1

Solve the initial-value problem:

Solution
32 – 4(–10) = 49,

EOS

Remark 4.1

In Example 3.1, we differentiate the GS, use the condition y‘(0) = 3 to get an equation in c1 and c2, use the condition y(0) = 1
to get another equation in c1 and c2, obtain a system of 2 simultaneous equations in 2 unknowns c1 and c2, solve it, obtain a
unique set of solutions, and thus obtain a unique PS of the given initial-value problem.

In general, the second-order linear DE y” + by‘ + cy = 0 has infinitely many PSs, but when 2 initial conditions are imposed, there’s only 1 PS that satisfies the conditions. Note that for a second-order equation, there are 2 initial conditions, which are on

y‘ and y (= y(0)).

Theorem 4.1 – Existence And Uniqueness Of A Solution

The solution of the initial-value problem:

where x0, k0, and k1 are real numbers, exists and is unique.

This theorem is a special case where n = 2 of the general theorem that asserts that the solution of an initial-value problem
involving an nth-order linear DE:

y(n) + pn–1(x)y(n–1) + pn–2(x)y(n–2) + … + p2(x)y” + p1(x)y‘ + p0(x)y = q(x)

and n initial conditions:

y(x0) = k0,     y‘(x0) = k1,     y”(x0) = k2,     …,     y(n–2)(x0) = kn–2,     y(n–1)(x0) = kn–1,

exists and is unique provided the functions pi(x)’s and q(x) are continuous on a neighborhood of x0. This general theorem is
presented and proved in a course on differential equations. Remark that for an nth-order equation, there are n conditions,
which are on y (= y(0)) thru to y(n–1).

Example 4.2

Solve the following initial-value problem:

Solution
02 – 4(1) = – 4,

c1 = –1,

the desired PS is y = (–1) cos x + (0) sin x, or y = – cos x.
EOS

Return To Top Of Page

1. Find the GS of the DE 4y” + 12y‘ + 5y = 0.

Solution

y = c1e–(1/2)x + c2e–(5/2)x.

Return To Top Of Page

2. Solve the DE x” – 8x‘ + 16x = 0.

Solution

(–8)2 – 4(16) = 0,

Return To Top Of Page

3. Solve the equation y” + 3y = 0.

Solution

02 – 4(3) = – 12,

Return To Top Of Page

4. Find the solution of the initial-value problem:

Solution

(–5)2 – 4(6) = 1,

y = c1e3x + c2e2x,
1 = y(0) = c1e0 + c2e0 = c1 + c2,     c1 + c2 = 1,  [1]
y‘ = 3c1e3x + 2c2e2x,
–1 = y‘(0) = 3c1e0 + 2c2e0 = 3c1 + 2c2,     3c1 + 2c2 = –1,  [2]
[1] x (–3):  – 3c1 – 3c2 = –3,  [3]
[2] + [3]:  – c2 = – 4,
c2 = 4,
[1]:  c1 = 1 – c2 = 1 – 4 = –3,
y = – 3e3x + 4e2x, or y = 4e2x – 3e3x.

Return To Top Of Page

5. Solve the following initial-value problem:

Solution

4v” + 20v‘ + 25v = 0,

Return To Top Of Page

6. Solve this initial-value problem:

Solution

02 – 4(4) = –16,

c2 = –4/2 = –2,

y = 3 cos 2x – 2 sin 2x.

Return To Top Of Page

7. Consider the DE:

    y‘ + y2 + cy + d = 0,

    where c and d are constants. It’s a first-order non-linear equation. Observe that the exponents of y decrease from 2 to 1 to
    0 and that the coefficient of y2 is 1.

a. Transform the given y-equation into a second-order linear homogeneous z-equation with constant coefficients by letting z
    be a function such that z‘/z = y.

b. Prove that if z is the GS of the z-equation found in part a and y = z‘/z, then y is the GS of the y-equation.

c. Prove that the GS of the y-equation, which is of first-order, indeed involves only 1 arbitrary constant.

Solution

a. Let z be a function such that z‘/z = y. Then:

    Thus, by part a, w is a solution of the z-equation, and, by part b, w is a PS of the z-equation, for if it’s the GS of the
    z-equation then v would be the GS of the y-equation, a contradiction. Since z is the GS of the z-equation which is
    second-order linear homogeneous with constant coefficients, we have:

    z = c1z1 + c2z2,

    where z1 and z2 are linearly independent PSs of the z-equation and c1 and c2 are arbitrary constants. As a consequence:

    w = k1z1 + k2z2,

    where k1 and k2 are particular constants. Then:

Return To Top Of Page     Return To Contents

26 Jun 2025 maximios
Equations

16.2.2 Equations With Variable Coefficients – Reduction Of Order

16.2.2
Equations With Variable Coefficients – Reduction Of Order

Return To Contents
Go To Problems & Solutions

1. Second-Order Linear Homogeneous Differential Equations With
    Variable Coefficients

In this section, we’ll use the abbreviations:

“DE”

for

“differential equation”,

“GS”

for

“general solution”,

“HDE”

for

“homogeneous differential equation”, and

“HE”

for

“homogeneous equation”.

Recall that a second-order linear homogeneous differential equation with constant coefficients is one of the form:

y” + by‘ + cy = 0,

where the coefficients b and c are constants. When b is replaced by a non-constant function b(x) or c is replaced by a
non-constant function c(x) or both, one or both coefficients of course vary, they become variable. So naturally an equation of
the form:

y” + b(x) y‘ + c(x) y = 0,

where b(x) or c(x) or both are non-constant functions of x, is said to be an equation with variable coefficients. Note that x is
the independent variable of the function y, and thus of the functions y‘ and y” also. All the functions in the equation are of the same variable.

Definition 1.1 – Second-Order Linear Homogeneous Differential Equations With Variable
                          Coefficients

A differential equation of the form:

where b(x) or c(x) or both are non-constant functions, is called a second-order linear homogeneous
differential equation with variable coefficients
.

Recall that while the equation is linear, each function y, y‘, and y” doesn’t have to be linear. For example, y = 2x + 3 is linear
while y = x2 + 3 and y = e2x + 3 aren’t.

Return To Top Of Page     Go To Problems & Solutions

Just like the GS of the constant-coefficients HE:

y” + by‘ + cy = 0

as presented in Section 16.2.1 Theorem 2.2, the GS of the variable-coefficients HE:

y” + b(x) y‘ + c(x) y = 0

is the linear combination of any two of its linearly independent PSs. The proof of the following theorem is given in a course on
differential equations and is omitted here.

Theorem 2.1 – General Solution

If y1 and y2 are linearly independent particular solutions of the HE:

y” + b(x) y‘ + c(x) y = 0,

then the GS of this equation is:

y = c1 y1 + c2 y2,

where c1 and c2 are arbitrary constants.

Return To Top Of Page     Go To Problems & Solutions

3. The Method Of Reduction Of Order

Recall that to solve a DE is to find its GS. Let’s discuss the solving of our equation:

By Theorem 2.1, we obtain the GS of Eq. [3.1] provided we get two linearly independent solutions y1 and y2 of this equation.
The GS is then given by the linear combination:

y = c1 y1 + c2 y2,

where c1 and c2 are arbitrary constants. Clearly y1 = 0 is a solution. But it’s not linearly independent of any other solution (0 =
0y2 whatever y2 is). So of course we’re interested in non-0 solutions.

Unlike the case of constant-coefficients HEs as developed in Section 16.2.1 Part 3, there’s no standard procedure to find two
linearly independent solutions y1 and y2 of the variable-coefficients HE [3.1]. However, there’s a general procedure for finding
another solution if one solution is known. It’s often possible to find one solution by inspecting the equation or by trial and error.

Let y1 be a non-0 solution of Eq. [3.1]. If y2 is another solution that’s linearly independent of y1, then y2/y1 isn’t a constant.
Thus:

Indeed y2 is a solution. Now let’s verify that it’s linearly independent of y1. We have:

We’ve reduced a second-order equation to a first-order equation. The order of the derivative is reduced. So this approach of
using one solution to find another is called the method of reduction of order.

We’ve of course proved the following theorem.

Theorem 3.1 –A Solution By The Method Of Reduction Of Order

Suppose y1 is a solution of the DE:

where c1 and c2 are arbitrary constants.

Remark 3.1
Example 3.1

Consider the DE:

x2y” – xy‘ + y = 0,     x > 0,

a. Verify that y1 = x is a solution.

b. Find a second solution y2 that’s linearly independent of y1 by using the formula obtained by the method of reduction of order.
c. Find y2 by imitating the method of reduction of order itself, not using the formula obtained by it.
d. Are the answers in parts b and c the same?
e. Verify that y2 is indeed a solution that’s linearly independent of y1.

Solution

    xu” + u‘ = 0,
    divide both sides by xu‘:

     y2 = uy1 = (ln x) x = x ln x.

d. Yes.

    Since ln x isn’t a constant, y2 is linearly independent of y1. Thus indeed y2 is a solution that’s linearly independent of y1.

EOS

Remarks 3.2 – About Example 3.1

a. In part b, we utilize the formula for y2, which contains the function b(x), so we should write the given equation in the form
    y” + b(x) y‘ + c(x) y = 0 (coefficient of y” is 1), so that it’s clear what b(x) is. Caution: b(x) isn’t –x, it’s –1/x.

b. Part c illustrates the following general procedure of the method of reduction of order:

    – let y2 = uy1 = g(x)u, where y1 = g(x), use g(x) only, not y1,
    – substitute y2 = g(x)u into the original equation,
    – transform the term containing u” in an equation into the term u”/u‘ by division,

    – let v = u‘,
    – find v, then u, then y2, see Fig. 3.1.

Process From y2 To u To v Then Back To u To y2.

d. If we’re not asked to verify a solution, then we don’t have to verify.

Remark 3.3

It’s recommended that you remember the procedure of the method of reduction of order, as outlined in part b of Remarks 3.2 above. In case you forget its formula or don’t remember the formula clearly, you can utilize the procedure of the method.

Sometimes you may even be required to use the method itself, not the formula obtained by it.

Choosing y2

Suppose it’s determined that y2 is a constant multiple of a function, ie that it’s of the form y2 = k f (x), where k is a non-0
constant. For example, y2 = 5x3 or y2 = –3(sin 2x + 7e4x). We now verify that f (x) is also a solution that’s linearly independent
of y1. We have:

which isn’t constant, since y2/y1 isn’t. Thus f (x) is linearly independent of y1. That completes the verification.

We’ve shown that if k f (x), where k is a non-0 constant, is a solution that’s linearly independent of y1, then so is f (x). We
conclude that if we determine that y2 = k f (x), then it’s possible to simply choose y2 = f (x).

Let’s look at this possibility from another angle. If y2 = k f (x), then the GS is y = c1y1 + c2k f (x). Re-using the letter c2 for the
product c2k, which is valid because this product, just like the factor c2 in it, is an arbitrary constant, the GS is y = c1y1 +
c2 f (x). This is the same as simply choosing y2 = f (x).

Example 3.2

One solution of the DE:

xy” – y‘ + 4x3y = 0,     x > 0,

is y1 = sin (x2). Solve the equation.

Solution
xy” – y‘ + 4x3y = 0,

Let u = x2. So du = 2x dx. Then:

So, choosing y2 = cos (x2), the GS is y = c1 sin (x2) + c2 cos (x2).
EOS

Return To Top Of Page     Go To Problems & Solutions

4. For Constant-Coefficients Equations

The procedure of the method of reduction of order doesn’t require that the coefficients be variable functions. So the method
also applies to constant-coefficients equations.

Example 4.1

Consider the constant-coefficients DE:

y” + 5y‘ + 6y = 0.

a. Solve it by using the method of characteristic equation.
b. Given that one solution is y1 = e–2x, solve it by using the method of reduction of order.
c. Are the answers in parts a and b the same?

Solution

     So, choosing y2 = e–3x, the GS is y = c1e–2x + c2e–3x.

c. Yes.
EOS

Return To Top Of Page

1. Consider the Legendre equation of order 1:

    (1 – x2) y” – 2xy‘ + 2y = 0,     |x| < 1.

    a. Verify that y1 = x is a solution.

    b. Find a second solution y2 that’s linearly independent of y1 by using the formula obtained by the method of reduction of order.
    c. Find y2 by imitating the method of reduction of order itself, not using the formula obtained by it.
    d. Are the answers in parts b and c the same?
    e. Verify that y2 is indeed a solution that’s linearly independent of y1.

Solution

    Let u = 1 – x2. So du = –2x dx. Then:

    Using the method of partial fractions we have:

     C = 0,
     D = –1,
     0 = A + B + C = A + B + 0 = A + B,     B = –A,
     0 = – A + B + D = – A – A – 1 = – 2A – 1,     A = –1/2,
     B = –(–1/2) = 1/2,

    Using the method of partial fractions we have:

    Using the method of partial fractions we have:

d. Yes.

e) Let’s show that y2 is a solution:

    So indeed y2 is a solution. Now let’s show that it’s linearly independent of y1:

    which clearly isn’t constant. Thus indeed y2 is linearly independent of y1.

Return To Top Of Page

2. Consider the DE:

    x2y” – 2xy‘ + (x2 + 2) y = 0,     x > 0.

    a. Verify that y1 = x sin x is a solution.
    b. Solve the equation.

Solution

    Choose y2 = x cos x. So the GS of the given equation is y = c1 x sin x + c2 x cos x, or:

    y = x(A cos x + B sin x),

    where A = c2 and B = c1 are arbitrary constants.

Return To Top Of Page

3. Consider the constant-coefficients DE:

    y” + y‘ + 7y = 0.

a. Verify that:

    is a solution.

b. Use y1 to solve the equation.

Note

We’re required to use y1 to solve the equation. So we can’t apply the method of characteristic equation, which doesn’t use y1.
We must apply the method of reduction of order, which uses y1 to find y2.

Solution

    Indeed y1 is a solution.

b. Let y2 be another solution that’s linearly independent of y1. Then by the method of reduction of order we have:

    where A = c2 and B = c1 are arbitrary constants.

Return To Top Of Page

4. Consider the Bessel DE:

    x2y” + xy‘ + (x2 – p2) y = 0,     p a constant.

    For p = 1/2 and x > 0:

b. Solve the equation.

Solution

a. When p = 1/2 the given equation becomes:

    where A and B are arbitrary constants.

Return To Top Of Page

5. Given the DE:

    xy” – (x + n) y‘ + ny = 0,     x > 0,     integer constant n > 0,

    verify that y1 = ex is a solution and determine another solution linearly independent of y1.

Solution

Let’s verify that y1 is a solution. We have:

Thus:

In = – xne–x + nIn–1

   = – e–x(xn) + n(– xn–1e–x + (n – 1)In–2)

   = – e–x(xn + nxn–1) + n(n – 1)(– xn–2e–x + (n – 2)In–3)

   = – e–x(xn + nxn–1 + n(n – 1)xn–2) + n(n – 1)(n – 2)(– xn–3e–x + (n – 3)In–4)

   = – e–x(xn + nxn–1 + n(n – 1)xn–2 + n(n – 1)(n – 2)xn–3) + n(n – 1)(n –2)(n – 3)(– xn–4e–x + (n – 4)In–5)

Return To Top Of Page     Return To Contents

26 Jun 2025 maximios
Equations

16.3.2 Equations With Variable Coefficients – Variation Of Parameters

16.3.2
Equations With Variable Coefficients – Variation Of
Parameters

Return To Contents
Go To Problems & Solutions

1. Second-Order Linear Non-Homogeneous Differential Equations With  
    Variable Coefficients

In this section, we’ll use the abbreviations:

“DE”

for

“differential equation”,

“GS”

for

“general solution”,

“HDE”

for

“homogeneous differential equation”,

“HE”

for

“homogeneous equation”,

“NHDE”

for

“non-homogeneous differential equation”,

“NHE”

for

“non-homogeneous equation”, and

“PS”

for

“particular solution”.

Recall that a second-order linear homogeneous differential equation with variable coefficients is one of the form:

y” + b(x) y‘ + c(x) y = 0,

where b(x) or c(x) or both are non-constant functions of x. So of course when the right-hand side is a function f (x) instead of 0, the equation becomes non-homogeneous.

Definition 1.1 – Second-Order Linear Non-Homogeneous Differential Equations With
                        
 Variable Coefficients

A differential equation of the form:

where b(x) or c(x) or both are non-constant continuous functions and where f (x) is a non-0 continuous function, is
called a second-order linear non-homogeneous differential equation with variable coefficients.

Recall that while the equation is linear (in y, y‘, and y”), each function y, y‘, and y” doesn’t have to be linear. For example, y =
2x + 3 is linear while y = x2 + 3 and y = e2x + 3 aren’t. Neither do the functions b(x), c(x), and f (x).

Return To Top Of Page     Go To Problems & Solutions

Similar to the case of constant-coefficients equations as presented in Section 16.3.1 Theorem 2.1, the GS of a NHDE equals the
GS of the corresponding HDE plus a PS of the NHDE.

Theorem 2.1 – General Solutions Of The Non-Homogeneous Equations

Let:

((GS Of NHE) = (GS Of HE) + (A PS Of NHE)).

Return To Top Of Page     Go To Problems & Solutions

3. The Method Of Variation Of Parameters

The solving of a HE with variable coefficients is discussed in Section 16.2.2. So now we develop a procedure to find a PS of a
NHE with variable coefficients, called the method of variation of parameters.

Observation On Solutions Of First-Order Equations

In Section 16.1.3, we present a method to solve the first-order DE y‘ + p(x) y = q(x). Let’s use this method to solve y‘ + p(x) y
= 0:

We’ve just shown that the GS of the HE:

y‘ + p(x) y = 0

is:

where u is a function. We observe that the GS of the NHE is obtained from the GS of the corresponding HE by replacing the
constant C by a function u.

The Method Of Variation Of Parameters

Let y1 and y2 be two linearly independents PSs of the second-order HE:

{3.1} Problem & Solution 7

Of course yp is a solution of the NHE [3.3] if Eq. [3.6] is satisfied and if:

We need only one yp, hence only one u1 and one u2; we choose the simplest ones by setting the constants of integration for u1
and u2 to 0. Anyway, lets’ see what happens if the constants of integration are some k1 and k2 respectively. Suppose:

u1 = h1(x) + k1     and     u2 = h2(x) + k2.

Then:

yp = u1 y1 + u2 y2 = (h1(x) + k1) y1 + (h2(x) + k2) y2 = h1(x) y1 + h2(x) y2 + (k1y1 + k2y2).

But k1y1 + k2y2 is a PS of the HE [3.1]. It follows that when we substitute the expression for yp into the NHE [3.3], all the terms
containing k1 or k2 sum up to 0 ((k1 y1 + k2 y2)” + b(x)(k1 y1 + k2 y2)’ + c(x)(k1 y1 + k2 y2) = 0). It follows that choosing the
constants of integration to be any k1 and k2 yields the same PS yp of the NHE as choosing them both to be 0.

The above procedure replaces constants or parameters c1 and c2 in the GS of a HE by variables u1 and u2 respectively to obtain
a PS of the corresponding NHE. Hence it’s called the method of variation of parameters or the method of variation of
constants
. It’s also called the Lagrange method, as it’s due to the French mathematician Joseph Louis Lagrange (1736 –
1813).

We’ve essentially proved the following theorem.

Theorem 3.1 – Solutions Of Non-Homogeneous Equations By The Method Of Variation Of
                       
 Parameters

Consider the non-homogeneous equation:

Then:

where c1 and c2 are arbitrary constants.

Remarks 3.1

a. Note that yh = c1 y1 + c2 y2 is the GS of the HE [3.12] and remember that yp = u1 y1 + u2 y2 is a PS of the corresponding NHE
    [3.11]. A PS of the NHE is built on 2 linearly independent PSs of the corresponding HE.

b. A PS yp of the NHE is yp = u1y1 + u2y2, where y1 and y2 are linearly independent PSs of the HE. The unknowns in the system
    of equations obtained are the derivatives of u1 and u2, not u1 and u2.

c. The method of variation of parameters first finds a PS of a NHE, then adds it to the GS of the associated HE to obtain the GS
    of the NHE.

Example 3.1

Consider the NHE:

a. Verify that y1 = x and y2 = 1/x are linearly independent solutions of the homogeneous counterpart of the given equation.

b. Solve the given equation.

Solution
 

 

    which of course isn’t a constant. Thus y1 = x and y2 = 1/x are linearly independent.

 

b. Let yp = u1y1 + u2y2 = u1x + u2/x be a PS of the given NHE. We have:

 

 

    using partial fractions:

 

 

where c1 and c2 are arbitrary constants.
EOS

Remark 3.2

In integrating to get u1 and u2, we choose u1 and u2 with the constants of integration equal to 0. Remember we need only one
PS yp = u1y1 + u2 y2, and so we need only one u1 and one u2. We choose the simplest u1 and u2, the ones with the constants of
integration equal to 0.

Return To Top Of Page     Go To Problems & Solutions

4. For Non-Homogeneous Equations With Constant Coefficients

The procedure of the method of variation of parameters doesn’t require that the coefficients be variable functions. So the
method also applies to NHEs with constant coefficients.

Example 4.1

Consider the constant-coefficients NHE:

y” – y = e2x.

a. Solve the corresponding HE y” – y = 0.
b. Solve the NHE by the method of undetermined coefficients.
c. Solve the NHE by the method of variation of parameters.
d. Are the answers in parts b and c the same?

Note

For part a, we use the method of characteristic equation; see Section 16.2.1 Theorem 3.1.

Solution

d. Yes.
EOS

When The Right-Hand Side Isn’t In The Right Form

For constant-coefficients NHE, the method of undetermined coefficients applies efficiently only when the right-hand side of the
constant-coefficients NHE:

y” + by‘ + cy = f (x),

namely the function f (x), is in the right form. See the table in Section 16.3.1 Part 6. When f (x) isn’t in the right form, another
method, for example the method of variation of parameters, is necessary.

Example 4.2

Solve the DE y” + y = tan x.

Solution

The GS of the NHE is y = c1 cos x + c2 sin x + (sin x – ln |sec x + tan x|) cos x – cos x sin x, or:

y = c1 cos x + c2 sin x – cos x ln |sec x + tan x|).
EOS

Remarks 4.1

Return To Top Of Page     Go To Problems & Solutions

5. Various Types Of Equations And Various Methods

We now summarize the types of second-order linear DEs and the methods used to solve them that have been discussed in this
chapter. In the two tables below, we use the following abbreviations:

“coeff”

for

“coefficients”,

“const”

for

“constant”, and

“var”

for

“variable”.

{5.1} Section 16.2.1 Theorem 3.1
{5.2} Section 16.2.2 Part 4

{5.3} Section 16.3.1 Theorem 3.1

{5.4} Section 16.3.1 Part 6

{5.5} Part 4
{5.6} Theorem 3.1

We now summarize the methods and their uses.

{5.7} Section 16.2.1 Theorem 3.1

{5.8} Section 16.2.2 Part 4 and Theorem 3.1 Of Same Section

{5.9} Section 16.3.1 Part 6

{5.10} Part 4 and Theorem 3.1

Return To Top Of Page

1. Consider the NHE:

a. Verify that y1 = x and y2 = x2 are linearly independent solutions of the homogeneous counterpart of the above equation.
b. Solve the above equation.

Solution

    using integration by parts we have:

Return To Top Of Page

2. Consider the constant-coefficients NHE:

     y” – 3y‘ + 2y = 6e3x.

a. Solve the corresponding HE y” – 3y‘ + 2y = 0.
b. Solve the NHE by the method of undetermined coefficients.
c. Solve the NHE by the method of variation of parameters.
d. Are the answers in parts b and c the same?

Solution

   The GS of the NHE is y = c1ex + c2e2x – 3e2xex + 6exe2x = c1ex + c2e2x + 3e3x.

d. Yes

Return To Top Of Page

3. Consider the constant-coefficients NHE:

     y” + 4y = 3 sin x.

a. Solve the corresponding HE y” + 4y = 0.
b. Solve the NHE by the method of undetermined coefficients.
c. Solve the NHE by the method of variation of parameters.

Solution

    So the GS of the NHE is y = A cos 2x + B sin 2x + sin x.

Return To Top Of Page

4. Find the GS of the constant-coefficients NHE:

    y” + 4y = 16x sin 2x.

   See also Problem & Solution 5.

Note

When finding a PS of a constant-coefficients NHE, if f (x) is in the right form for the method of undetermined coefficients and if we’re not asked to use the method of variation of parameters, we should try the method of undetermined coefficients, since it

doesn’t involve integration. However for this method, we have to remember the correct form of the working trial PS.

Solution

b1 = 0,     a1 = 16/(–8) = –2,     a0 = –2(0)/(–4) = 0,     b0 = –2(–2)/4 = 1,
yp = ((–2)x2 + 0x) cos 2x + (0x2 + 1x) sin 2x = – 2x2 cos 2x + x sin 2x.

Consequently the GS of the NHE is y = A cos 2x + B sin 2x – 2x2 cos 2x + x sin 2x = (– 2x2 + A) cos 2x + (x + B) sin 2x.

Return To Top Of Page

5. Prove by using the method of variation of parameters that the GS of the constant-coefficients NHE:

     y” + 4y = 16x sin 2x

    is:

     y = (– 2x2 + A) cos 2x + (x + B) sin 2x,

     where A and B are arbitrary constants. See also Problem & Solution 4.

Solution

Then:

Because A + 1/4 is an arbitrary constant just like A, let’s re-use the letter A for A + 1/4. Therefore the GS of the NHE is:

y = (– 2x2 + A) cos 2x + (x + B) sin 2x.

Note

In Problem & Solution 4, a PS of the equation y” + 4y = 16x sin 2x is found to be yp = – 2x2 cos 2x + x sin 2x. In this Problem
& Solution 5, a PS of the same equation is found to be yp = (– 2x2 + 1/4) cos 2x + x sin 2x. It’s easy to verify that they both
indeed are solutions of the mentioned equation.

Return To Top Of Page

6. Determine the GS of the constant-coefficients NHE:

Note

Here f (x) isn’t in the right form for the method of undetermined coefficients. So we won’t waste our time trying that method. We
have to employ the method of variation of parameters.

Solution

So the GS of the NHE is:

y = c1ex + c2xex – ex ln |1 – x| – ex = ex(c1 + c2x – ln |1 – x| – 1) = ex(c1 + c2x – ln |1 – x|),

where we re-use the letter c1 for the arbitray constant c1 – 1.

Return To Top Of Page

7. We now prove that the PS yp = u1 y1 + u2 y2 of the NHE y” + b(x) y‘ + c(x) y = f (x), where y1 and y2 are linearly
    independent PSs of the homogeneous counterpart of this DE, doesn’t depend on the expression:

    that’s in Eq. [3.5] and that we set equal to 0 as done in Eq. [3.6], for which the PS is:

c. Prove that:

Solution

Return To Top Of Page     Return To Contents

8 Jun 2025 maximios
Equations

6.2.2 Differentiation Of The Inverse Trigonometric Functions

Calculus Of One Real Variable – By Pheng Kim Ving
Chapter 6: The Trigonometric Functions And Their Inverses – Section 6.2.2: Differentiation Of The Inverse
Trigonometric Functions

6.2.2
Differentiation Of The Inverse Trigonometric
Functions

Return To Contents
Go To Problems & Solutions

The Derivatives Of Arcsine And Arccosine

Consequently:

Similarly:

Remark that (d/dx) arccos x is the negative of (d/dx) arcsin x.

The Derivatives Of Arctangent And Arccotangent

Note that Eq. [1.3] is valid for all x in R. This is consistent with the fact that dom(arctan x) is R.

Similarly:

Remark that (d/dx) arccot x is the negative of (d/dx) arctan x.

The Derivatives Of Arcsecant And Arccosecant

So, since sec y = x, we obtain:

Similarly:

Remark that (d/dx) arccsc x is the negative of (d/dx) arcsec x.

Example 1.1

Differentiate each of the following functions, simplifying the answer when appropriate.

Solution

EOS

Go To Problems & Solutions     Return To Top Of Page

2. Relationships Between Inverse Trigonometric Functions

for all x in (–1, 1). We saw in Section 4.1 Theorem 6.1 that if a function f is continuous on [a, b] and its derivative is 0 on

Go To Problems & Solutions     Return To Top Of Page

3. Avoiding Confusions In Memorizing The Derivatives

We observe that:

As for (d/dx) arctan x, there should be no confusion with any other derivative.

Go To Problems & Solutions     Return To Top Of Page

4. Why Bother With All Of These “Inverse” Stuffs?

The derivative of arcsin x is:

We’ve got three new antiderivatives: arcsin, arctan, and arcsec. Well, that’s why we bother with all of these “ inverse”
stuffs.

Note that we didn’t “ boast ” about the derivatives of the inverse cofunctions arccos x, arccot x, and arccsc x. The reason
is that they’re simply the negatives of the derivatives of arcsin x, arctan x, and arcsec x respectively, as observed in Part
3, and thus provide no new antiderivatives. For example, we know that:

Return To Top Of Page

1. Find the derivative of each of the following functions, simplifying the answer when appropriate.

  

Solution

Return To Top Of Page

2. Find an equation of the line tangent to the curve y = arcsin(x/2) at the point x = –1.

Solution

Return To Top Of Page

3.  Let f(x) = sin arcsin x.

     a. Show that f ‘(x) = 1 by calculating it directly from the given expression.
     b. Simplify f(x). Find f ‘(x) using this simplified form of f(x).
     c. Sketch a graph of f(x).

Note:  Also see Problem & Solution 4.

Solution

c. The domain of f is [–1, 1]; its range is also [–1, 1].

Return To Top Of Page

4. Let f(x) = arcsin sin x.

     a. Show that:

        

         where k is any integer, by calculating f ‘(x) directly from the given expression.
     b. Simplify f(x). Find f ‘(x) using this simplified form of f(x).
     c. Sketch a graph of f(x).

Note.  Also see Problem & Solution 3.

Solution

a. We have:

   

    It follows that:

   

c.

  

Return To Top Of Page

5.  A careless mathematics professor asked his calculus class on their final examination to find dy/dx if y = arccos (1 +
     x2). What’s wrong with this problem?

Solution

Return To Top Of Page     Return To Contents

6 Jun 2025 maximios
Equations

10.3 Integration Of Trigonometric Functions

10.3
Integration Of Trigonometric Functions

Return To Contents

Go To Problems & Solutions

1. Basic Trigonometric Integrals

Recall from Section 10.1 Part 4 that:

For sec x:

We group the basic trigonometric integrals together here in the following box.

Example 1.1

Evaluate:

Solution

EOS

Go To Problems & Solutions     Return To Top Of Page

2. Trigonometric Substitution

Evaluate:

Solution

Let u = sin 3x. Then du = 3 cos 3x dx, so that cos 3x dx = (1/3) du. Thus:

EOS

The substitution u = sin 3x involves a trigonometric function, and as a consequence is called a trigonometric
substitution
.

Example 2.2

Find:

Solution

Let u = x2. Then du = 2x dx, so that x dx = (1/2) du. Thus:

EOS

The substitution u = x2 doesn’t involve any trigonometric function. There’s no trigonometric substitution. Integrals
involving trigonometric functions aren’t always handled by using a trigonometric substitution.

Note that sin x2 = sin (x2), the sine of x2, not (sin x)2, denoted sin2 x, the square of sin x.

Return To Top Of Page

1. Evaluate:

    

Solution

Let u = 1 + sin x. So du = cos x dx. Thus:

Return To Top Of Page

2. Calculate:

    

Solution

Let u = ln t. So du = (1/t) dt. Thus:

Return To Top Of Page

3. Compute:

    

Solution

Let v = 2 + sin 3u. Then dv = 3 cos 3u du, so that cos 3u du = (1/3) dv. Thus:

Return To Top Of Page

4. Find:

    

Solution

Return To Top Of Page

5. a. Establish the following identities:

    

Solution

a. We have cos (x – y) = cos x cos y + sin x sin y and cos (x + y) = cos x cos y – sin x sin y. So
    cos (x – y) – cos (x + y) = 2 sin x sin y, which yields:

     

Return To Top Of Page     Return To Contents

30 May 2025 maximios
Equations

12.6 Arc Length

Return To Contents
Go To Problems & Solutions

Let C be a curve joining points A and B. See Fig. 1.1. Choose the points P0, P1, P2, …, Pn–1, Pn along C such that A =
P0 and B = Pn. Denote the length of the chord (line segment) P0 P1 by |P0 P1|, that of the chord P1P2 by |P1P2|, etc, ie,

Fig. 1.1

Length of curve or arc C is limit of sum of lengths of chords
as length of every chord approaches 0.

image003-5880274 

Go To Problems & Solutions     Return To Top Of Page

2. Lengths Of Graphs Of Functions

The derivation of the formula for the length of the graph of a function f requires that f is differentiable and f ‘ is
continuous, as seen below. A function f is said to be continuously differentiable if it’s differentiable on its domain and
its derivative f ‘ is continuous there. Let f be a continuously differentiable function and [a, b] a sub-interval of dom( f ).
See Fig. 2.1. We wish to find the length of the portion of the graph of f over [a, b].

Let s be the length of the portion of the graph of f over [a, b]. Form a regular partition of order n of [a, b]. We select
n = 5 as an example in Fig. 2.1. The partition points are a = x0 < x1 < x2 < … < xn–1 < xn = b. So the sub-intervals [xi–1,

image004-6806150

image008-2920720

The length s of the graph of continuously differentiable f over [a, b] is:

image010-7105782

Let y = f(x). Since f ‘(x) = dy/dx, Eq. [2.1] is equivalent to:

image012-6671541

Remark 2.1

If 2 functions differ by a constant on [a, b], as seen in Fig. 2.2, then clearly the portions of their graphs there have an
equal length. This fact is confirmed by Eq. [2.1]. As the functions differ by a constant on [a, b], they have the same
derivative there, so, by Eq. [2.1], the portions of their graphs there have an equal length.

image014-5489148

If functions differ by a constant on [a, b] then portions of
graphs there have an equal length.

Example 2.1

Find the length of the graph of f(x) = x2/3 over [1, 8]. Give the answer in approximate decimal format.

Solution
image016-6566440 
EOS

Note that we don’t have to sketch the arc or curve in question. When finding areas and volumes, the sketch is needed to correctly set up the integral. Here, it’s not. However, it may be necessary to determine the characteristics of the shape of

the curve; see Problem & Solution 5.

Go To Problems & Solutions     Return To Top Of Page

3. Differential Of Arc Lengths

The graph of f and the regular n-order partition of [a, b] in Fig. 2.1 are re-produced in Fig. 3.1. Consider the Riemann
image018-6200971
Fig. 3.1 as an example for [xi–1, xi]. Recall from Section 4.3 Definitions 2.1 that, at xi–1, the differential of x equals the
 

image019-4705666

image023-9139705

Remark that here we’re dealing with segments of tangent lines at xi–1, while in Part 2 we’re dealing with chords Pi–1Pi.. The arc length element is the length of a segment of a tangent line, not the length of a chord. As the arc length element

is obtained by operations on differentials (of x and y), it’s also called the differential of arc length.

Definition 3.1

Suppose f is a continuously differentiable function and let y = f(x). Then the differential ds of arc length for f is:

image025-3302215

We’ve seen above that:

image027-1623696

The arc length is the definite integral of the differential of arc length.

The small right triangle on the graph of f in Fig. 3.1 has all its 3 sides expressed in differential terms, and thus is called a
differential triangle. We can manipulate Eq. [3.1] as follows:

The differential ds of arc length for continuously differential f where y = f(x) is also given by:

From Eqs. [3.2] and [3.3] we obtain:

But this is exactly Eq. [2.2]. We observe that the differential triangle with its equation:

serves as a useful mnemonic device to obtain Eqs. [2.1], [2.2], or [3.4].

Example 3.1

Calculate the length of the graph of:

from x = 1 to x = 2, using differential of arc length in forming the integral.

Solution
The differential of arc length is:

The required arc length is:

EOS

When asked to use the differential of arc length in forming the integral, we use Eqs. [3.3] and [3.4]. For the function in
this example, we factor 1 + (dy/dx)2 into the square of something, and so the radical (square root symbol) in the
expression for ds is removed.

Go To Problems & Solutions     Return To Top Of Page

We can do this reversing because g is a continuously differentiable function of the independent variable y and the
dependent variable is x where x = g( y), and because the formulas for arc length discussed above are valid for any
continuously differentiable function, regardless of the variable. Eq. [3.1] can also be manipulated as follows:

So:

Example 4.1

Compute the length of the graph of:

from y = 1 to y = 2.

Solution

The differential of arc length is:

The desired arc length is:

EOS

Go To Problems & Solutions     Return To Top Of Page

To avoid the possible confusion as to which differential dx or dy to use in the equation for arc length, we make the
following observation. For arc length calculated along the x-axis from x = a to x = b, the function is a function of the
variable x, so it’s the derivative with respect to x and the differential of x, ie (  f ‘(x) or dy/dx) and dx. For arc length
calculated along the y-axis from y = c to y = d, the function is a function of the variable y, so it’s the derivative with
respect to y and the differential of y, ie ( g ‘( y) or dx/dy) and dy.

Return To Top Of Page

1. Find the length of the graph of the function f(x) = x3/2 on [0, 1].

Solution

Return To Top Of Page

2. Calculate the length of the curve y = f(x) = x4 + 1/(32x2) on [1, 2]. Give the answer in approximate decimal format.

Solution

The desired arc length is:

Return To Top Of Page

3. Compute the length of the curve:

  

Solution

The differential of arc length is:

The required arc length is:

Return To Top Of Page

4. Evaluate the length of the graph of y = x2 from the origin to the point (2, 4). Give an approximate value in decimal
    format.

Solution

Let f(x) = y = x2. Then f ‘(x) = 2x. The required arc length is:

Hence:

Return To Top Of Page

5. Find the circumference of the closed curve x2/3 + y2/3 = a2/3, where a > 0 is a constant.

Note

Graph Of x2/3 + y2/3 = 32/3.

Solution

Note

Return To Top Of Page     Return To Contents

30 May 2025 maximios
Equations

Calculus Of One Real Variable

CALCULUS
OF ONE REAL VARIABLE

A TUTORIAL

By Pheng Kim Ving, BA&Sc, MSc
Email: [email protected]
Toronto – Canada

View

If you’re using Internet Explorer and if it doesn’t display the view properly, such as misplaced or (partly-)missing tables or

graphics, please try Firefox or Chrome.

Welcome To CALCULUS OF ONE REAL VARIABLE!!

This website posts a tutorial on the introductory calculus of one real variable, free!! It provides a complete treatment of the introductory calculus of functions of one real variable. It’s organized to accompany two one-semester first and second calculus

courses or one two-semester first calculus course.

Each chapter is divided into sections. Each section discusses the topics that are the subject of the section and provides examples each followed by its complete solution. The presentation of each section is fairly comprehensive and detailed, almost

the same as in textbooks, not just a summary of the topics. Each section includes a set of problems with complete solutions.

The examples and problems supply drills on the basic techniques for the topics discussed in the section, and some are
theoretical and/or difficult.

If you have thoughts or comments about the site and you like to make them public, please don’t hesitate to sign my guestbook.
The link to the guestbook is accessible under the heading “ Guess Who’s The Guest!”, below.

Math Teacher/Tutor

If you need a math teacher/tutor and you live in (metro) Toronto then I’ll be pleased to be your teacher/tutor. For more
information please click here.

Solutions To Problems

Do you need solutions to a set of problems you obtained from class or from a course? If you answer yes then please click here for more information.

Guess Who’s The Guest!

You are the guest of this site!! If you like, please take the liberty to view or sign my guestbook. To go to the guestbook
please click here.

Reference To A Function
Splitting Of The Topic Of The Applications Of The Derivative
Notations And Abbreviations

1. Limits And Continuity

     1.1 Limits
          1.1.1 Limits
          1.1.2 Properties Of Limits
          1.1.3 The Indeterminate Form Of Type 0/0
          1.1.4 One-Sided Limits
          1.1.5 Limits At Infinity And Infinite Limits
         
         

     1.2 Continuity
          1.2.1 Continuity
          1.2.2 Extrema
          1.2.3 The Intermediate-Value Theorem

2. The Derivative

     2.1 Tangent Lines And Their Slopes
     2.2 Rates Of Change
     2.3 The Derivative
     2.4 Differentiability Vs Continuity

3. Rules Of Differentiation

     3.1 Differentiation Of Sums, Differences, And Polynomials
     3.2 Differentiation Of Products And Quotients
     3.3 Differentiation Of Compositions Of Functions – The Chain Rule
     3.4 Differentiation Of Inverse Functions

4. More On The Derivative

     4.1 Higher-Order Derivatives
     4.2 Implicit Differentiation
     4.3 The Differential

5. Applications Of The Derivative – Part 1

     5.1 The Mean-Value Theorem
     5.2 Critical Points And Extrema
     5.3 The First-Derivative Test
     5.4 Concavity And Inflection
     5.5 The Second-Derivative Test
     5.6 Sketching Graphs Of Functions
     5.7 Antiderivatives And Indefinite Integrals
     5.8 Motion

6. The Trigonometric Functions And Their Inverses

     6.1 The Trigonometric Functions
          6.1.1 The Trigonometric Functions

          6.1.2 Trigonometric Identities
          6.1.3 Limits Of Trigonometric Functions
          6.1.4 Differentiation Of Trigonometric Functions
          6.1.5 Graphs Of Trigonometric Functions
          6.1.6 The Projectile Motion
          6.1.7 The Simple Harmonic Motion

     6.2 The Inverse Trigonometric Functions

          6.2.1 The Inverse Trigonometric Functions
          6.2.2 Differentiation Of The Inverse Trigonometric Functions

     6.3 Transcendency
          6.3.1 Transcendental Functions
          6.3.2 Transcendency Of The Trigonometric Functions

7. The Exponential And Logarithmic Functions

     7.1 The Natural Exponential Function
     7.2 The Natural Logarithm Function

     7.3 General Exponential And Logarithmic Functions
     7.4 Logarithmic Differentiation
     7.5 Growth And Decay
     7.6 The Hyperbolic Functions
     7.7 The Inverse Hyperbolic Functions
     7.8 Transcendency Of The Exponential And Logarithmic Functions

8. Applications Of The Derivative – Part 2

     8.1 Optimization
     8.2 Related Rates
     8.3 Tangent-Line Approximations
     8.4 Approximations Of Errors In Measurement
     8.5 Approximations Of Roots Of Functions – Newton’s Method
    
     8.7 More Indeterminate Forms

9. The Integral

     9.1 Summation Notation And Formulas
     9.2 Areas And Riemann Sums
     9.3 The Definite Integral
     9.4 The Fundamental Theorem Of Calculus

10. Techniques Of Integration

     10.1 Integration By Inspection
     10.2 The Method Of Substitution
     10.3 Integration Of Trigonometric Functions
     10.4 Integration Of Powers Of Trigonometric Functions
     10.5 The Inverse Trigonometric Substitution
     10.6 Other Substitutions
     10.7 The Method Of Partial Fractions
     10.8 The Method Of Integration By Parts

11. More On The Integral

     11.1 Approximate Numerical Integration
     11.2 Improper Integrals
     11.3 Tests For Convergence Of Improper Integrals

12. Applications Of The Integral

     12.1   The Mean-Value Theorem For Integrals
     12.2   Areas Of Plane Regions
     12.3   Finding Volumes By Slicing
     12.4   Finding Volumes By Using Cylindrical Shells
     12.5   Distance And Displacement
     12.6   Arc Length
     12.7   Areas Of Surfaces Of Revolution
     12.8   Work
     12.9   Force Exerted By A Fluid
     12.10 Net Change

13. Plane Curves

     13.1 Parametric Curves
          13.1.1 Parametric Curves
          13.1.2 Tangent And Sketching Of Parametric Curves
          13.1.3 Arc Length And Area Of Surface Of Revolution Of Parametric Curves
          13.1.4 Vector Study Of Motion In The Plane

     13.2 The Polar Coordinate System
          13.2.1 The Polar Coordinate System
          13.2.2 Sketching Polar Curves
          13.2.3 Area By Polar Curves
          13.2.4 Arc Length And Area Of Surface Of Revolution Of Polar Curves

14. Infinite Series

     14.1 Infinite Sequences
     14.2 Infinite Series
     14.3 The Comparison Tests
     14.4 The Root And Ratio Tests
     14.5 The Integral Test
     14.6 The Alternating-Series And Absolute-Convergence Tests
     14.7. Approximations Of Sums Of Series

15. Representations Of Functions By Power Series

     15.1 Power Series
     15.2 Derivatives And Integrals Of Power Series
     15.3 Taylor Series
     15.4 Applications Of Taylor Series
     15.5 Taylor Polynomials And Taylor Theorem
     15.6 The Binomial Series

16. Differential Equations

     16.1 First-Order Equations
          16.1.1 Introduction To Differential Equations
          16.1.2 Variables-Separable Equations
          16.1.3 First-Order Linear Equations

     16.2 Second-Order Linear Homogeneous Equations
          16.2.1 Equations With Constant Coefficients – Characteristic Equation
          16.2.2 Equations With Variable Coefficients – Reduction Of Order

     16.3 Second-Order Linear Non-Homogeneous Equations
          16.3.1 Equations With Constant Coefficients – Undetermined Coefficients
          16.3.2 Equations With Variable Coefficients – Variation Of Parameters

     16.4 Approximate Solutions

          16.4.1 Approximate Graphical Solutions – Direction Fields

          16.4.2 Approximate Numerical Solutions – Euler Method

Last Updated: 14 May 2015.

Return To Top Of Page

19 May 2025 maximios
Equations

10.4 Integration Of Powers Of Trigonometric Functions

Calculus Of One Real Variable – By Pheng Kim Ving
Chapter 10: Techniques Of Integration – Section 10.4: Integration Of Powers Of Trigonometric Functions

10.4
Integration Of Powers Of Trigonometric Functions

Return To Contents

Go To Problems & Solutions

An integer has 2 possibilities for parity: even or odd. So a set of 2 integers say m and n have 2 x 2 = 4 possibilities for
parity, as follows:

m Or n Is Odd

“m or n is odd” means “either m or n is odd or both are odd”.

Example 1.1

Calculate:

Solution

EOS

An integral of the form:

 

We’ve got the integral of a polynomial in u, which can readily be found. Don’t forget to return to the original variable x.
Similarly, if n is odd, then the substitution u = sin x can be utilized.

Both m And n Are Even

Example 1.2

Compute:

Solution

EOS

An integral of the form:

 

Go To Problems & Solutions     Return To Top Of Page

m Is Even And n Is Either Even Or Odd

Example 2.1

Evaluate:

Solution

EOS

An integral of the form:

 

We’ve obtained the integral of a polynomial in u, which can readily be done. Don’t forget to return to the original variable x.

Both m And n Are Odd

Example 2.2

Find:

Solution

EOS

An integral of the form:

 

We’ve got the integral of a polynomial in u, which can handily be computed. Then we return to the original variable x.

m Is Odd And n Is Even

If we extract sec2 x from secm x to form sec2 x dx because the derivative of tan x is sec2 x, then we would have to make
the substitution u = tan x, so secm–2 x would have to be changed to an expression involving only integer powers of tan x
and constants using the identity 1 + tan2 x = sec2 x, which is impossible because m – 2 is odd.

If we extract sec x tan x from secm x tann x to form sec x tan x dx because the derivative of sec x is sec x tan x, then
we would have to make the substitution u = sec x, so tann–1 x would have to be changed to an expression involving only
integer powers of sec x and constants using the identity 1 + tan2 x = sec2 x, which is impossible because n – 1 is odd.

 

Go To Problems & Solutions     Return To Top Of Page

Example 3.1

Calculate:

Solution

EOS

Integrals of the form:

and the substitution either u = cot x or u = csc x.

Return To Top Of Page

Note

 

So they differ only by a constant. They’re actually equivalent up to different choices of the constant of integration. Recall
that indefinite integrals are general antiderivatives. If both F1(x) and F2(x) are particular antiderivatives of f(x), then we
can employ either F1(x) + C or F2(x) + C as the general antiderivative of f(x). Any 2 antiderivatives of a function differ
from each other by a constant; see Section 5.7 Part 2. Thus F1(x) and F2(x) differ by a constant, and so do F1(x) + C
and F2(x) + C.

If your answer looks different from the one provided, then just differentiate it to see if it’s also a correct one.

1. Calculate:

  

Solution

Return To Top Of Page

2. Compute:

  

Solution

Let v = tan u. Then dv = sec2 u du. So:

Return To Top Of Page

3. Evaluate:

  

Solution

 

Return To Top Of Page

4. Find:

  

Solution

Return To Top Of Page

5. Calculate:

  

Solution

Return To Top Of Page     Return To Contents

1 2 3 4 5

Recent Posts

  • 16.1.3 First-Order Linear Equations
  • 16.3.1 Equations With Constant Coefficients – Undetermined Coefficients
  • 16.2.1 Equations With Constant Coefficients – Characteristic Equation
  • 16.2.2 Equations With Variable Coefficients – Reduction Of Order
  • 16.3.2 Equations With Variable Coefficients – Variation Of Parameters

Качественный набор ножей из нержавеющей стали прослужит долго среди наборов ножей.

Recent Comments

No comments to show.

Archives

  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • January 2025
  • December 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • December 2023
  • March 2023
  • January 2020
  • December 2019
  • September 2017
  • June 2017
  • February 2015
  • March 2012
  • January 2012
  • December 2010
  • August 2010

Categories

  • Equations

Back to top

mfr-morreformation.com
© mfr-morreformation.com 2025
Powered by WordPress • Themify WordPress Themes