Differential equation question (I think)

In summary, the student attempted to solve a homework equation that involved integrating dy/dx by substituting u=1+ay, but was not able to get a cosh in the result. After checking the rearrangement many times, the student realized that the equation was separable and was able to get the result by integrating dy/dx and substituting u=1+ay.
  • #1
whatisreality
290
1

1. Homework Statement

It's to do with mirages, but I don't think the physics context is too important. It's also possible that the solution doesn't involve differential equations, and my method is completely wrong. I've been given that:

##A = \frac{n(1+ay)}{ sqrt(1+(y')^2)}##

where y' is dy/dx. I have to show that

##y = -\frac{1}{a} + \frac{A}{na}## cosh( ##\frac{na}{A}##(x-x0))

A, n and a are real constants.

Homework Equations

The Attempt at a Solution


I tried rearranging it to get dy/dx = ... , by multiplying by the denominator then dividing by A, squaring both sides, subtracting 1 and then square rooting. I ended up with:

##y'=\sqrt{\frac{n^2 (1+ay)^2}{A^2} -1}##

And that's separable. So
##dx = \frac{1}{\sqrt{\frac{n^2 (1+ay)^2}{A^2} -1}}dy##
And then if I integrate both sides by doing substitutions like u =1+ay, I get ln of something. Nowhere near the show that result.
Checked the rearrangement so many times. What did I do?
 
Physics news on Phys.org
  • #2
whatisreality said:

Homework Statement


It's to do with mirages, but I don't think the physics context is too important. It's also possible that the solution doesn't involve differential equations, and my method is completely wrong. I've been given that:

##A = \frac{n(1+ay)}{ sqrt(1+(y')^2)}##

where y' is dy/dx. I have to show that

##y = -\frac{1}{a} + \frac{A}{na}## cosh( ##\frac{na}{A}##(x-x0))

A, n and a are real constants.

Homework Equations

The Attempt at a Solution


I tried rearranging it to get dy/dx = ... , by multiplying by the denominator then dividing by A, squaring both sides, subtracting 1 and then square rooting. I ended up with:

##y'=\sqrt{\frac{n^2 (1+ay)^2}{A^2} -1}##

And that's separable. So
##dx = \frac{1}{\sqrt{\frac{n^2 (1+ay)^2}{A^2} -1}}dy##
And then if I integrate both sides by doing substitutions like u =1+ay, I get ln of something. Nowhere near the show that result.
Checked the rearrangement so many times. What did I do?
It's not clear how your integration got LN (something). Please post your work to get this result.
 
  • #3
Sorry. So I substituted u=1+ay, du/a = dy so that the integration becomes the integral of

##\frac{1}{a} \frac{1}{\sqrt{ \frac{n^2 u^2}{A^2} -1}} du##

Which is ln. I checked with wolfram alpha by replacing n^2/A^2 with just b, because it's just a constant, like the 1/a which is ignored in the integral. So I think it's still the same thing.
 
Last edited:
  • #4
From what you say you get x = LN(some function of y).
This is not at all a sign that you have done anything wrong - when you work on your result (invert the equation to get y = some function of x) this may very well have a cosh in it.
 
  • Like
Likes whatisreality
  • #5
I don't think I know how to do that. To invert the ln, wouldn't that involve e?
 
  • #6
Oh, wait, there's a definition of cosh involving e! 1/2 e-x+ex?

Haven't actually done the integral yet, just assumed because of the ln it would be wrong. So I'll try that integral now...
 
Last edited:
  • #7
whatisreality said:
Oh, wait, there's a definition of cosh involving e! 1/2 e-x+ex?
Well, 1/2 (e-x+ex)- the parentheses are important. If B= (1/2)(e-x+ ex) then e-x+ ex= 2B. Multiply on both sides by ex to get 1+ (ex)2= 2Bex. Let y= ex and that becomes the quadratic equation 1+ y2= 2By or y2- 2By+ 1= 0. Use the quadratic formula to find y and then take the logarithm to solve y= ex for x.
 
  • Like
Likes whatisreality
  • #8
