Finding a function that meets these conditions

Click For Summary

Homework Help Overview

The discussion revolves around finding a smooth function that can transition from a logarithmic function at the origin to a linear function with a positive y-intercept. The original poster expresses difficulty in achieving this with a continuous piecewise function made of two lines with different slopes.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the definition of "smooth" in the context of derivatives and question the feasibility of using logarithmic functions for the desired transition. There are discussions about the conditions necessary for a smooth connection between the functions and the implications of using a parabola instead.

Discussion Status

Some participants have provided insights into defining functions and constraints, while others have shared their own approaches to the problem. The original poster has indicated progress in finding a solution that does not involve logarithmic functions, suggesting a productive direction in the discussion.

Contextual Notes

There are constraints regarding the behavior of logarithmic functions near the origin and the requirements for derivatives at the intersection points. The discussion also reflects on the challenges of achieving a smooth transition between different types of functions.

kodek64
Messages
8
Reaction score
0
Hi everyone!

I'm trying to find a smooth function that can replace the intersection of a continuous piecewise function made up of two lines of different slopes, one of which starts at the origin. Right now, I'm trying to find a logarithmic function that goes from the origin (or close to it) and smoothly turns into some line mx+b where m>=1, b>0.

What I've been trying to do is find an intersection of some logarithmic function with the line where the slopes are the same. This would allow me to form a smooth, continuous piecewise function that's an upward curve from 0<x<P, and a straight line from P<=x<inf.

After doing 900 mathematica commands, I'm at a complete loss. Does anyone know if this is even possible?

Thanks everyone,

KodeK
 
Physics news on Phys.org
what do you mean by smooth (all derivatives exist?)

also what do you mean by logarithmic function?

if yoiu want a logarithmic function to smoothly go into a line, wouldn't that mean all higher order derivatives must vanish at that point?
 
lanedance said:
what do you mean by smooth (all derivatives exist?)

also what do you mean by logarithmic function?

if yoiu want a logarithmic function to smoothly go into a line, wouldn't that mean all higher order derivatives must vanish at that point?

By smooth, I mean that the derivative of the function at the intersection point is defined. The idea was to use a logarithmic function (log_b(x)), but really, all I want it to do is to connect the origin to the line that doesn't go through the origin (b>0).

The simplest way is by using another line that passes through the origin and intersects the first line, and then use the new line from 0 to P, and the first line from P to inf. The problem with this solution is that the piecewise function isn't smooth at the intersection point. I'd like both pieces of the function to seamlessly connect to each other.

Hope I'm not making this more confusing than it really is :( Let me know if you have any other questions.

Thank you!
 
i think i get it, so only the first derivative must exist at the intersection point?

note that log(x) doesn't pass through the origin but tends to negative infinity as x->0+
 
lanedance said:
i think i get it, so only the first derivative must exist at the intersection point?

note that log(x) doesn't pass through the origin but tends to negative infinity as x->0+

Yeah. I just figured this whole thing out. It only took me 10 straight hours or so :)

I will be cleaning up my solution and I'll post it in a bit :)

Thanks anyway :P
 
well if you know the point (a,b) and gradient, m, of the line that passes through the point you want to join with a log function to the origin

so deinfe the log function as
f(x) = cln(x-d) + e
then the constraints give 3 equations you can hopefully find a solution to for c,d,e
f(0) = cln(-d)+e = 0
f(a) = cln(a-d)+e = b
f'(a) = c/(a-d) = m
 
I figured it out! Not with a log function, though :)

The idea was to find a nice smooth function that connected the line with the origin. I thought log functions were a good start, but they're really more of a pain than anything. The way I solved it is as follows:

1. I came up with a direction field that described the slopes my function should have (some arbitrary slope s at x=0, and slope m at x=P). This gave me a differential equation whose solution is a parabola with coefficients of terms m, b, s and p.
2. With the right values of s and P, I could find the intersecting point of the parabola and the line. I found the two roots of this parabola, which were also w.r.t. m, b, s and p.
3. I set these two roots equal to each other to find the case when the line and the parabola intersect only ONCE, and I got a value of S w.r.t. P. This allowed me to replace one of my dependent variables in my equation.
I ended up with a parabola that intersects the line at only one point, and the point can be changed with different values of P. The smaller P is, the sooner the two functions will intersect.

Then I used mathematica to simplify expression :)

[tex]m x + (2 b x)/P - (b x^2)/P^2[/tex]

Thanks!
 
cool same process as above

so deinfe the quadratic function as
f(x) = cx^2 + dx + e
then the constraints give 3 equations you can find ana solution for c,d,e
f(0) = e = 0
f(a) = ca^2 + da = b
f'(a) = 2ca+d = m

should be able to solve for c & d (at least when a solution exists) with the quadratic equation
 
lanedance said:
cool same process as above

so deinfe the quadratic function as
f(x) = cx^2 + dx + e
then the constraints give 3 equations you can find ana solution for c,d,e
f(0) = e = 0
f(a) = ca^2 + da = b
f'(a) = 2ca+d = m

should be able to solve for c & d (at least when a solution exists) with the quadratic equation

Exactly! Had I asked yesterday, I wouldn't have gone to bed at 9 am :)
 

Similar threads

Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
14
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 19 ·
Replies
19
Views
5K
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K