Hi - what is the best way to solve simultaneous equations where one is quadratic and the other linear? For example:
y=x+3
y=x2+3x
Thank you
Hi - what is the best way to solve simultaneous equations where one is quadratic and the other linear?
For example:
y=x+3
y=x2+3x
1. Formula line ( linear equation)
yline=m⋅xline+b
2. Formula parabola (quadatic equation)
yparabola=A⋅x2parabola+B⋅xparabola+C
3. set equal yline=yparabola=yintersection :
m⋅xintersection+b=A⋅x2intersection+B⋅xintersection+CAx2intersection+xintersection(B−m)+C−b=0xintersection1,2=m−B±√(m−B)2−4⋅A⋅(C−b)2Ayintersection1,2=m⋅xintersection1,2+b
4. Example:
y=x+3m=1b=3y=x2+3xA=1B=3C=0xintersection1,2=1−3±√(1−3)2−4⋅1⋅(0−3)2⋅1xintersection1,2=−2±√4+122xintersection1,2=−2±42xintersection1=−2+42=1xintersection2=−2−42=−3yintersection1=1⋅xintersection1+3=1⋅1+3=4yintersection2=1⋅xintersection2+3=1⋅(−3)+3=0
Just set the equations equal......so we have...
x^2 + 3x = x + 3 subtract x + 3 from both sides
x^2 + 2x - 3 = 0 factor
(x + 3) ( x - 1) = 0
Set both factors = 0 and solve for x........so
x = -3 and x = 1
And when x = -3, y = -3 + 3 = 0
And when x = 1, y = 1 + 3 = 4
So......the intersection points are ( -3, 0) and ( 1, 4)