Separation of variables, constant in front of term

In summary: C = \frac{|x|}{4}e^CSo now the equation is y=\frac{|x|}{4}e^C... oh wait, since x can be positive or negative, you should add an absolute value to |x| giving youy=\frac{|x|}{4}e^CSo now the equation is y=\frac{|x|}{4}e^C... oh wait, since x can be positive or negative, you should add an absolute value to |x| giving youy=\frac{|x|}{4}e^C... oh wait, since x can be positive or negative, you should add an absolute value to |x|
  • #1
find_the_fun
148
0
Solve the differential equation by separation of variables

\(\displaystyle x \frac{dy}{dx} = 4y\)

becomes \(\displaystyle \frac{1}{4y} dy = \frac{1}{x} dx\) Integrate to get
\(\displaystyle \frac{1}{4} \ln{|y|} = \ln{|x|}+C\)

I'm stuck here because I want to raise e to the power of both sides of the expression like
\(\displaystyle e^{ \frac{1}{4} \ln{|y|}} = e^{\ln{|x|}+C}\) but I'm not sure what affect that would have on \(\displaystyle \frac{1}{4}\)?
 
Physics news on Phys.org
  • #2
re: separation of variables, constant in front of term

find_the_fun said:
Solve the differential equation by separation of variables

\(\displaystyle x \frac{dy}{dx} = 4y\)

becomes \(\displaystyle \frac{1}{4y} dy = \frac{1}{x} dx\) Integrate to get
\(\displaystyle \frac{1}{4} \ln{|y|} = \ln{|x|}+C\)

I'm stuck here because I want to raise e to the power of both sides of the expression like
\(\displaystyle e^{ \frac{1}{4} \ln{|y|}} = e^{\ln{|x|}+C}\) but I'm not sure what affect that would have on \(\displaystyle \frac{1}{4}\)?
Recall that \(\displaystyle a \cdot ln(z) = ln( z^a )\)

To make things simpler, I'd set C = ln(A), then you can lump it in with the other ln on the RHS.

-Dan
 
  • #3
re: separation of variables, constant in front of term

Hello, find_the_fun!

[tex]x \frac{dy}{dx}\:=\:4y[/tex]

Make it easy on yourself.
Why introduce frations?Separate: .. . .[tex]\frac{dy}{y} \:=\:\frac{4\,dx}{x}[/tex]

Integrate: .[tex]\displaystyle \int \frac{dy}{y} \:=\:4\int\frac{dx}{x}[/tex]

. . . . . . . . . [tex]\ln|y| \:=\:4\ln|x| + c[/tex]

. . . . . . . . . [tex]\ln|y| \:=\:\ln(x^4) + \ln C[/tex]

. . . . . . . . . [tex]\ln|y| \:=\:\ln(Cx^4)[/tex]

n . . . . . . . . . . .[tex]y \:=\:Cx^4[/tex]
 
  • #4
re: separation of variables, constant in front of term

Getting there but still confused.

\(\displaystyle x\frac{dy}{dx}=4y \\
xdy=4ydx \\
\frac{1}{y}dy=\frac{4}{x}dx \\
\int \frac{1}{y}dy = 4 \int \frac{1}{x} dx \\

\ln{|y|}=4\ln{|x|}+C \\
\ln{|y|}=\ln{|x^4|}+C \\
e^{\ln{|y|}}=e^{\ln{|x|}+C} \\
y=x^4+e^C\)

but the answer should be \(\displaystyle y=cx^4\)
 
  • #5
re: separation of variables, constant in front of term

Go back to the point where you have:

\(\displaystyle \ln|y|=\ln\left|x^4 \right|+C\)

Now, write the arbitrary constant $C$ as $\ln(C)$, and then apply the additive property of logarithms...
 
  • #6
re: separation of variables, constant in front of term

MarkFL said:
Go back to the point where you have:

\(\displaystyle \ln|y|=\ln\left|x^4 \right|+C\)

Now, write the arbitrary constant $C$ as $\ln(C)$, and then apply the additive property of logarithms...

How can you randomly change $C$ to $\ln(C)$? Isn't that like saying a+b=c is the same as a+ln(b)=c?
 
  • #7
re: separation of variables, constant in front of term

