Solving Differential Equations of the Form dy/dx = f(x)

Updated July 2026

This topic introduces the process of finding a function yy given its derivative dydx=f(x)\frac{dy}{dx} = f(x). This is a core skill for the ESAT that requires applying the Fundamental Theorem of Calculus to reverse differentiation, managing constants of integration, and using boundary conditions to find particular solutions.

Core concept

To solve dydx=f(x)\frac{dy}{dx} = f(x) is to find a function yy in terms of xx such that its derivative is f(x)f(x). This is achieved by integrating f(x)f(x) with respect to xx, resulting in the solution y=f(x)dx+cy = \int f(x) dx + c.

Understanding the Problem

When you are asked to solve an expression of the form dydx=f(x)\frac{dy}{dx} = f(x), you are being asked to find what yy is when expressed in terms of xx. Specifically, you are looking for a function yy that, when differentiated, results in f(x)f(x). In simpler terms, you must determine what function you would differentiate to arrive at f(x)f(x).

Solving Without Additional Conditions

To find yy, we integrate both sides of the equation with respect to xx. This process relies on the Fundamental Theorem of Calculus, which establishes that integration and differentiation are inverse operations. If you differentiate yy and then integrate the result, you return to yy (plus a constant).

Example

Solve dydx=3x2+4x3\frac{dy}{dx} = 3x^2 + 4x - 3

To solve this, we integrate both sides with respect to xx:

  1. Integrating the left-hand side, dydxdx\int \frac{dy}{dx} dx, gives us yy.
  2. Integrating the right-hand side, (3x2+4x3)dx\int (3x^2 + 4x - 3) dx, gives us x3+2x23x+cx^3 + 2x^2 - 3x + c.

Therefore, the general solution is: y=x3+2x23x+cy = x^3 + 2x^2 - 3x + c

In this solution, we assume that all constants generated during the integration process are combined into a single constant, written as cc on the side of the independent variable xx.

Solving With Additional Conditions

In many exam problems, you will be given additional information, such as specific values for yy at a given xx. These are often referred to as boundary conditions or initial conditions. These values allow you to find the specific value of the constant cc. There are two equivalent methods for doing this.

Example

Given y=5y = 5 when x=1x = 1 and dydx=3x2+4x3\frac{dy}{dx} = 3x^2 + 4x - 3, find yy in terms of xx.

Method 1: Using the Constant of Integration

In this method, we first find the general solution as we did above and then substitute the given values to find cc.

  1. From our previous work, we know the general solution is y=x3+2x23x+cy = x^3 + 2x^2 - 3x + c.
  2. Substitute x=1x = 1 and y=5y = 5 into this equation: 5=(1)3+2(1)23(1)+c5 = (1)^3 + 2(1)^2 - 3(1) + c 5=1+23+c5 = 1 + 2 - 3 + c 5=0+c5 = 0 + c c=5c = 5
  3. Substitute the value of cc back into the general solution: y=x3+2x23x+5y = x^3 + 2x^2 - 3x + 5

Method 2: Definite Integration with Corresponding Limits

Alternatively, we can use the given conditions as limits in a definite integral. We set the bottom limits as the known pair (x=1,y=5)(x=1, y=5) and the top limits as the variables (x=x,y=y)(x=x, y=y).

y=5y=ydydxdx=x=1x=x(3x2+4x3)dx\int_{y=5}^{y=y} \frac{dy}{dx} dx = \int_{x=1}^{x=x} (3x^2 + 4x - 3) dx

While the notation on the left-hand side is slightly informal (as we are integrating with respect to xx but using yy limits), it is a practical way to reach the solution. This leads to:

[y]5y=[x3+2x23x]1x[y]_5^y = [x^3 + 2x^2 - 3x]_1^x

Evaluating the limits gives: y5=(x3+2x23x)(13+2(1)23(1))y - 5 = (x^3 + 2x^2 - 3x) - (1^3 + 2(1)^2 - 3(1)) y5=(x3+2x23x)(0)y - 5 = (x^3 + 2x^2 - 3x) - (0) y=x3+2x23x+5y = x^3 + 2x^2 - 3x + 5

Both methods are entirely equivalent and will lead to the same particular solution.

Key takeaways

  • Solving dydx=f(x)\frac{dy}{dx} = f(x) requires integrating f(x)f(x) with respect to xx to find yy.
  • A general solution must always include a constant of integration, cc, which represents all possible vertical translations of the function.
  • Boundary conditions (specific xx and yy values) allow you to solve for a unique value of cc.
  • You can solve for the particular solution either by finding cc through substitution or by using definite integration with corresponding limits.
Tips

Always perform a quick differentiation of your final answer to ensure it returns the original dydx\frac{dy}{dx} expression; this is a foolproof way to check your integration.

Cautions

The most frequent error is forgetting to write +c+ c in a general solution. Without it, you are only providing one specific case rather than the full set of possible functions.

Insight

This process is the simplest form of solving differential equations. It highlights the Fundamental Theorem of Calculus: the integral of a rate of change gives the total change in the function. In Method 2, the expression yy1=x1xf(t)dty - y_1 = \int_{x_1}^{x} f(t) dt explicitly shows yy as the accumulation of change from a starting point.

Frequently asked questions

What is the difference between a general solution and a particular solution?

A general solution includes an arbitrary constant cc and represents a family of curves. A particular solution is the specific curve found by using given boundary conditions to calculate the exact value of cc.

Why do we only add one constant cc to the entire equation?

Technically, integrating both sides produces a constant on each side, such as y+c1=f(x)+c2y + c_1 = f(x) + c_2. However, we can subtract c1c_1 from both sides to get y=f(x)+(c2c1)y = f(x) + (c_2 - c_1). Since the difference between two constants is just another constant, we write it simply as cc on the right-hand side.

Are boundary conditions and initial conditions the same thing?

In the context of the ESAT, they are used interchangeably to describe numerical values provided to find the constant cc. Strictly speaking, initial conditions refer to values at x=0x=0 (often representing time t=0t=0), while boundary conditions can be values at any point.

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.