Oh, forgot about the brackets. So my integral is equal to
1/a ln(##\sqrt{a^2x^2-1}+ax) + c

If a is the n^2/A^2.

And that integral is equal to x. So I don't think I end up with two terms of e to the power of something, just two es multiplied together.

Hardest 'show that' question I've ever been given!
 
  • #9
epenguin said:
From what you say you get x = LN(some function of y).
This is not at all a sign that you have done anything wrong - when you work on your result (invert the equation to get y = some function of x) this may very well have a cosh in it.
I think I still haven't got a cosh. Although I haven't posted my full working, as far as I can tell I don't get two e^something terms when I invert to find y. I'm fairly sure my integration is correct, checked it with wolfram alpha!
 
  • #10
I'm not working on it but idea where to look: it might have to do with when you write your first √ you have to write ± so maybe you get two |solutions you have to combine in one? Or if you integrate to get a LN there a tricky thing about LN | | , maybe? - check your textbook. Maybe these two things are related.
 
  • Like
Likes whatisreality
  • #11
Forget most of what I said. We haven't seen working :oldfrown: and if we had I dare say someone would have spotted quite soon.

Now I had time to look at it (then was cut off by 48 h Internet blackout) it is looking like a simple error in calculation. The OP probably overlooked a square rooting at some point - he would have got this log result integrating an inverse quadratic, instead the problem gives an inverse square root of a quadratic whose standard integral is an inverse cosh.
 
Last edited:
  • Like
Likes whatisreality
  • #12
Since the problem is to show that [itex]y = -\frac{1}{a} + \frac{A}{na} cosh( naA \frac{na}{A} (x-x0))[/itex] is a solution to the given differential equation, I don't understand why you are integrating at all! Just differentiate y, the substitute the given y and its derivative into the equation and show that the equation is satisfied.
 
  • Like
Likes whatisreality
  • #13
Well yes people should always do that when they read physics instead of the so-called 'solving', they will get through college them faster and with less distraction from the physics. (Seriously).
You
 
  • Like
Likes whatisreality
  • #14
HallsofIvy said:
Since the problem is to show that [itex]y = -\frac{1}{a} + \frac{A}{na} cosh( naA \frac{na}{A} (x-x0))[/itex] is a solution to the given differential equation, I don't understand why you are integrating at all! Just differentiate y, the substitute the given y and its derivative into the equation and show that the equation is satisfied.
Yes, I did try that first.

So dy/dx is -sinh(na/A (x-x0) ) from the given equation, so y'2 is then sinh2(...), and sub into equation for A to get n(1+ay)/ sqrt (1+ sinh2(...) ) = n(1+ay) / sqrt ( cosh2(...) )
which is just n(1+ay) / cosh(...) = A. Then substitute the y? That'll be the step I forgot! Oops!

Edit: And the step which, having just completed, gave me the answer in a really quick and easy way! What a stupid mistake to make. Thanks for solving my problem! :D
 
Last edited:
  • #15
epenguin said:
Forget most of what I said. We haven't seen working :oldfrown: and if we had I dare say someone would have spotted quite soon.

Now I had time to look at it (then was cut off by 48 h Internet blackout) it is looking like a simple error in calculation. The OP probably overlooked a square rooting at some point - he would have got this log result integrating and inverse quadratic, instead the problem gives an inverse square root of a quadratic whose standard integral is an inverse cosh.

I got my ln result from integrating ## \frac{1}{ \sqrt{\frac{n^2(1+ay)^2}{A^2} -1}}##. Not that I actually know how to integrate that, I had to use wolfram alpha... Yeah, I suppose that might be the main problem really, I don't know where to even start with an integral like that!

Because even if I try and condense the thing under the square root into something manageable, which for me means replacing multiple constants with a single constant, I end up with
1 / ##\sqrt{a(1+by)^2 -1}##
Which isn't a standard kind of integral that I know...

Also an integral I no longer need to solve! :) I do feel very silly though!
 
Last edited:
  • #16
epenguin said:
Forget most of what I said. We haven't seen working :oldfrown: and if we had I dare say someone would have spotted quite soon.

Now I had time to look at it (then was cut off by 48 h Internet blackout) it is looking like a simple error in calculation. The OP probably overlooked a square rooting at some point - he would have got this log result integrating and inverse quadratic, instead the problem gives an inverse square root of a quadratic whose standard integral is an inverse cosh.

I know, I did realize afterwards that not posting workings must have made it more difficult. I do appreciate you replying despite that :) Thank you for helping me everyone! :D
 
  • #17
whatisreality said:
I got my ln result from integrating ## \frac{1}{ \sqrt{\frac{n^2(1+ay)^2}{A^2} -1}}##. Not that I actually know how to integrate that, I had to use wolfram alpha... Yeah, I suppose that might be the main problem really, I don't know where to even start with an integral like that!

Because even if I try and condense the thing under the square root into something manageable, which for me means replacing multiple constants with a single constant, I end up with
1 / ##\sqrt{a(1+by)^2 -1}##
Which isn't a standard kind of integral that I know...

Also an integral I no longer need to solve! :) I do feel very silly though!

We were taught to do.these integrations at school. Somewhat pointless knowledge for most, I think. Or not even knowledge, at least I remember being asked for it or something like it a few months after school - similar things have some slight application in chemical kinetics - and I couldn't do it.

You should however be able to reduce it to standard form by substitution, otherwise you may not be able to find or recognize it in a table of standard forms. You only needed to make a new variable Y = n(1 + ay)/A and you will get to integrating 1/√(Y2 - 1), a standard form found in halfway decent books on calculus.
 

1. What is a differential equation?

A differential equation is a mathematical equation that describes how a function changes over time or space. It involves derivatives of the function, which represent the rate of change of the function at a particular point.

2. Why are differential equations important?

Differential equations are important because they are used to model and describe various phenomena in physics, engineering, economics, and other fields. They allow us to predict and understand how a system will behave over time.

3. What are the types of differential equations?

The two main types of differential equations are ordinary differential equations (ODEs) and partial differential equations (PDEs). ODEs involve only one independent variable and PDEs involve multiple independent variables.

4. How do you solve a differential equation?

The method for solving a differential equation depends on its type and complexity. Some can be solved analytically by finding an explicit solution, while others require numerical methods. It is also important to determine the initial conditions or boundary conditions for the equation.

5. What are some real-world applications of differential equations?

Differential equations have many applications in science and engineering, such as modeling population growth, predicting weather patterns, designing electrical circuits, and analyzing the stock market. They are also used in fields like biology, chemistry, and economics to understand and predict complex systems.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
760
  • Calculus and Beyond Homework Help
Replies
21
Views
842
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
372
  • Calculus and Beyond Homework Help
Replies
4
Views
694
  • Calculus and Beyond Homework Help
Replies
7
Views
285
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
620
  • Calculus and Beyond Homework Help
Replies
14
Views
249
Back
Top