Inactive Tutor answered 04/12/17
Tutor
New to Wyzant
The key clue here is that the resulting curve must be differentiable, i.e., the slope of the lines on either side of the connection point at (-1, 3) must have the same slope. Having resolved the value of c as +4, in the third piece, we can differentiate that piece. We should then get:
f'(x) = 3x2 - 4 when x > -1
Therefore, at x = -1
f'(-1) = 3 - 4 = -1
The first piece of the function has two parameters to be resolved, a and b. If we evaluate the function at the point (-1, 3), we get:
f(-1) = a(-1)2 + b(-1) = a - b = 3
so
a = b + 3
If we differentiate the function's first branch, we get:
f'(x) = 2ax + b
and we need to set that to -1 at x = -1 to have the curve continuous and differentiable at the join.
So we now have two equations for the first piece of the function:
-2a + b = -1
a = b + 3
this will give us b = -5 and so a = -2
Placing these values into the equations, we get the full function being:
f(x) = -2x2 - 5x when x < -1
= 3 when x = -1
= x3 - 4 when x > -1
This should be differentiable with a slope of -1 at x = -1, and continuous through the point (-1, 3).
John B.
I suppose I have one quick question, I don't understand why the derivative of the function is not 0 when x=-1 as the derivative of 3 is zero.
Report
04/12/17
Inactive Tutor
At exactly x = -1, there is a point, but it has zero width. Even though the differential uses infinitesimals, they are not actually quite zero. So any slope measured at x = -1 must include something an infinitesimal amount either side of (-1, 3).
Also, when you are moving along the line, the slope going into the point (-1, 3) will be -1, and going out of the point will be -1, so if the point has zero length, you can't tell that there was anything between the curves that wasn't allowed at -1.
Maybe not a great rationale, but it gets around the issue you raise!
Report
04/12/17
Inactive Tutor
Sorry, 'allowed' should be 'sloped.' #$%@! spelling correctors!
Report
04/12/17
John B.
04/12/17