# Integrating factors or separating the variables

[SOLVED] Integrating factors or separating the variables

## Homework Statement

The following equation can be solved by intergrating factors or by separating the variables.

$$\frac{dy}{dx}$$ - $$\frac{y}{4x}$$ = 0

with the initial condition of y(2)=3

## The Attempt at a Solution

This problem is the final part of a question in which I am supposed to find the trajectory of a particle if it moves continuously in the directoin of maximum temperature increase. Setting the trajectory so that it is in the direction of the gradient allows me to figure out all the way to the point above. However, I cannot simplify the equation down further into a function of y in terms of x... any help would be greatly appreciated... thanks

## Answers and Replies

Dick
Science Advisor
Homework Helper
It looks pretty separable to me. dy/dx=y/(4x), dy/y=dx/(4x). Now just integrate both sides.

integrating both sides gives ln(y) = ln(x)/4 = ln(x^1/4)... so y = x^1/4.. as for the inital condition, my inclination would be to plug in (2,3) into the equation... so 3 = 2^1/4 + C.. However, based on what I think it should be, instead of adding C I should be multiplying by C. But I don't know why..

Dick
Science Advisor
Homework Helper
You get ln(y)=ln(x^(1/4))+C. That's fine. But to get rid of the logs you exponentiate exp(ln(x^(1/4))+C)=exp(ln(x^(1/4))*exp(C)=x^(1/4)*exp(C). The additive constant becomes multiplicative after you exponentiate.

alright thank you.. so the constant has to be added right after the integration occurs.. I forgot about that. thanks a lot