What the formula says
- y′ = f(x)
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.
- One antiderivative is sin x, so y = sin x + C.
- The condition: y(0) = sin 0 + C = C = 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
- When y appears in the equation too: y′ = ky and the first-order linear differential equation.
Common mistakes
- Forgetting C. y = 2x³ − 4x is one solution, not the general solution.
- Differentiating instead of integrating. y′ is given; y is what you are after, and you get it by going back from the derivative.
- Using the condition before integrating. There is no C until you have integrated.
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.