Solving for constants in a differential equation

The fact that B is a constant means that it doesn't change with respect to ##\theta##, but it may change with respect to r. Solving for B gives two seemingly valid but contradicting results, but this is resolved when taking into consideration that B may also be a function of r.
  • #1
Tio Barnabe
I feel so sorry when I found myself trapped in a basic problem like this one, but let's go ahead...

Suppose we have the following equation, knowing that ##B## is a constant, $$\frac{dU( \theta)}{d \theta} + 2Br = 0$$ where we want to solve for ##B##. If we differentiate the above equation with respect to ##r## we get that ##B = 0##. But if we don't, we find $$B = -\frac{1}{2r} \frac{dU( \theta)}{d \theta}$$ That is, two seemgly valid but contradicting results. What am I missing here?
 
Physics news on Phys.org
  • #2
You treat ##B## simultaneously as a constant (first case) and as a function of ##r## (second case).

If ##B=B(r)## then differentiation gets you ##B'r+B=0## for the first equation, and ##B'=\dfrac{1}{2r^2} \dfrac{dU(\theta)}{d\theta}=-\dfrac{B}{r}## for the second, which are equal.

If ##B## is a constant, then differentiation gives ##B=0## and thus ##\dfrac{dU(\theta)}{d\theta} =0## and the second equation is also true: ##0=0##.
 
  • Like
Likes Tio Barnabe
  • #3
Thanks!
 
  • #4
Tio Barnabe said:
Suppose we have the following equation, knowing that ##B## is a constant, ##\frac{dU( \theta)}{d \theta} + 2Br = 0##
As written, it doesn't make much sense to treat r as a variable. The differential equation indicates that U is a dependent variable, and ##\theta## is the independent variable.
 

1. What is a constant in a differential equation?

A constant in a differential equation is a value that remains unchanged throughout the entire solution. It is typically denoted by the letter C and can be either a numerical value or a symbol.

2. Why do we need to solve for constants in a differential equation?

Constant values in a differential equation are important because they help determine the specific solution to the equation. Without solving for these constants, the solution would only be a general solution and lack specific values.

3. How do you solve for constants in a differential equation?

To solve for constants in a differential equation, you can use initial conditions or boundary conditions. These are known values that can be substituted into the equation to solve for the constants.

4. Can a differential equation have more than one constant?

Yes, a differential equation can have multiple constants. The number of constants depends on the order of the differential equation. For example, a first-order differential equation will have one constant, while a second-order differential equation will have two constants.

5. Are there any specific methods for solving for constants in a differential equation?

Yes, there are various methods for solving for constants in a differential equation, such as the method of undetermined coefficients, variation of parameters, and Laplace transform. The most appropriate method depends on the type and complexity of the differential equation.

Similar threads

  • Differential Equations
2
Replies
52
Views
776
  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
2
Views
975
Replies
6
Views
1K
  • Differential Equations
Replies
25
Views
2K
  • Differential Equations
Replies
1
Views
931
  • Differential Equations
Replies
3
Views
2K
  • Differential Equations
Replies
1
Views
742
Replies
2
Views
2K
Replies
7
Views
3K
Back
Top