Separation of variables, constant in front of term

Click For Summary

Discussion Overview

The discussion revolves around solving the differential equation \( x \frac{dy}{dx} = 4y \) using the method of separation of variables. Participants explore the integration process and the implications of constants introduced during the solution, particularly focusing on the correct interpretation of these constants in the context of the solution.

Discussion Character

  • Mathematical reasoning
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant presents the equation and expresses confusion about the effect of raising \( e \) to the power of both sides after integrating, specifically regarding the constant \( \frac{1}{4} \).
  • Another participant suggests simplifying the constant \( C \) by setting \( C = \ln(A) \) to combine it with other logarithmic terms on the right-hand side.
  • A different approach is proposed where participants suggest separating the variables differently to avoid introducing fractions, leading to \( \ln|y| = 4\ln|x| + c \).
  • Some participants question the validity of changing the constant \( C \) to \( \ln(C) \), arguing that it may not be a valid manipulation without proper justification.
  • Another participant explains that any constant can be expressed as the logarithm of a nonnegative constant, suggesting that defining a new constant \( D \) is acceptable.
  • Concerns are raised about whether the expression \( y = x^4 + e^C \) is a valid solution, with one participant demonstrating that it does not satisfy the original differential equation.

Areas of Agreement / Disagreement

Participants express differing views on the manipulation of constants during integration and whether certain forms of the solution are valid. There is no consensus on the best approach to handle the constants or the correctness of the proposed solutions.

Contextual Notes

Participants highlight potential confusion regarding the manipulation of constants and the implications of different forms of the solution. The discussion reflects varying interpretations of logarithmic properties and their application in solving differential equations.

find_the_fun
Messages
147
Reaction score
0
Solve the differential equation by separation of variables

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

becomes [math]\frac{1}{4y} dy = \frac{1}{x} dx[/math] Integrate to get
[math] \frac{1}{4} \ln{|y|} = \ln{|x|}+C[/math]

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

find_the_fun said:
Solve the differential equation by separation of variables

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

becomes [math]\frac{1}{4y} dy = \frac{1}{x} dx[/math] Integrate to get
[math] \frac{1}{4} \ln{|y|} = \ln{|x|}+C[/math]

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

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

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

Hello, find_the_fun!

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

Integrate: .\displaystyle \int \frac{dy}{y} \:=\:4\int\frac{dx}{x}

. . . . . . . . . \ln|y| \:=\:4\ln|x| + c

. . . . . . . . . \ln|y| \:=\:\ln(x^4) + \ln C

. . . . . . . . . \ln|y| \:=\:\ln(Cx^4)

n . . . . . . . . . . .y \:=\:Cx^4
 
re: separation of variables, constant in front of term

Getting there but still confused.

[math]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[/math]

but the answer should be [math]y=cx^4[/math]
 
re: separation of variables, constant in front of term

Go back to the point where you have:

$$\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...
 
re: separation of variables, constant in front of term

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

$$\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?
 
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 \displaystyle C = \ln{(D)}. Because the constants are arbitrary anyway, it's fine to do this.

I personally would do this though...

\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*}
 
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.
 
Re: separation of variables, constant in front of term

Is it somehow more correct to have the answer [math]Ax^4[/math] than [math]y=x^4+e^C[/math]?

Checking [math]y=x^4+e^C[/math] as a solution the the DE we get [math]\frac{dy}{dx}=4x^3[/math] so from the original equation [math]LHS=x4x^3=4x^4[/math] and [math]RHS=4y=4(x^4+e^C)=4x^4+4e^C[/math] and no value of [math]C[/math] can make [math]4e^C=0[/math]. Since the [math]RHS \neq LHS [/math] 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.

[math]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[/math]

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

-Dan
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
5K