Making a piecewise function continuous everywhere

AI Thread Summary
The discussion revolves around finding values for p, q, and r in a piecewise function to ensure continuity everywhere and that f(2) equals p. It is established that p must be 4 and r should be 1/2 for continuity at x=2. However, there is confusion regarding the value of q, as calculations suggest it cannot be less than 2 while still maintaining continuity. The original problem is questioned for potential errors, particularly regarding the continuity condition at x=q. Ultimately, the consensus is that the question likely contains a mistake, as no valid value of q exists under the given constraints.
ninty45
Messages
4
Reaction score
0

Homework Statement



Given the piecewise function

<br /> f(x) = \left\{<br /> \begin{array}{lr}<br /> \frac{(2-x)^2-p}{x} &amp;: x &lt; q\\<br /> r(x+6) &amp;: q \leq x &lt;2 \\<br /> x^3-p &amp;: x \geq 2<br /> \end{array}<br /> \right.<br />

Find the values of p,q,r such that f(x) is continuous everywhere and f(2) = p

The Attempt at a Solution


Since f(2) = p,
<br /> f(2) = (2)^3 - p = p\\<br /> 8-p=p\\<br /> p=4<br />

If f(x) is continuous everywhere, then

<br /> \lim_{x \to 2} f(x) = f(2)<br />

But f(2)=p, and r(x+6) is always smooth, hence

<br /> r(2+6) = 4 \\<br /> r = \frac{1}{4}<br />

My difficulty is with q. Again from (assumed) continuity, at x=q,

<br /> \lim_{x \to q} f(x) = f(q) \\<br /> \lim_{x \to q} \frac{(2-x)^2-4}{x} = \frac{1}{2}(q+6) \\<br /> \lim_{x \to q} x-4 = \frac{1}{2}(q+6) \\<br /> 2q-8 = q+6 \\<br /> q=14<br />

but from the original function, q <2. The answer given is supposedly q=0, but I do not see then how the function could be continuous.

Are my calculations wrong? I tried assuming that q =0, hence instead of factorising the limit I used l'hopital but no dice.

I am including the original picture as a comparison.
Question.jpg
 
Physics news on Phys.org
ninty45 said:
<br /> r(2+6) = 4 \\<br /> r = \frac{1}{4}<br />

There's a bit of a error there, I'm sorry to say.
 
My mistake. I wrote that incorrectly, it should be r=\frac{1}{2}.

However in the following working, I indeed used r=\frac{1}{2}.
 
You are correct. In order that f(2)= 2, p must be 4 and in order that the function be continuous at x= 2, r must be 1/2 (you say "1/4" but I presume that is a typo since you later use "1/2"). But in that case, there is NO value of q, less than 2, such that [(2- q)^2- 4]/q is equal to (1/2)(q+ 6) so there is no value of q, less than 2, such that f(x) is continuous at x= q.
 
Last edited by a moderator:
ninty45 said:
My mistake. I wrote that incorrectly, it should be r=\frac{1}{2}.

However in the following working, I indeed used r=\frac{1}{2}.

The question looks wrong. Also, it doesn't cover the case where x = 0, so I assume there is a typo somewhere.
 
Thanks for the replies. I'll just chalk this one up as one of those incorrect questions.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top