Vandella said:
Calculus i didnt find too bad, just don't like it :)
mechanics is a problem didnt do any at A level
Thanks for all your help tonight
I have figured out how to solve it, but it is complicated:
Start with
[tex]v\frac{dv}{dx} = g - kv^2[/tex]
Now, notice that the left hand side looks like something
that has already been differentiated using the chain rule. In math, they call such an expression an
exact differential, since it is the derivative of something. In particular, "reversing" the chain rule in your head, you can see that:
[tex]v\frac{dv}{dx} = \frac{d}{dx}\left[\frac{1}{2}v^2\right][/tex].
To verify that this is true, just differentiate the expression in square brackets using the chain rule, and you'll get back what is on the left hand side. So we end up with:
[tex]\frac{d}{dx}\left[\frac{1}{2}v^2\right] = g - kv^2[/tex].
Let's now introduce a change of variables i.e. a substitution. Let u = (1/2)v
2. Then the differential equation becomes:
[tex]\frac{du}{dx} = g - 2ku[/tex]
[tex]\frac{du}{dx} + 2ku = g[/tex]
Now this is a linear differential equation that I
DO know how to solve. It can be solved by a method known as the
method of integrating factors. If/when you take a course in ordinary differential equations, you will learn this method. Basically, it involves multiplying both sides of the equation by an integrating factor. The integrating factor is a factor that turns the left-hand side into an exact differential. In this case, the left hand side will look like
something that has been differentiated using the product rule. You can then "reverse" this differentiation by integrating both sides w.r.t. x. After applying the initial condition u(0) = 0, you'll be able to solve for u(x) and hence for v(x).
The integrating factor is always exp(∫ψdx) where ψ is the coefficient on the second term (the term that has only u in it and no derivatives). So, in this case, ψ = 2k, and the integrating factor becomes exp(2kx). If you multiply both sides by this factor, you should be able to solve the equation.
Edit: I just realized that the initial condition is actually u(h) = 0, not u(0) = 0. So that will change the form of the solution somewhat.