Absolute value in a differential equation

In summary: For ##y = 2 \pm k|x+3|##, you would get ##y = -2 \pm k|x+3|##.For ##y = 2 \pm k|x+3|##, you would get ##y = -2 \pm k|x+3|##.
  • #1
Mr Davis 97
1,462
44

Homework Statement


##\displaystyle (x+3)\frac{dy}{dx} = y - 2##, where x is not 3 and y is not 2.

Homework Equations

The Attempt at a Solution



##\displaystyle (x+3)\frac{dy}{dx} = y - 2##
##\displaystyle \frac{dy}{y-2} = \frac{dx}{x+3}##
##\displaystyle \int \frac{dy}{y-2} = \int \frac{dx}{x+3}##
##\ln|y-2| = \ln|x+3| + c##
##\displaystyle |y-2| = e^{\ln |x+3|+c}##
##\displaystyle |y-2| = ke^{\ln |x+3|}##, where ##k=e^c##
##\displaystyle |y-2| = k|x+3|##

This is as far as I can get. I am not sure how I can get rid of the absolute value signs in order to obtain a single function.
 
Physics news on Phys.org
  • #2
You can't, because there are two functions, not one, so you have to choose one of them - sometimes called 'choosing a branch'.
To find out what the two functions are, write the right-hand side, which is a well-defined function, as f(x), and then explicitly write out the two possibilities created by the absolute value function on the left hand side.

Rearranging, you will get two different expressions for y in terms of f(x), corresponding to the two different branches of the absolute value.
 
  • #3
andrewkirk said:
You can't, because there are two functions, not one, so you have to choose one of them - sometimes called 'choosing a branch'.
To find out what the two functions are, write the right-hand side, which is a well-defined function, as f(x), and then explicitly write out the two possibilities created by the absolute value function on the left hand side.

Rearranging, you will get two different expressions for y in terms of f(x), corresponding to the two different branches of the absolute value.
So are the two possible functions

##y = 2 + k|x+3|##
and
##y = 2-k|x+3|##
?

So I have to choose one of these as a solution?
 
  • #4
Mr Davis 97 said:
So are the two possible functions

##y = 2 + k|x+3|##
and
##y = 2-k|x+3|##
?

So I have to choose one of these as a solution?
Without an initial condition you can't know which is the correct solution. In that case, you can leave your solution as ## y = 2 \pm |x + 3|##, with k being a positive constant.
 
  • Like
Likes Mr Davis 97
  • #5
Mark44 said:
Without an initial condition you can't know which is the correct solution. In that case, you can leave your solution as ## y = 2 \pm |x + 3|##, with k being a positive constant.
Given that the initial condition is (x = -1, y = 1), how do you go from ##y = 2 \pm k|x+3|## to a specific solution?
 
  • #6
Mr Davis 97 said:
Given that the initial condition is (x = -1, y = 1), how do you go from ##y = 2 \pm k|x+3|## to a specific solution?
Plug in the initial condition in each possible solution and see what you get.
 

Related to Absolute value in a differential equation

What is the absolute value in a differential equation?

The absolute value in a differential equation refers to the magnitude of a given variable, without considering its direction or sign. It is represented by the vertical bars surrounding the variable.

Why is the absolute value used in differential equations?

The absolute value is used in differential equations because it allows for a more general solution, as it considers both positive and negative values of the variable. This is important because many real-world problems involve quantities that can be either positive or negative.

How is the absolute value used in solving differential equations?

The absolute value is used in solving differential equations by considering two separate cases: one where the variable is positive and one where it is negative. This allows for two different solutions to be obtained, which can then be combined to form the general solution.

Can the absolute value be used with any type of differential equation?

Yes, the absolute value can be used with any type of differential equation, as long as the equation involves a variable that can be either positive or negative. It is a common practice in many branches of science and engineering.

How does the absolute value affect the stability of a differential equation?

The absolute value does not directly affect the stability of a differential equation. However, it can change the behavior of the solution, especially around critical points, which can in turn affect the stability of the equation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
807
  • Calculus and Beyond Homework Help
Replies
14
Views
367
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
842
  • Calculus and Beyond Homework Help
Replies
21
Views
904
  • Calculus and Beyond Homework Help
Replies
25
Views
473
  • Calculus and Beyond Homework Help
Replies
6
Views
591
  • Calculus and Beyond Homework Help
Replies
8
Views
798
  • Calculus and Beyond Homework Help
Replies
7
Views
718
Back
Top