find_the_fun said:
How can you randomly change $C$ to $\ln(C)$? Isn't that like saying a+b=c is the same as a+ln(b)=c?

Mark shouldn't use the same symbol. The idea is that any constant can be written as the logarithm of another nonnegative constant. Or if you like, the logarithm of any nonnegative constant is in fact, a constant.

So we could define a new constant D so that [tex]\displaystyle C = \ln{(D)}[/tex]. Because the constants are arbitrary anyway, it's fine to do this.

I personally would do this though...

[tex]\displaystyle \begin{align*} \ln{|y|} + C_1 &= 4\ln{|x|} + C_2 \textrm{ where } C_1 \textrm{ and } C_2 \textrm{ are constants we get from integrating both sides} \\ \ln{|y|} - 4\ln{|x|} &= C_2 - C_1 \\ \ln{|y|} - \ln{ \left| x^4 \right| } &= C_2 - C_1 \\ \ln{ \left| \frac{y}{x^4} \right| } &= C_2 - C_1 \\ \left| \frac{y}{x^4} \right| &= e^{C_2 - C_1} \\ \frac{y}{x^4} &= A \textrm{ where } A = \pm e^{C_2 - C_1} \\ y &= A\,x^4 \end{align*}[/tex]
 
  • #8
re: separation of variables, constant in front of term

find_the_fun said:
How can you randomly change $C$ to $\ln(C)$? Isn't that like saying a+b=c is the same as a+ln(b)=c?

Yes, it is probably better to use different symbols until you get used to manipulating constants of integration in such a manner.
 
  • #9
Re: separation of variables, constant in front of term

Is it somehow more correct to have the answer \(\displaystyle Ax^4\) than \(\displaystyle y=x^4+e^C\)?

Checking \(\displaystyle y=x^4+e^C\) as a solution the the DE we get \(\displaystyle \frac{dy}{dx}=4x^3\) so from the original equation \(\displaystyle LHS=x4x^3=4x^4\) and \(\displaystyle RHS=4y=4(x^4+e^C)=4x^4+4e^C\) and no value of \(\displaystyle C\) can make \(\displaystyle 4e^C=0\). Since the \(\displaystyle RHS \neq LHS \) does this fail as a solution to the DE?
 
  • #10
Re: separation of variables, constant in front of term

find_the_fun said:
Getting there but still confused.

\(\displaystyle x\frac{dy}{dx}=4y \\
xdy=4ydx \\
\frac{1}{y}dy=\frac{4}{x}dx \\
\int \frac{1}{y}dy = 4 \int \frac{1}{x} dx \\

\ln{|y|}=4\ln{|x|}+C \\
\ln{|y|}=\ln{|x^4|}+C \\
e^{\ln{|y|}}=e^{\ln{|x|}+C} \\
y=x^4+e^C\)

but the answer should be \(\displaystyle y=cx^4\)
Take your second to the last step. You applied the exponent laws wrong:
\(\displaystyle e^{ ln|y| } = e^{ ln(|x|/4) + C } = e^{ ln(|x|/4 )} \cdot e^C\)

-Dan
 

FAQ: Separation of variables, constant in front of term

What is separation of variables?

Separation of variables is a mathematical technique used to solve differential equations. It involves separating a function into two or more functions, each containing only one independent variable.

Why is separation of variables important?

Separation of variables is important because it allows us to solve complex differential equations by breaking them down into simpler equations. This makes it easier to find solutions and understand the behavior of the system being described.

What is the constant in front of a term?

In separation of variables, the constant in front of a term is a coefficient that remains unchanged throughout the separation process. It is often represented by the letter "C" and is used to account for any potential solutions that may have been lost during the separation process.

How do you determine the value of the constant in front of a term?

The value of the constant in front of a term is determined by applying initial conditions or boundary conditions to the separated equations. These conditions will help to narrow down the possible values of the constant and find the specific solution to the original differential equation.

What are some applications of separation of variables?

Separation of variables is commonly used in fields such as physics, engineering, and economics to model and analyze various systems. It can also be applied to solve problems in fluid dynamics, heat transfer, and population dynamics, among others.

Similar threads

Replies
3
Views
2K
Replies
2
Views
2K
Replies
3
Views
2K
Replies
5
Views
4K
Replies
3
Views
1K
Replies
36
Views
1K
Back
Top