Step by step
The question
Question: solve y′ = 4sin(2x), with y(0) = 0.
y(0) = 0 is the starting value: when x is 0, y is 0.
1 The idea
y′ is only about x.
So y is a function whose derivative is 4sin(2x): an antiderivative.
2 Integrate both sides
Integrate both sides.
The left side, the integral of y′, is just y.
The rule: divide by the number in front of x.
Each term by its rule, and one + C: the number we cannot see after a derivative.
Tidy the numbers: y = −2cos(2x) + C.
Careful!
Don't forget + C.
Every number C gives another solution, and we need C to use the starting value.
3 Use the starting value
Put in x = 0 and y = 0.
Work out the numbers: −2.
To get C alone, add 2 on both sides.
So C = 2.
Put C back.
The answer: y = −2cos(2x) + 2.
4 Check
Let's check: the derivative of our answer is 4sin(2x).
The right side again.
Right!
And at x = 0, y is 0: the starting value.
Right!
Let's look back.
First: the idea.
Then: integrate both sides.
Then: use the starting value.
Last: check.