# Trouble solving this ode

## Homework Statement

dx/dt = 2000-500x/100

Solve this linear ODE using integration. You should get a function of t, x(t). This is the "analytical solution". Use the differential equation above, separate the variables, and then integrate to find x(t). Find the integration constant and simplify your final result.

## Homework Equations

dx/dt = 2000-500x/100

## The Attempt at a Solution

I tried doing this but do no think its correct

dx-5x = 20dt then I would integrate that.

Ray Vickson
Science Advisor
Homework Helper
Dearly Missed

## Homework Statement

dx/dt = 2000-500x/100

Solve this linear ODE using integration. You should get a function of t, x(t). This is the "analytical solution". Use the differential equation above, separate the variables, and then integrate to find x(t). Find the integration constant and simplify your final result.

## Homework Equations

dx/dt = 2000-500x/100

## The Attempt at a Solution

I tried doing this but do no think its correct

dx-5x = 20dt then I would integrate that.

As written, you DE is dx/dt = 2000 - 5x, so letting y = x-400 we have dy/dt = -5y, which is easy to solve.

However, perhaps you meant dx/dt = (2000 - 500x)/100 = 20 - 5x. If that is what you meant, that is what you should have written. Use brackets.

RGV

Sorry it was supposed to be dx/dt = (2000-500x)/100

can you help me solve it?

SammyS
Staff Emeritus
Science Advisor
Homework Helper
Gold Member
(2000-500x)/100 = 20 - 5x, for one thing.

The ODE is separable.

$\displaystyle\frac{dx}{20 - 5x}=dt\,.$

Now, integrate both sides.

how do I integrate with dx in the numerator?

Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
how do I integrate with dx in the numerator?

The nature of you questions has me wondering: what is your situation? Are you in a course that is far above your background level? Are you using a textbook that does not have any of this material in it? You are asking introductory questions that you should have seen discussed before. You can't learn the material from an on-line homework assistance site.

RGV

I am taking my first calculus course and haven't come across this before

how do I integrate with dx in the numerator?

Why wouldn't you integrate with dx in the numerator?

$$\int \frac{1}{20-5x}dx = \int dt$$

$\frac{dx}{20-5x} = \frac{1}{20-5x}dx$ after all right?

SammyS
Staff Emeritus
Science Advisor
Homework Helper
Gold Member
how do I integrate with dx in the numerator?

$\displaystyle\int\frac{dx}{20 - 5x}=dt$

Let u = 20 - 5x . → du =-5dx

We just started the integral so I don't know all of the integrating rules yet.