• edited by
11,224 views
43 43 votes
Let $f$ be a function defined by

$$f(x)=\begin{cases}
x^2 & \text{for } x \le 1 \\
ax^2 + bx + c & \text{for } 1 &lt x \le 2\\

x + d & \text{for } x > 2
\end{cases}$$
Find the values for the constants $a, b, c$ and $d$ so that $f$ is continuous and differentiable everywhere on the real line.

2 Answers

Best answer
38 38 votes
$f$ is differentiable at $1$ if

$\lim\limits_{h \to 0^{-}} \frac{f(1+h)-f(1)}{h}=\lim\limits_{h \to 0^{+}}\frac{f(1+h)-f(1)}{h}$

$\Rightarrow2 = 2a+b - (1)$

$f$ is differentiable at $2$ if

$\lim\limits_{h \to 0^{-}} \frac{f(2+h)-f(2)}{h}=\lim\limits_{h \to 0^{+}}\frac{f(2+h)-f(2)}{h}$

$\Rightarrow 4a+b = 1 - (2)$

Solving $(1)$ and $(2),$ we get

$a = -0.5, b = 3$

Now, $f$ has to be continous on $1$ also, so

$\lim\limits_{x \to 1^{-}} f(x)=\lim\limits_{x \to 1^{+}}(x)=f(1)$

$\Rightarrow 1 = a + b + c$

$\Rightarrow c = -1.5$

Similarly, $f$ has to be continous on $2$ also, so

$\lim\limits_{x \to 2^{-}} f(x)=\lim\limits_{x \to 2^{+}}(x)=f(2)$

$\Rightarrow 4a+2b+c = 2+d$

$\Rightarrow d = 0.5$

So, $a = -0.5, b = 3, c = -1.5, d = 0.5$
• edited by
15 15 votes

Sorry we can also differentiate all function one at a time 

Position:
Show:

Related questions

33 33 votes
4 4 answers
12.4k
12.4k views
Kathleen asked Oct 9, 2014
12,427 views
The formula used to compute an approximation for the second derivative of a function $f$ at a point $x_0$ is$\dfrac{f(x_0 +h) + f(x_0 – h)}{2}$$\dfrac{f(x_0 +h) - f(x_0 –...
1 1 vote
1 1 answer
251
251 views
Shubham Sharma 2 asked Jun 20, 2025
251 views
Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a function which is twice differentiable everywhere and suppose that $f^{\prime}(q)=0$ for every rational number $q.$ Find t...
29 29 votes
8 answers 8 answers
11.2k
11.2k views
Kathleen asked Sep 25, 2014
11,175 views
Consider the function $y=|x|$ in the interval $[-1, 1]$. In this interval, the function iscontinuous and differentiablecontinuous but not differentiabledifferentiable but...
30 30 votes
2 answers 2 answers
11.1k
11.1k views
Kathleen asked Sep 21, 2014
11,105 views
Consider the following two statements about the function $f(x)=\left\vert x\right\vert$:P. $f(x)$ is continuous for all real values of $x$.Q. $f(x)$ is differentiable for...