40% off

Early-bird ends 15 Aug, 9am

Lock in £90

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

Updated August 2025

Introduction to basic differential equations. Solving these involves reversing differentiation through integration. Learn to find general solutions with constants and particular solutions using boundary conditions, which is essential for solving calculus problems in the TMUA. This topic bridges the relationship between the gradient of a curve and its coordinate equation.

Core concept

A differential equation dydx=f(x)\frac{dy}{dx} = f(x) is solved by integrating the function f(x)f(x) with respect to xx, producing a general solution y=F(x)+cy = F(x) + c where cc is the constant of integration.

What is a Differential Equation?

Solving an equation of the form dydx=f(x)\frac{dy}{dx} = f(x) is essentially asking: what function yy, when differentiated with respect to xx, results in the expression f(x)f(x)? This is the simplest type of differential equation. In the TMUA, you are expected to understand that this process is the inverse of differentiation, meaning it is solved using integration.

Finding the General Solution

To find the expression for yy, we integrate both sides of the equation with respect to xx. Based on the Fundamental Theorem of Calculus, integrating the derivative dydx\frac{dy}{dx} returns the function yy. However, because the derivative of any constant value is zero, we must always add a constant of integration, denoted as +c+c, to our result.

If we integrate dydx\frac{dy}{dx} with respect to xx, we find dydxdx\int \frac{dy}{dx} \, dx. While the integration of the derivative returns yy, we combine all constants generated during the process on the xx side of the equation as a single constant cc. This gives us the general solution.

Worked Example

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

To find yy, we integrate the function on the right hand side with respect to xx:

y=(3x2+4x3)dxy = \int (3x^2 + 4x - 3) \, dx

y=x3+2x23x+cy = x^3 + 2x^2 - 3x + c

This expression represents a family of curves that all have the same gradient function but are shifted vertically relative to one another.

Particular Solutions and Boundary Conditions

In many exam questions, additional information is provided, such as a specific point (x,y)(x, y) that lies on the curve. These values are known as boundary conditions or initial conditions. They allow us to calculate the specific value of cc, leading to a particular solution.

Worked 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.

We can solve this using two equivalent methods.

Method 1: Algebraic Substitution

First, we find the general solution as shown in the previous example:

y=x3+2x23x+cy = x^3 + 2x^2 - 3x + c

Next, we use the boundary condition y=5y = 5 when x=1x = 1 to find the value of cc by substitution:

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, which means c=5c = 5

Substituting this back into our general solution gives the particular solution:

y=x3+2x23x+5y = x^3 + 2x^2 - 3x + 5

Method 2: Definite Integration

Alternatively, we can treat y=5y = 5 when x=1x = 1 as the lower limits and yy and xx as the upper limits in a definite integral. This ensures that the variables correspond to each other exactly:

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

It is worth noting a slight technicality here: because we are integrating with respect to xx, the limits on the left hand side should technically be xx values. However, in practice, it is often easier to write the corresponding yy values as limits directly, as these are the values we substitute after the integration is performed. Following this through:

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

y5=(x3+2x23x)(13+2(1)23(1))y - 5 = (x^3 + 2x^2 - 3x) - (1^3 + 2(1)^2 - 3(1))

y5=x3+2x23x0y - 5 = x^3 + 2x^2 - 3x - 0

y=x3+2x23x+5y = x^3 + 2x^2 - 3x + 5

Both methods provide the same unique particular solution.

Key takeaways

  • Solving dydx=f(x)\frac{dy}{dx} = f(x) involves integrating the function f(x)f(x) with respect to xx.
  • The general solution must always include a constant of integration +c+c to represent the family of possible curves.
  • A particular solution is found by using a boundary condition (a given point (x,y)(x, y)) to solve for cc.
  • The Fundamental Theorem of Calculus establishes that integration is the reverse process of differentiation.
  • Calculus problems of this type bridge the gap between a curve's gradient and its coordinate equation.
Tips

Always check your final particular solution by differentiating it. If you do not get the original f(x)f(x) back, or if the original boundary point does not satisfy your equation, an error was made during the integration or substitution steps.

Cautions

A very common mistake is to add the constant cc at the very end of the calculation rather than immediately after integrating. If you substitute your values before adding cc, you will not be able to find the correct particular solution.

Insight

The differential equation dydx=f(x)\frac{dy}{dx} = f(x) is the simplest form of a first-order differential equation. In more advanced mathematics, you will encounter equations where the derivative depends on both xx and yy, requiring more complex techniques like separation of variables.

Worked Examples

Example 1
The solution to the differential equation dydx=6x\frac{\mathrm{d}y}{\mathrm{d}x} = |-6x| for all xx is y=f(x)+cy = f(x) + c, where cc is a constant.
Which one of the following is a correct expression for
f(x)f(x)?
A:6xx-\frac{6x}{x}
B:6xx\frac{6x}{|x|}
C:3xx-3x|x|
D:3xx3x|x|
E:3x2-3x^2
F:3x23x^2
G:x3-x^3
H:x3x^3

Practice Questions

Practice Question 1
THIS IS WRONG, PLEASE REVIEW AGAIN!
Given that
dydx=3x223xx3\frac{dy}{dx} = 3x^2 - \frac{2-3x}{x^3}, x0x ≠ 0
and
y=5y = 5 when x=1x = 1, find yy in terms of xx.
A:
y=13x3+x23x1+623y = \frac{1}{3}x^3 + x^{-2} - 3x^{-1} + 6\frac{2}{3}
B:
y=x3+12x23x1+612y = x^3 + \frac{1}{2}x^{-2} - 3x^{-1} + 6\frac{1}{2}
C:
y=x3+x23x1+6y = x^3 + x^{-2} - 3x^{-1} + 6
D:
y=x3+x2x1+4y = x^3 + x^{-2} - x^{-1} + 4
E:
y=x3+2x2x1+3y = x^3 + 2x^{-2} - x^{-1} + 3
F:
y=3x3+x2x1+2y = 3x^3 + x^{-2} - x^{-1} + 2

Frequently asked questions

Why is the constant of integration cc necessary?

Because the derivative of any constant is zero, multiple functions can have the same derivative. For example, x2+5x^2 + 5 and x2+10x^2 + 10 both have the derivative 2x2x. The constant cc accounts for all these possible vertical shifts.

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

A general solution contains the constant cc and represents an infinite family of curves. A particular solution uses a specific point to find the exact value of cc, representing one single, unique curve.

Can I use cc on both sides of the equation?

While integration on both sides technically produces two constants, they are conventionally combined into a single constant cc on the side of the independent variable xx.

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.