I am given this exercise:
Find the angle between the line $y = 4 − x$ and the tangent line to the curve $y = 4 − \frac{x^2}{2}$ at the points where the line intersects the curve.
When I try it, the tangent line is $y=y_0-(x-x_0)$, so the slope is the same in both lines and the angle is 0 (they are parallel).
The answer should be $18,45º$. Where did I go wrong?
You should differentiate both to get the gradient of both of them, so I'll denote the gradients as m:
$${dy_1\over dx} = -1 \\ {dy_2\over dx } = -x $$
Now you have to find where they intersect, so that happens when $y_1 = y2 $ which is at:
$$ 4 - x = 4 - {x^2 \over 2 } \\ x^2 - 2x = x(x-2) = 0$$
So at $x=0$ and $x=2$, as shown here.
So the gradients are therefore just:
$$ @ x=0 \quad m_1 = -1 \quad m_2 = 0 \\ @ x=2 \quad m_1 = -1 \quad m_2 = -2 $$
You should be able to get it from there :)