Help with a differentiable function problem? Will medal!
\[f(x)=asin(x)+b\] where x<=2pi \[f(x)=x²-pix+2\] where x>2pi What are values a and b that f(x) is differentiable?
That is supposed to be x^2 - pi(x) +2 in the second equation
@jim_thompson5910 any chance you could help?
what do you get when you differentiate each function?
acosx and 2x-pi
plug x = 2pi into each derivative function and then set the two equal to one another, and solve for a
I'm going to do a bit of notation change
Let g(x) = a*sin(x) + b h(x) = x^2 - pi*x + 2
That makes so much sense! And that isn't a problem that only one really touches 2pi?
Now let f(x) be the piecewise function composed of g(x) and h(x) (based on the restrictions above)
if f(x) is differentiable, then it has to be continuous so that means g(2pi) = h(2pi) has to be true since this is the only possible discontinuity (the junction where they join)
also if f(x) is differentiable, then g ' (2pi) = h ' (2pi) also has to be true
Oh, of course! so because f(x) is differentiable, the derivatives will have the same slope at the point which allows me just to substitute and solve?
Would I then get b based off of the y-value of h(x) at x=2pi?
what do you get for the value of 'a'?
about 9.4?
you should have a = 3pi
so you have it roughly
g(x) = a*sin(x) + b turns into g(x) = 3pi*sin(x) + b
we have this now g(x) = 3pi*sin(x) + b h(x) = x^2 - pi*x + 2
that makes sense
to find b, you need to plug in x = 2pi into the original g and h, set the two equal to one another, and solve for b
g(x) = h(x) g(2pi) = h(2pi) 3pi*sin(2pi) + b = (2pi)^2 - pi*2pi + 2 solve for b
And they will equal each other because they will be the same y value for x=2pi?
yeah we want to force the two functions to line up and not have a jump discontinuity there
Wow jim, good understanding of functions, differentiation and trig obvious!
thanks
So b= approx. 21.74?
that looks about right, I'm getting (2pi)^2 - pi*2pi + 2 = 21.7392 which rounds to 21.74
if you need the exact value of b, then (2pi)^2 - pi*2pi + 2 = 4pi^2 - 2pi^2 + 2 = 2pi^2 + 2
just curious: is a.sinx = a. dy(sinx)/dx?
@jim_thompson5910
what do you mean? you mean differentiating a*sin(x) ?
yes, just multiplying by constant a jim?
oh, yeah 'a' is a constant
so \[\Large \frac{d}{dx}[a*\sin(x)] = a*\frac{d}{dx}[\sin(x)]\]
and there you go @TSV , that is the rule
Thank you so much! This all made a lot more sense after walking through some steps. I really appreciate it!
oh well, @jim_thompson5910 is really good!
you're welcome
Join our real-time social learning platform and learn together with your friends!