Quadratic, Logarithm and Power Formulas
Formulas for the quadratic equation, logarithms and exponents with electrical examples: real and complex roots, decibels, powers and roots.
The formulas
| To find | Formula |
|---|---|
| Roots of ax² + bx + c = 0 | x = (−b ± √D) / 2a, where D = b² − 4ac |
| Sum and product of the roots | x₁ + x₂ = −b / a, x₁ × x₂ = c / a |
| Vertex | x = −b / 2a |
| Logarithm | log_b x = y means b^y = x, log_b x = ln x / ln b |
| Logarithm rules | log(xy) = log x + log y, log(x / y) = log x − log y, log(xⁿ) = n log x |
| Powers | xᵃ × xᵇ = xᵃ⁺ᵇ, (xᵃ)ᵇ = xᵃᵇ, x⁻ⁿ = 1 / xⁿ |
| Roots | k-th root of x = x^(1/k) |
The discriminant D tells you the kind of roots: positive gives two real roots, zero gives one repeated root, and negative gives a complex-conjugate pair. When b is much larger than a and c, the plain formula loses digits in the small root to cancellation; find the large root first and the small one from x₁ × x₂ = c / a. A logarithm needs a positive number and a base that is positive and not 1. An even root of a negative number is not real, but an odd root is (the cube root of −8 is −2).
Worked example: real roots
Solve x² − 5x + 6 = 0.
- D = (−5)² − 4 × 1 × 6 = 1
- x = (5 ± √1) / 2, so x₁ = 3 and x₂ = 2
- Check: 3 + 2 = 5 = −b / a and 3 × 2 = 6 = c / a
Worked example: complex roots
Solve x² + 2x + 5 = 0, as in the characteristic equation of a damped series circuit.
- D = 2² − 4 × 1 × 5 = -16, which is negative
- Real part = −b / 2a = -1 and imaginary part = √16 / 2 = 2
- The roots are -1 + j2 and -1 − j2
Worked example: decibels
- A power ratio of 100 is 10 × log₁₀(100) = 20 dB
- A voltage ratio of 2 is 20 × log₁₀(2) = 6.021 dB
- Powers and roots: 2¹⁰ = 1024, and the cube root of 27 is 3
Frequently asked questions
What does a negative discriminant mean?
The equation has no real roots. The two roots are a complex-conjugate pair, and the parabola does not cross the x axis. In a circuit this is the underdamped case, which oscillates.
Why is the logarithm of zero or a negative number not allowed?
No power of a positive base gives zero or a negative number, so there is no real logarithm. The logarithm of a number approaching zero falls without limit.
Why is decibels 10 log for power and 20 log for voltage?
Power goes with the square of voltage or current. Since log(x²) = 2 log x, a voltage ratio uses 20 times the logarithm to give the same decibel value as the matching power ratio.
Can I take the square root of a negative number?
Not as a real number. The result is imaginary, so use the complex number calculator. An odd root of a negative number, such as the cube root of −8, is real.
Related
Complex Number FormulasTrigonometry FormulasResonance FormulasEngineering Mathematics calculatorsThree-Phase Power FormulasPower Factor and the Power TriangleAC Circuit Formulas: Reactance and ImpedanceVoltage Drop Formulas for CablesTransformer Formulas: Current and Fault LevelInduction Motor FormulasLighting Formulas: Lux, Lumens and CandelaBattery Formulas: Capacity and RuntimeSolar PV Formulas: Array Size and StringsCapacitor Formulas: Energy and RC Time ConstantEarthing Formulas: Earth Rod and Fault LoopCable Size Formulas: Current and Short-CircuitEnergy and Cost Formulas: kWh and PaybackGenerator Formulas: kVA, Current and FuelUPS Formulas: kVA, DC Current and BatteryHarmonics Formulas: THD and True Power FactorShort-Circuit Formulas: Fault Level by MVAUnbalance Formulas: Voltage and Neutral CurrentResistor Formulas: Series, Parallel, DividerMotor Starting Formulas: DOL, Star-DeltaCircuit Breaker Formulas: Rating and TripCooling Formulas: Airflow and Heat LoadHeating Formulas: Energy and Heater PowerPer-Unit Formulas: Base Values and ImpedanceLED Formulas: Resistor Value and PowerConduit Fill Formulas: Percent Fill and SizeLightning Protection Formulas: Rolling SphereTransformer Efficiency and Regulation FormulasPump Formulas: Hydraulic, Shaft and Motor PowerFan Formulas: Air Power and Affinity LawsInductor Formulas: Energy and L/R Time ConstantRMS, Peak and Average Value FormulasMotor Efficiency Formulas: Input and SavingsDemand, Load and Diversity Factor FormulasCable Tray Fill Formulas: Area and Cable CountConductor Resistance Formulas and TemperatureTransmission Line Formulas: Drop and LossesStar-Delta Conversion Formulas for Resistors4-20 mA Loop Formulas: Scaling and ResistorCable Loss Formulas: Power and Annual CostOp-Amp Formulas: Inverting and Non-Inverting555 Timer Formulas: Frequency and Duty CycleThévenin and Norton FormulasWheatstone Bridge Formulas: Balance and OutputConductor Force Formulas: Short-Circuit ForcesCT Burden Formulas: Lead Resistance and VAGear and Belt Drive Formulas: Speed and TorqueSkin Effect Formulas: Skin DepthRC Filter Formulas: Cutoff Frequency and GainRectifier Ripple Formulas: Capacitor FilterBuck and Boost Converter Formulas: Duty CycleHeat Sink Formulas: Junction TemperatureBattery Pack Formulas: Series and ParallelMotor Acceleration Time FormulasZener Regulator Formulas: Series ResistorBJT Bias Formulas: Voltage Divider BiasPt100 RTD Formulas: Resistance and TemperatureNTC Thermistor Formulas: Beta EquationFusing Current Formulas: Wire Fuse EstimateFlywheel Formulas: Stored EnergyLinear Regulator Formulas: Power and EfficiencyMOSFET Loss Formulas: Conduction and SwitchingRelay Coil Formulas: Current and ResistorTransformer Inrush Current FormulasBattery Charge Time FormulasWind Turbine Power Formulas: Betz LimitDetuning Reactor Formulas: Capacitor BanksTransformer Tap Changer FormulasCable Pulling Tension FormulasInsulation Resistance Formulas: PI and DARPower Transfer and Power Angle FormulasSolar Panel Temperature Derating FormulasVoltage Change and Flicker FormulasSoft Starter and VFD Sizing FormulasEarth Fault Loop and RCD FormulasBattery Internal Resistance FormulasBusbar Size and Short-Circuit FormulasADC Resolution and Sampling FormulasCapacitor Switching Inrush FormulasCable Charging Current FormulasSolar DC to AC Ratio FormulasMeasurement Uncertainty FormulasParallel Transformer Load Sharing FormulasPeukert Law and Battery Runtime FormulasCapacitor Discharge Time FormulasHydraulic Power and Cylinder Force FormulasThermocouple Voltage FormulasTransformer Vector Group FormulasPower Supply Hold-Up Time FormulasHoist and Lift Power FormulasCompressor Power FormulasRectifier Bridge Sizing FormulasPCB Trace Width and Current FormulasHeat Pump COP FormulasSound Level and dB Addition FormulasDuty Cycle and RMS Load FormulasSupercapacitor Energy FormulasStep and Touch Voltage FormulasContactor Sizing FormulasInverter-Fed Motor Cable FormulasPneumatic Cylinder Force and Air UseBusbar Temperature Rise FormulasMotor Temperature Rise FormulasBattery Storage Round-Trip EfficiencyThermal Time Constant FormulasSolar Charge Controller Sizing FormulasPoint Illuminance FormulasGenerator Droop and Load Sharing FormulasTwo-Wattmeter Method FormulasVFD Braking Resistor FormulasLoad Bank Test FormulasTransformer Cooling Class Rating FormulasEnergy Meter Multiplier FormulasOvercurrent Relay Curve FormulasSingle-Tuned Harmonic Filter FormulasCable Sheath Circulating Current FormulasDifferential Protection Slope FormulasEarth Electrode Spacing FormulasSolar Array Row Spacing FormulasDC Lighting Voltage Drop FormulasTransformer Loss of Life FormulasMotor Start Voltage Dip in the Cable FormulasNeutral Earthing Resistor FormulasCable I²t Withstand Check FormulasMotor Locked-Rotor Code Letter FormulasSynchronous Speed and Pole FormulasBattery C-Rate and Cycle Life FormulasEV Charging Time FormulasConveyor Belt Power FormulasParallel Plate Capacitor FormulasSolenoid and Coil Inductance FormulasPower Factor Correction Payback FormulasTransformer Through-Fault Current FormulasTransformer EMF Equation FormulasDelta-Star Resistor Conversion FormulasCurrent Shunt Resistor FormulasSolar Energy Yield and Degradation FormulasElectrolysis and Faraday’s Law FormulasAGL Series Circuit Load and CCR Sizing FormulasAGL Maximum Fittings on a CCR FormulasAGL Isolating Transformer FormulasAGL CCR Input Power and Energy FormulasAGL Brightness Step FormulasAGL Lamp Life FormulasPhasor Addition Formulas: Sum and DifferencePercentage Error Formulas for MeasurementsMean and Standard Deviation FormulasPercentage, Ratio and Rounding FormulasProbability, Combinations and Binomial FormulasConversion Centre