Similar questions 2 more →
Calculus

Answer & solution
Answer: a=−1/2, b=3, c=−3/2, d=1/2. (no official key was published)
Each branch is a polynomial, so only the joining points 1 and 2 can cause trouble. Continuity at 1 requires a+b+c=1. Equality of the left and right derivatives at 1 requires 2a+b=2, because the derivative of x² is 2x. At 2, continuity gives 4a+2b+c=2+d, while equality of derivatives gives 4a+b=1.
Subtract the derivative equation at 1 from that at 2: 2a=−1, hence a=−1/2. Then 2a+b=2 gives b=3. Substituting in a+b+c=1 gives c=−3/2. The middle branch at 2 is −2+6−3/2=5/2, so 2+d=5/2 and d=1/2.
As a direct check, the middle branch has value 1 and derivative 2 at x=1, and value 5/2 and derivative 1 at x=2. These match the adjacent branches exactly. The four linear matching conditions determine the four constants uniquely. Continuity is needed in addition to matching formal derivative formulas: derivative agreement alone would not rule out jumps in the function.