Find the equation of a line that passes through the origin, with positive slope, and its tangent to the parabola given by :$ y = x^2 - 2x + 2$
My approach to this problem was to differentiate the equation of the parabola, so I can et an expression, that determines the tangent line anywhere on the parabola. I then got $2x - 2$, and I replaced x with a point (p), which is the second point of the line, where the first point is the origin $(0,0)$, and the second point being (p) which is tangent to the parabola, I then used $2p - 2$ as the slope of , my line, and the y intercept of the line is zero, because the line goes through the origin. The equation of the then becomes : $y = x (2p-2)$, and now I set the line and the parabola equal to each other, and at that point is where I get stuck, because I cant solve for $(p)$. I am pretty sure that my approach is wrong, and this is why I needed help solving this problem.
Could somebody, who solves this problem, provide a full solution below? Thank You !
A generic line is given by $y = ax + b$.
If it passes in $(x=0,y=0)$ you can put this value in your equation and find $0 = a0 + b$, thus $b = 0$, and your line is $y =ax$.
The common points of the line and the parabola are given by $ax = y = x^2 -2x +2$ thus $x$ must solve $ax = x^2 -2x +2$. Rewrite it like $x^2 + x(-a-2) +2 = 0$.
This is an equation of degree 2. In order to be tangent, you need to find exactly one solution $x$ (not $0$, or the line doesn't intersect your parabola, and not $2$, or it passes through the parabola and it's not tangent).
You should know that such an equation has exactly one solution when the discriminant $\Delta = b^2 - 4ac$ (not the same $a$ of the equation, here it's just a symbol!) it's equal to $0$.
In our case we must solve $\Delta = (-a-2)^2 -4\cdot 1 \cdot 2 = 0$.
Rewrite as $a^2 +4a -4 = 0$. This is again an equation of degree two, we can solve with the well know formula and get $a_1$ and $a_2$. But only one of them is positive, the other is negative. Since you are looking for positive slope, you must take the positive one!