# Calculating velocity with variable acceleration

• scain6043
In summary, Nathanial is attempting to solve a differential equation but is having trouble with it. He suggests integrating it twice to see if it gives a correct answer.

#### scain6043

This is not so much coursework as it is a thought experiment that has been bugging me for a while now.

1. Homework Statement

Find the equation for velocity either as a function of distance (x) or time (t).

I have an object whose acceleration is given by the rational function a(x) = (a+x)/(b-x) where x is the distance traveled and a and b are some constant.

The actual equation has many more values and constants in it but this simplified version should be fairly similar.

2. The attempt at a solution

First, I resorted to the motion equations but quickly realized that the acceleration is not constant. My second thought was to use motion equations that deal with variable acceleration that use jerk and so forth but soon found that due to the rational nature of the function a(x) that it is not possible to get a derivative that is a constant.

Yesterday, the idea came to me that if I took the derivative of a(x) my resulting function would have the units 1/(sec)2 which could be manipulated by taking the square root of the reciprocal to obtain time with respect to distance (x). However, this still does not solve the problem because I'm not sure if the manipulation is mathematically sound and this still does not solve the problem of variable acceleration. Any thoughts?

scain6043 said:
Yesterday, the idea came to me that if I took the derivative of a(x) my resulting function would have the units 1/(sec)2 which could be manipulated by taking the square root of the reciprocal to obtain time with respect to distance (x). However, this still does not solve the problem because I'm not sure if the manipulation is mathematically sound and this still does not solve the problem of variable acceleration. Any thoughts?
I would be surprised if that gave the correct t(x)

The goal is to solve the differential equation $\frac{d^2x}{dt^2}=\frac{a+x}{b-x}$
I am the opposite of an expert at differential equations, but I'm thinking you might be able to separate it and integrate both sides twice:
$∫∫\frac{b-x}{a+x}d^2x=∫∫dt^2$
The left side would be easier to integrate if you wrote it like this:
$∫∫\frac{b-x}{a+x}d^2x=∫∫\frac{b+a-(a+x)}{a+x}d^2x=∫∫(\frac{b+a}{a+x}-1)d^2x$

I am not sure if this would give the correct solution. I replied to you so that I can also learn from this problem. I'm sure someone more knowledgeable will help soon.

Nathanael said:
I would be surprised if that gave the correct t(x)

The goal is to solve the differential equation $\frac{d^2x}{dt^2}=\frac{a+x}{b-x}$
I am the opposite of an expert at differential equations, but I'm thinking you might be able to separate it and integrate both sides twice:
$∫∫\frac{b-x}{a+x}d^2x=∫∫dt^2$
The left side would be easier to integrate if you wrote it like this:
$∫∫\frac{b-x}{a+x}d^2x=∫∫\frac{b+a-(a+x)}{a+x}d^2x=∫∫(\frac{b+a}{a+x}-1)d^2x$

I am not sure if this would give the correct solution. I replied to you so that I can also learn from this problem. I'm sure someone more knowledgeable will help soon.
Hi Nathanial. You can't integrate it like that. It's not correct mathematically. But, here is something that will work:

By the chain rule:

##a = \frac{dv}{dt}=\frac{dv}{dx}\frac{dx}{dt}=v\frac{dv}{dx}=\frac{1}{2}\frac{dv^2}{dx}##

Chet

Nathanael
Chestermiller said:
It's not correct mathematically.
In particular ##\int d^2x## is meaningless. It can't be thought of as ##\int\int dx^2##.
Chestermiller said:
By the chain rule:
##a = \frac{dv}{dt}=\frac{dv}{dx}\frac{dx}{dt}=v\frac{dv}{dx}=\frac{1}{2}\frac{dv^2}{dx}##
Yes, a trick worth noting. It's equivalent to working with energy instead of forces, ##F.dx = mv.dv##. Typically, it allows you to get v as a function of position in closed form, but not v as a function of time. Fortunately, the OP asks for either.

Nathanael
Thanks for the replies! I understand that using energy I can find the velocity but isn't that only if the change in energy is already known?

scain6043 said:
Thanks for the replies! I understand that using energy I can find the velocity but isn't that only if the change in energy is already known?
No way. Play around with the equations a little and see what you come up with.

Chet

## 1. How do you calculate velocity with variable acceleration?

To calculate velocity with variable acceleration, you would use the equation v = u + at, where v is the final velocity, u is the initial velocity, a is the acceleration, and t is the time interval.

## 2. What is the difference between constant and variable acceleration?

Constant acceleration means that the acceleration remains the same throughout the entire motion, while variable acceleration means that the acceleration changes at different points during the motion.

## 3. How does the direction of acceleration affect velocity?

The direction of acceleration can either increase or decrease the velocity, depending on whether the acceleration is in the same direction as the velocity (which would increase the velocity) or in the opposite direction (which would decrease the velocity).

## 4. Can velocity be negative when calculating with variable acceleration?

Yes, velocity can be negative when calculating with variable acceleration. This indicates that the object is moving in the opposite direction of the positive direction chosen for the calculation.

## 5. What is the unit of measurement for velocity with variable acceleration?

The unit of measurement for velocity with variable acceleration is meters per second (m/s).