• Foundation
  • About 14 min
  • 5 practice questions

Solutions: general and particular

Check whether a function solves a differential equation by substituting it back, and tell a general solution (with arbitrary constants) from a particular solution (constants fixed by given conditions).

If something looks wrong, please tell us.

Knowing what a differential equation is, the next question is what it means to solve one. Unlike an algebraic equation, whose solution is a number, a differential equation has functions as its solutions. This lesson explains what a solution is, how to check one by substitution, and the difference between a general solution and a particular solution. These ideas are used in every later lesson.

What a solution is

A solution of a differential equation is a function y = φ(x) which, when it and its derivatives are substituted into the equation, makes the two sides equal for every x in the interval considered. To check a proposed solution you never need to solve anything: differentiate the function as many times as the equation requires, substitute, and simplify. If the two sides agree identically, the function is a solution.

For example, take dy/dx = 2y and the function y = 5e^(2x). Differentiating gives dy/dx = 10e^(2x), and 2y = 2 × 5e^(2x) = 10e^(2x). The two sides agree for every x, so y = 5e^(2x) is a solution. But y = e^(2x) + 1 is not: its derivative is 2e^(2x), while 2y = 2e^(2x) + 2, and these differ by 2.

General solution

The equation dy/dx = 2y has not one solution but a whole family: y = Ae^(2x) works for every constant A, since dy/dx = 2Ae^(2x) = 2y. A solution that contains arbitrary constants in this way is called a general solution. For the equations in this course, the number of independent arbitrary constants in the general solution equals the order of the equation. A first-order equation has one constant, a second-order equation two, and so on.

Particular solution

A particular solution is obtained by giving the arbitrary constants definite values, usually so that the solution satisfies some extra information, such as y = 3 when x = 0. Such information is called an initial condition (or, more generally, a condition). A particular solution contains no arbitrary constants. For dy/dx = 2y with y(0) = 3, put x = 0 in y = Ae^(2x): 3 = Ae⁰ = A, so the particular solution is y = 3e^(2x).

General solution: contains as many independent arbitrary constants as the order of the equation. Particular solution: those constants are fixed by given conditions, so none remain. Always verify a solution by substituting it back.

Worked example 1: a second-order check

Show that y = A cos x + B sin x is a solution of d²y/dx² + y = 0 for all constants A and B. Differentiate: dy/dx = −A sin x + B cos x, and d²y/dx² = −A cos x − B sin x. Now d²y/dx² + y = (−A cos x − B sin x) + (A cos x + B sin x) = 0. The equation is satisfied for every x and every A, B. The equation has order 2 and the solution has two independent constants, so this is its general solution.

Worked example 2: fixing the constants

Find the particular solution of d²y/dx² + y = 0 with y(0) = 2 and dy/dx = 3 at x = 0. Use the general solution y = A cos x + B sin x. Putting x = 0 gives y(0) = A, so A = 2. From dy/dx = −A sin x + B cos x, putting x = 0 gives B, so B = 3. The particular solution is y = 2 cos x + 3 sin x. Check: its second derivative is −2 cos x − 3 sin x, which added to y gives 0, and y(0) = 2, y′(0) = 3.

Worked example 3: a first-order family

The functions y = Cx² satisfy x dy/dx = 2y, since dy/dx = 2Cx and x × 2Cx = 2Cx² = 2y. Find the solution whose graph passes through (1, 5). Put x = 1, y = 5: 5 = C × 1, so C = 5, and the particular solution is y = 5x².

Key takeaways

A solution of a differential equation is a function, and you check it by differentiating and substituting. A general solution carries as many arbitrary constants as the order; a particular solution has them fixed by given conditions. When a question gives you a candidate solution, substitution is always the quickest and safest test. Next you will run this process backwards: starting from a family of functions, you will find the differential equation it satisfies.

Check your understanding

  1. 1. How many arbitrary constants does the general solution of a second-order differential equation contain?

    1. 1
    2. 2
    3. 3
    4. 0
    Show answer

    Answer: B. The number of independent arbitrary constants in the general solution equals the order of the equation, so a second-order equation has 2.

  2. 2. Which function is a solution of dy/dx = 3y?

    1. y = 7e^(3x)
    2. y = e^(x/3)
    3. y = 3eˣ
    4. y = x³
    Show answer

    Answer: A. For y = 7e^(3x), dy/dx = 21e^(3x) = 3 × 7e^(3x) = 3y. For y = e^(x/3), y′ = y/3; for y = 3eˣ, y′ = y; for y = x³, y′ = 3x², which is not 3x³.

  3. 3. The general solution of dy/dx + y = 0 is y = Ce^(−x). What is the particular solution with y(0) = 4?

    1. y = 4eˣ
    2. y = e^(−x) + 4
    3. y = 4e^(−x)
    4. y = −4e^(−x)
    Show answer

    Answer: C. Put x = 0: y(0) = C e⁰ = C = 4. So y = 4e^(−x). Check: y′ = −4e^(−x) = −y.

  4. 4. y = A sin 2x + B cos 2x, with A and B arbitrary constants, is the general solution of which equation?

    1. d²y/dx² − 4y = 0
    2. d²y/dx² + 4y = 0
    3. d²y/dx² + 2y = 0
    4. d²y/dx² + y = 0
    Show answer

    Answer: B. y″ = −4A sin 2x − 4B cos 2x = −4y, so y″ + 4y = 0. The other equations would need y″ = 4y, y″ = −2y or y″ = −y, which these functions do not satisfy.

  5. 5. The general solution of dy/dx = 2x is y = x² + C. What is the particular solution through the point (2, 7)?

    1. y = x² + 3
    2. y = x² + 7
    3. y = x² + 5
    4. y = x² − 3
    Show answer

    Answer: A. Put x = 2, y = 7: 7 = 4 + C, so C = 3 and y = x² + 3.

Privacy · Terms · Refunds · Delivery