Question
How do you solve $\frac{dy}{dx}=2-x$ and find the curve through $(1,0)$?
Original question: 11. Given $\frac{dy}{dx}=2-x$, find the general solution algebraically. Find the particular solution for the function that passes through $(1,0)$. Sketch the solution of the differential equation on the slope field.
Expert Verified Solution
Expert intro: Unlike a separable exponential equation, this one is even simpler: the derivative depends only on , so you can integrate directly and then use the given point.
Detailed walkthrough
1) Integrate the differential equation
Integrate both sides with respect to :
So the general solution is
2) Use the point
Substitute and :
So the particular solution is
3) How the sketch should look
The graph is a downward-opening parabola. Its slope is positive when , zero at , and negative when . On the slope field, the line segments flatten as you approach and tilt downward after that.
💡 Pitfall guide
Don’t treat this like a separable equation. There is no on the right-hand side, so you just integrate with respect to . Another easy error is dropping the constant after integration, which makes the particular solution impossible to fit through .
🔄 Real-world variant
If the initial point were , then the constant would be and the solution would be . If the derivative were , the antiderivative would still be a parabola; only the linear coefficient would change.
🔍 Related terms
antiderivative, initial value problem, slope field
FAQ
How do you solve $rac{dy}{dx}=2-x$?
Integrate with respect to $x$ to get $y=2x-rac{x^2}{2}+C$. Then use the point $(1,0)$ to find $C=-rac32$, giving $y=2x-rac{x^2}{2}-rac32$.