Absolute value in a differential equation

Click For Summary

Homework Help Overview

The discussion revolves around solving the differential equation \((x+3)\frac{dy}{dx} = y - 2\), focusing on the implications of absolute values in the solution process. Participants explore how to handle the absolute value when deriving the general solution.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • Participants discuss the nature of the solutions resulting from the absolute value, questioning how to express the two branches of the function. There is an exploration of the implications of not having an initial condition to determine which branch to select.

Discussion Status

The conversation is ongoing, with participants providing insights into the necessity of choosing a branch for the absolute value function. Some guidance has been offered regarding how to express the solution without an initial condition, while others are considering how to apply a specific initial condition to find a particular solution.

Contextual Notes

There is a mention of an initial condition \((x = -1, y = 1)\) that could help in determining a specific solution, but the discussion also acknowledges the challenge of resolving the absolute value without this information.

Mr Davis 97
Messages
1,461
Reaction score
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
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.
 
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?
 
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   Reactions: Mr Davis 97
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?
 
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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
843
Replies
12
Views
2K
Replies
4
Views
3K
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K