Ma · Mathematics

How to Approach a Tricky Differential Equation Problem

Published By the 9to5Science editorial team

At a glance

  1. 1. Write the full problem

    Include the differential equation, any initial or boundary conditions, and the interval or domain.

  2. 2. Classify the equation

    Check its order, linearity, separability, and whether it is exact or has constant coefficients.

  3. 3. Choose a method

    Use a method that matches the equation’s structure, and state any division or substitution restrictions.

  4. 4. Solve and verify

    Apply the conditions and substitute the result back into the original equation.

A differential equation cannot be solved from the phrase “tricky differential equation” alone. You need the equation itself, and often an initial or boundary condition, to determine what solution is being requested. Different equations call for different methods, and the same equation can have many solutions until conditions are supplied.

This guide gives you a practical way to identify the missing information, choose a standard method, and check your work. It also works through a small example. If you need a solution to a particular problem, the equation and every condition must be stated explicitly.

What information determines the problem?

A differential equation relates an unknown function to one or more of its derivatives. For instance, y′=2xyy'=2xy is a first-order ordinary differential equation (ODE): it involves one independent variable, xx, and the derivative of yy with respect to xx.

A general solution includes arbitrary constants. An initial-value problem gives the function or its derivatives at a particular input, such as y(0)=3y(0)=3, to determine those constants. A boundary-value problem instead specifies conditions at multiple points or boundaries. Without sufficient conditions, there may be a family of solutions rather than one answer.

For example, all functions y=Cex2y=Ce^{x^2} solve y′=2xyy'=2xy, where CC is any constant. The condition y(0)=3y(0)=3 selects one member of that family.

Classify the equation before solving

First identify the equation’s order: the highest derivative that appears. Then look for a recognizable structure. Common first-order forms include:

  • Separable: the variables can be separated, as in y′=g(x)h(y)y'=g(x)h(y).
  • Linear: it can be written as y′+P(x)y=Q(x)y'+P(x)y=Q(x).
  • Exact: it has the form M(x,y) dx+N(x,y) dy=0M(x,y)\,dx+N(x,y)\,dy=0 and satisfies My=NxM_y=N_x on a simply connected region, under the usual smoothness assumptions.

These categories can overlap. An equation may be both separable and linear, for example. For higher-order equations, check for constant coefficients, known substitutions, or a reduction in order. For a system involving partial derivatives, ordinary differential equation methods may not apply; it may be a partial differential equation instead.

A reliable solving workflow

  1. Copy the equation and conditions accurately. Distinguish, for example, dy/dxdy/dx from dx/dydx/dy, and check parentheses, signs, and exponents.
  2. Choose a method based on its form. Do not use an integration-factor formula unless the equation has been put into the required linear form.
  3. Keep track of restrictions. Dividing by an expression involving yy can discard constant solutions where that expression is zero. Dividing by an expression involving xx can exclude points from the interval.
  4. Integrate and include constants. Each integration introduces a constant; conditions determine its value when enough information is available.
  5. Check the result. Differentiate the proposed solution and substitute it into the original equation. Then check that it meets the initial or boundary conditions.

Worked example: solve a separable equation

Solve

y′=2xy,y(0)=3.y'=2xy,\qquad y(0)=3.

For y≠0y\ne 0, separate the variables:

1y dy=2x dx.\frac{1}{y}\,dy=2x\,dx.

Integrate both sides:

ln⁡∣y∣=x2+C.\ln|y|=x^2+C.

Exponentiating gives y=Cex2y=Ce^{x^2}, where the constant can be positive, negative, or zero. (The zero solution is included when C=0C=0.) Apply the initial condition:

3=y(0)=Ce0=C.3=y(0)=Ce^0=C.

Thus the solution to the initial-value problem is

y=3ex2.y=3e^{x^2}.

To verify it, differentiate: y′=6xex2y'=6xe^{x^2}. The right side of the equation is 2xy=2x(3ex2)=6xex22xy=2x(3e^{x^2})=6xe^{x^2}, so the equation holds. Also, y(0)=3y(0)=3.

Common mistakes

  • Trying to solve without the actual equation. A title or topic tag is not enough to identify a method or answer.
  • Forgetting initial conditions. The general solution may be correct but still not answer an initial-value problem until its constants are determined.
  • Dividing before checking special cases. If you divide by yy, first check whether y=0y=0 is also a solution.
  • Losing a constant or a sign during integration. Check each step by differentiating the result.
  • Verifying only the differential equation. A solution must also satisfy the stated conditions and be defined on the requested interval.

To get a definite solution, specify the complete differential equation, all initial or boundary conditions, and any requested interval. Those details determine which method is appropriate and whether the answer is unique.

References

  1. Elementary Differential Equations and Boundary Value Problems, William E. Boyce, Richard C. DiPrima, and Douglas B. Meade

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.