Skip to content
LoveToCalc

Definition — what does that mean?

The differential equation y′ = f(x)

When y′ depends on x alone, the solutions are the antiderivatives of f: y = F(x) + C, one for every C.

In Swedish: Differentialekvationen y′ = f(x)

y′(x)=f(x)

General solution

y=F(x)+C

C is an arbitrary constant.

F is an antiderivative of f.

x
The variable

What the formula says

Holds when f is continuous on an interval, and the solutions hold on that interval.

The simplest differential equation: the derivative is given as a function of x, and y itself does not appear. Solving it means finding an antiderivative F of f and adding a constant. Two antiderivatives of the same f differ only by a constant, so y = F(x) + C gives every solution and nothing else.

Example

Solve y′ = 6x² − 4.

One antiderivative is F(x) = 2x³ − 4x, so y = 2x³ − 4x + C.

Check: y′ = 6x² − 4. The constant vanishes when you differentiate, which is why it can be any number.

The initial condition fixes C

Solve y′ = cos x with y(0) = 3.

  1. One antiderivative is sin x, so y = sin x + C.
  2. The condition: y(0) = sin 0 + C = C = 3.
  3. So y = sin x + 3.

Without the condition the answer is a family of curves, shifted up and down. The condition picks the one through the point.

Where next

Common mistakes

Common questions

Why is one constant enough? If y₁ and y₂ both solve y′ = f(x), then (y₁ − y₂)′ = 0 on the interval, and a function whose derivative is 0 on an interval is constant there. So every solution differs from F by a constant.

Last reviewed October 13, 2026 ·How pages are reviewed

CalculusAll formulas