Question

How do you solve $\frac{dy}{dx}=2-x$ and find the curve through $(1,0)$?

Original question: 11. Given dydx=2x\frac{dy}{dx}=2-x, find the general solution algebraically. Find the particular solution for the function that passes through (1,0)(1,0). Sketch the solution of the differential equation on the slope field.

Expert Verified Solution

thumb_up100%(1 rated)

Expert intro: Unlike a separable exponential equation, this one is even simpler: the derivative depends only on xx, so you can integrate directly and then use the given point.

Detailed walkthrough

1) Integrate the differential equation

dydx=2x\frac{dy}{dx}=2-x

Integrate both sides with respect to xx:

y=(2x)dxy=\int (2-x)\,dx

y=2xx22+Cy=2x-\frac{x^2}{2}+C

So the general solution is

y=2xx22+C\boxed{y=2x-\frac{x^2}{2}+C}

2) Use the point (1,0)(1,0)

Substitute x=1x=1 and y=0y=0:

0=2(1)122+C0=2(1)-\frac{1^2}{2}+C

0=212+C0=2-\frac12+C

C=32C=-\frac32

So the particular solution is

y=2xx2232\boxed{y=2x-\frac{x^2}{2}-\frac32}

3) How the sketch should look

The graph is a downward-opening parabola. Its slope is positive when x<2x<2, zero at x=2x=2, and negative when x>2x>2. On the slope field, the line segments flatten as you approach x=2x=2 and tilt downward after that.

💡 Pitfall guide

Don’t treat this like a separable equation. There is no yy on the right-hand side, so you just integrate with respect to xx. Another easy error is dropping the constant after integration, which makes the particular solution impossible to fit through (1,0)(1,0).

🔄 Real-world variant

If the initial point were (0,0)(0,0), then the constant would be 00 and the solution would be y=2xx22y=2x-\frac{x^2}{2}. If the derivative were dydx=ax\frac{dy}{dx}=a-x, 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$.

chat