What is the solution to the differential equation dy/dx = cosx?

What is the solution to the differential equation dy/dx = cosx?

Explanation

 To solve the differential equation dy/dx = cosx, we integrate both sides with respect to x.


∫dy = ∫cosx dx


y = sinx + C


where C is the constant of integration.